FunctionResponsePart

@Serializable
data class FunctionResponsePart(val inlineData: FunctionResponseBlob? = null, val fileData: FunctionResponseFileData? = null, val mediaProcessing: MediaProcessing? = null, val mediaResolution: PartMediaResolution? = null, val videoMetadata: VideoMetadata? = null, val documentMetadata: DocumentMetadata? = null, val spreadsheetMetadata: SpreadsheetMetadata? = null, val audioMetadata: AudioMetadata? = null)

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.

Constructors

Link copied to clipboard
constructor(inlineData: FunctionResponseBlob? = null, fileData: FunctionResponseFileData? = null, mediaProcessing: MediaProcessing? = null, mediaResolution: PartMediaResolution? = null, videoMetadata: VideoMetadata? = null, documentMetadata: DocumentMetadata? = null, spreadsheetMetadata: SpreadsheetMetadata? = null, audioMetadata: AudioMetadata? = null)

Properties

Link copied to clipboard

Audio metadata. The metadata should only be specified while the audio data is presented in inline_data or file_data.

Link copied to clipboard

Document metadata. The metadata should only be specified while the document data is presented in inline_data or file_data.

Link copied to clipboard

URI based data.

Link copied to clipboard

Inline media bytes.

Link copied to clipboard

Optional. How the model processes this part's media for understanding. Only meaningful for video parts (inline_data or file_data with video mime). Non-video parts ignore this field. This field is not supported in Vertex AI.

Link copied to clipboard

Media resolution for the input media.

Link copied to clipboard

Spreadsheet metadata. The metadata should only be specified while the spreadsheet data is presented in inline_data or file_data.

Link copied to clipboard

Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.