The content of the response.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
text |
|
image |
|
audio |
|
document |
|
video |
|
thought |
|
toolCall |
|
toolResult |
|
TextContent
A text content block.
| JSON representation |
|---|
{
"text": string,
"annotations": [
{
object ( |
| Fields | |
|---|---|
text |
Required. The text content. |
annotations[] |
Citation information for model-generated content. |
ImageContent
An image content block.
| JSON representation |
|---|
{ "mimeTypeString": string, "resolution": enum ( |
| Fields | |
|---|---|
mimeTypeString |
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. |
resolution |
The resolution of the media. |
Union field data_or_uri. The image content. data_or_uri can be only one of the following: |
|
data |
The image content. A base64-encoded string. |
uri |
The URI of the image. |
AudioContent
An audio content block.
| JSON representation |
|---|
{ "mimeTypeString": string, "channels": integer, "sampleRate": integer, // Union field |
| Fields | |
|---|---|
mimeTypeString |
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. |
channels |
The number of audio channels. |
sampleRate |
The sample rate of the audio. |
Union field data_or_uri. The audio content. data_or_uri can be only one of the following: |
|
data |
The audio content. A base64-encoded string. |
uri |
The URI of the audio. |
DocumentContent
A document content block.
| JSON representation |
|---|
{ "mimeTypeString": string, // Union field |
| Fields | |
|---|---|
mimeTypeString |
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. |
Union field data_or_uri. The document content. data_or_uri can be only one of the following: |
|
data |
The document content. A base64-encoded string. |
uri |
The URI of the document. |
VideoContent
A video content block.
| JSON representation |
|---|
{ "mimeTypeString": string, "resolution": enum ( |
| Fields | |
|---|---|
mimeTypeString |
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. |
resolution |
The resolution of the media. |
Union field data_or_uri. The video content. data_or_uri can be only one of the following: |
|
data |
The video content. A base64-encoded string. |
uri |
The URI of the video. |
Union field processing. How the model processes this video for understanding. processing can be only one of the following: |
|
processingType |
|
processingConfig |
|
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
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
static |
|
StaticMediaProcessing
| JSON representation |
|---|
{ "startOffset": string, "endOffset": string, "fps": number } |
| Fields | |
|---|---|
startOffset |
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 ' |
endOffset |
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 A duration in seconds with up to nine fractional digits, ending with ' |
fps |
Optional. Video frame-rate sampling density. |
ThoughtContent
A thought content block.
| JSON representation |
|---|
{
"signature": string,
"summary": [
{
object ( |
| Fields | |
|---|---|
signature |
signature to match the backend source to be part of the generation. A base64-encoded string. |
summary[] |
A summary of the thought. |
ThoughtSummaryContent
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
text |
|
image |
|
ToolCallContent
Tool call content.
| JSON representation |
|---|
{ "id": string, "signature": string, // Union field |
| Fields | |
|---|---|
id |
Required. A unique id for this specific tool call. |
signature |
A signature hash for backend validation. A base64-encoded string. |
Union field
|
|
functionCall |
|
codeExecutionCall |
|
urlContextCall |
|
mcpServerToolCall |
|
googleSearchCall |
|
fileSearchCall |
|
googleMapsCall |
|
FunctionCallContent
A function tool call content block.
| JSON representation |
|---|
{
"name": string,
"arguments": {
object ( |
| Fields | |
|---|---|
name |
Required. The name of the tool to call. |
arguments |
Required. The arguments to pass to the function. |
CodeExecutionCallContent
code execution content.
| JSON representation |
|---|
{
"arguments": {
object ( |
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to the code execution. |
UrlContextCallContent
URL context content.
| JSON representation |
|---|
{
"arguments": {
object ( |
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to the URL context. |
McpServerToolCallContent
MCPServer tool call content.
| JSON representation |
|---|
{
"name": string,
"serverName": string,
"arguments": {
object ( |
| Fields | |
|---|---|
name |
Required. The name of the tool which was called. |
serverName |
Required. The name of the used MCP server. |
arguments |
Required. The JSON object of arguments for the function. |
GoogleSearchCallContent
Google Search content.
| JSON representation |
|---|
{ "arguments": { object ( |
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to Google Search. |
searchType |
The type of search grounding enabled. |
FileSearchCallContent
This type has no fields.
File Search content.
GoogleMapsCallContent
Google Maps content.
| JSON representation |
|---|
{
"arguments": {
object ( |
| Fields | |
|---|---|
arguments |
The arguments to pass to the Google Maps tool. |
ToolResultContent
Tool result content.
| JSON representation |
|---|
{ "callId": string, "signature": string, // Union field |
| Fields | |
|---|---|
callId |
Required. id to match the id from the function call block. |
signature |
A signature hash for backend validation. A base64-encoded string. |
Union field
|
|
functionResult |
|
codeExecutionResult |
|
urlContextResult |
|
googleSearchResult |
|
mcpServerToolResult |
|
fileSearchResult |
|
googleMapsResult |
|
FunctionResultContent
A function tool result content block.
| JSON representation |
|---|
{ "name": string, "isError": boolean, // Union field |
| Fields | |
|---|---|
name |
The name of the tool that was called. |
isError |
Whether the tool call resulted in an error. |
Union field result. The result of the tool call. result can be only one of the following: |
|
structResult |
|
contentList |
|
stringResult |
|
FunctionResultSubcontentList
| JSON representation |
|---|
{
"contents": [
{
object ( |
| Fields | |
|---|---|
contents[] |
|
FunctionResultSubcontent
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
text |
|
image |
|
CodeExecutionResultContent
code execution result content.
| JSON representation |
|---|
{ "result": string, "isError": boolean } |
| Fields | |
|---|---|
result |
Required. The output of the code execution. |
isError |
Whether the code execution resulted in an error. |
UrlContextResultContent
URL context result content.
| JSON representation |
|---|
{
"result": [
{
object ( |
| Fields | |
|---|---|
result[] |
Required. The results of the URL context. |
isError |
Whether the URL context resulted in an error. |
GoogleSearchResultContent
Google Search result content.
| JSON representation |
|---|
{
"result": [
{
object ( |
| Fields | |
|---|---|
result[] |
Required. The results of the Google Search. |
isError |
Whether the Google Search resulted in an error. |
McpServerToolResultContent
MCPServer tool result content.
| JSON representation |
|---|
{ "name": string, "serverName": string, // Union field |
| Fields | |
|---|---|
name |
name of the tool which is called for this specific tool call. |
serverName |
The name of the used MCP server. |
Union field result. The output from the MCP server call. Can be simple text or rich content. result can be only one of the following: |
|
structResult |
|
contentList |
|
stringResult |
|
FileSearchResultContent
File Search result content.
| JSON representation |
|---|
{
"result": [
{
object ( |
| Fields | |
|---|---|
result[] |
Optional. The results of the File Search. |
GoogleMapsResultContent
Google Maps result content.
| JSON representation |
|---|
{
"result": [
{
object ( |
| Fields | |
|---|---|
result[] |
Required. The results of the Google Maps. |