The content of the response.
typeUnion type
| JSON representation |
|---|
{ // type "text": { object ( |
TextContent
A text content block.
textstring
Required. The text content.
Citation information for model-generated content.
| JSON representation |
|---|
{
"text": string,
"annotations": [
{
object ( |
ImageContent
An image content block.
mimeTypeStringstring
Flexible MIME type string of the image, superseding mimeType = 1. Note: Bespoke logic in the GAOS parser/serializer maps this to the "mimeType" JSON key.
The resolution of the media.
data_or_uriUnion type
The image content.
A base64-encoded string.
uristring
The URI of the image.
| JSON representation |
|---|
{
"mimeTypeString": string,
"resolution": enum ( |
AudioContent
An audio content block.
mimeTypeStringstring
Flexible MIME type string of the audio, superseding mimeType = 1. Note: Bespoke logic in the GAOS parser/serializer maps this to the "mimeType" JSON key.
channelsinteger
The number of audio channels.
sampleRateinteger
The sample rate of the audio.
data_or_uriUnion type
The audio content.
A base64-encoded string.
uristring
The URI of the audio.
| JSON representation |
|---|
{ "mimeTypeString": string, "channels": integer, "sampleRate": integer, // data_or_uri "data": string, "uri": string // Union type } |
DocumentContent
A document content block.
mimeTypeStringstring
Flexible MIME type string of the document, superseding mimeType = 1. Note: Bespoke logic in the GAOS parser/serializer maps this to the "mimeType" JSON key.
data_or_uriUnion type
The document content.
A base64-encoded string.
uristring
The URI of the document.
| JSON representation |
|---|
{ "mimeTypeString": string, // data_or_uri "data": string, "uri": string // Union type } |
VideoContent
A video content block.
mimeTypeStringstring
Flexible MIME type string of the video, superseding mimeType = 1. Note: Bespoke logic in the GAOS parser/serializer maps this to the "mimeType" JSON key.
The resolution of the media.
namestring
A user-defined name for this content block. Can be referenced by the model in the final response.
data_or_uriUnion type
The video content.
A base64-encoded string.
uristring
The URI of the video.
processingUnion type
| JSON representation |
|---|
{ "mimeTypeString": string, "resolution": enum ( |
Processing
How the model processes input media for understanding.
| Enums | |
|---|---|
PROCESSING_UNSPECIFIED |
Default. uses model-specific processing (3.5 Pro+ --> AGENTIC, older models --> STATIC) |
STATIC |
Fixed-rate frame extraction. All frames placed in context. |
AGENTIC |
Model-driven dynamic navigation. |
MediaProcessing
typeUnion type
| JSON representation |
|---|
{
// type
"static": {
object ( |
StaticMediaProcessing
Optional. Segment start time. Specified as a decimal number of seconds followed by an 's' suffix, e.g., "10.5s". Must be non-negative.
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
Optional. Segment end time. Specified as a decimal number of seconds followed by an 's' suffix, e.g., "30s". Must be non-negative and greater than startOffset if startOffset is set.
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
fpsnumber
Optional. Video frame-rate sampling density.
| JSON representation |
|---|
{ "startOffset": string, "endOffset": string, "fps": number } |