Class FunctionResponsePart (1.140.0)

FunctionResponsePart(
    *,
    fileData: typing.Optional[
        vertexai._genai.types.common.FunctionResponseFileData
    ] = None,
    inlineData: typing.Optional[
        vertexai._genai.types.common.FunctionResponseBlob
    ] = None
)

A datatype containing media that is part of a FunctionResponse message. A FunctionResponsePart consists of data which has an associated datatype. A FunctionResponsePart can only contain one of the accepted types in FunctionResponsePart.data. A FunctionResponsePart must have a fixed IANA MIME type identifying the type and subtype of the media if the inline_data field is filled with raw bytes.

Methods

FunctionResponsePart

FunctionResponsePart(
    *,
    fileData: typing.Optional[
        vertexai._genai.types.common.FunctionResponseFileData
    ] = None,
    inlineData: typing.Optional[
        vertexai._genai.types.common.FunctionResponseBlob
    ] = None
)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.