Content

The content of the response.

JSON representation
{

  // Union field type can be only one of the following:
  "text": {
    object (TextContent)
  },
  "image": {
    object (ImageContent)
  },
  "audio": {
    object (AudioContent)
  },
  "document": {
    object (DocumentContent)
  },
  "video": {
    object (VideoContent)
  },
  "thought": {
    object (ThoughtContent)
  },
  "toolCall": {
    object (ToolCallContent)
  },
  "toolResult": {
    object (ToolResultContent)
  }
  // End of list of possible types for union field type.
}
Fields

Union field type.

type can be only one of the following:

text

object (TextContent)

image

object (ImageContent)

audio

object (AudioContent)

document

object (DocumentContent)

video

object (VideoContent)

thought
(deprecated)

object (ThoughtContent)

toolCall
(deprecated)

object (ToolCallContent)

toolResult
(deprecated)

object (ToolResultContent)

TextContent

A text content block.

JSON representation
{
  "text": string,
  "annotations": [
    {
      object (Annotation)
    }
  ]
}
Fields
text

string

Required. The text content.

annotations[]

object (Annotation)

Citation information for model-generated content.

ImageContent

An image content block.

JSON representation
{
  "mimeTypeString": string,
  "resolution": enum (MediaResolution),

  // Union field data_or_uri can be only one of the following:
  "data": string,
  "uri": string
  // End of list of possible types for union field data_or_uri.
}
Fields
mimeTypeString

string

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

enum (MediaResolution)

The resolution of the media.

Union field data_or_uri. The image content. data_or_uri can be only one of the following:
data

string (bytes format)

The image content.

A base64-encoded string.

uri

string

The URI of the image.

AudioContent

An audio content block.

JSON representation
{
  "mimeTypeString": string,
  "channels": integer,
  "sampleRate": integer,

  // Union field data_or_uri can be only one of the following:
  "data": string,
  "uri": string
  // End of list of possible types for union field data_or_uri.
}
Fields
mimeTypeString

string

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

integer

The number of audio channels.

sampleRate

integer

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

string (bytes format)

The audio content.

A base64-encoded string.

uri

string

The URI of the audio.

DocumentContent

A document content block.

JSON representation
{
  "mimeTypeString": string,

  // Union field data_or_uri can be only one of the following:
  "data": string,
  "uri": string
  // End of list of possible types for union field data_or_uri.
}
Fields
mimeTypeString

string

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

string (bytes format)

The document content.

A base64-encoded string.

uri

string

The URI of the document.

VideoContent

A video content block.

JSON representation
{
  "mimeTypeString": string,
  "resolution": enum (MediaResolution),

  // Union field data_or_uri can be only one of the following:
  "data": string,
  "uri": string
  // End of list of possible types for union field data_or_uri.

  // Union field processing can be only one of the following:
  "processingType": enum (Processing),
  "processingConfig": {
    object (MediaProcessing)
  }
  // End of list of possible types for union field processing.
}
Fields
mimeTypeString

string

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

enum (MediaResolution)

The resolution of the media.

Union field data_or_uri. The video content. data_or_uri can be only one of the following:
data

string (bytes format)

The video content.

A base64-encoded string.

uri

string

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

enum (Processing)

processingConfig

object (MediaProcessing)

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 type can be only one of the following:
  "static": {
    object (StaticMediaProcessing)
  }
  // End of list of possible types for union field type.
}
Fields

Union field type.

type can be only one of the following:

static

object (StaticMediaProcessing)

StaticMediaProcessing

JSON representation
{
  "startOffset": string,
  "endOffset": string,
  "fps": number
}
Fields
startOffset

string (Duration format)

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".

endOffset

string (Duration format)

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".

fps

number

Optional. Video frame-rate sampling density.

ThoughtContent

A thought content block.

JSON representation
{
  "signature": string,
  "summary": [
    {
      object (ThoughtSummaryContent)
    }
  ]
}
Fields
signature

string (bytes format)

signature to match the backend source to be part of the generation.

A base64-encoded string.

summary[]

object (ThoughtSummaryContent)

A summary of the thought.

ThoughtSummaryContent

JSON representation
{

  // Union field type can be only one of the following:
  "text": {
    object (TextContent)
  },
  "image": {
    object (ImageContent)
  }
  // End of list of possible types for union field type.
}
Fields

Union field type.

type can be only one of the following:

text

object (TextContent)

image

object (ImageContent)

ToolCallContent

Tool call content.

JSON representation
{
  "id": string,
  "signature": string,

  // Union field type can be only one of the following:
  "functionCall": {
    object (FunctionCallContent)
  },
  "codeExecutionCall": {
    object (CodeExecutionCallContent)
  },
  "urlContextCall": {
    object (UrlContextCallContent)
  },
  "mcpServerToolCall": {
    object (McpServerToolCallContent)
  },
  "googleSearchCall": {
    object (GoogleSearchCallContent)
  },
  "fileSearchCall": {
    object (FileSearchCallContent)
  },
  "googleMapsCall": {
    object (GoogleMapsCallContent)
  }
  // End of list of possible types for union field type.
}
Fields
id

string

Required. A unique id for this specific tool call.

signature

string (bytes format)

A signature hash for backend validation.

A base64-encoded string.

Union field type.

type can be only one of the following:

functionCall

object (FunctionCallContent)

codeExecutionCall

object (CodeExecutionCallContent)

urlContextCall

object (UrlContextCallContent)

mcpServerToolCall

object (McpServerToolCallContent)

googleSearchCall

object (GoogleSearchCallContent)

fileSearchCall

object (FileSearchCallContent)

googleMapsCall

object (GoogleMapsCallContent)

FunctionCallContent

A function tool call content block.

JSON representation
{
  "name": string,
  "arguments": {
    object (Struct)
  }
}
Fields
name

string

Required. The name of the tool to call.

arguments

object (Struct)

Required. The arguments to pass to the function.

CodeExecutionCallContent

code execution content.

JSON representation
{
  "arguments": {
    object (CodeExecutionCallArguments)
  }
}
Fields
arguments

object (CodeExecutionCallArguments)

Required. The arguments to pass to the code execution.

UrlContextCallContent

URL context content.

JSON representation
{
  "arguments": {
    object (UrlContextCallArguments)
  }
}
Fields
arguments

object (UrlContextCallArguments)

Required. The arguments to pass to the URL context.

McpServerToolCallContent

MCPServer tool call content.

JSON representation
{
  "name": string,
  "serverName": string,
  "arguments": {
    object (Struct)
  }
}
Fields
name

string

Required. The name of the tool which was called.

serverName

string

Required. The name of the used MCP server.

arguments

object (Struct)

Required. The JSON object of arguments for the function.

GoogleSearchCallContent

Google Search content.

JSON representation
{
  "arguments": {
    object (GoogleSearchCallArguments)
  },
  "searchType": enum (SearchType)
}
Fields
arguments

object (GoogleSearchCallArguments)

Required. The arguments to pass to Google Search.

searchType

enum (SearchType)

The type of search grounding enabled.

FileSearchCallContent

This type has no fields.

File Search content.

GoogleMapsCallContent

Google Maps content.

JSON representation
{
  "arguments": {
    object (GoogleMapsCallArguments)
  }
}
Fields
arguments

object (GoogleMapsCallArguments)

The arguments to pass to the Google Maps tool.

ToolResultContent

Tool result content.

JSON representation
{
  "callId": string,
  "signature": string,

  // Union field type can be only one of the following:
  "functionResult": {
    object (FunctionResultContent)
  },
  "codeExecutionResult": {
    object (CodeExecutionResultContent)
  },
  "urlContextResult": {
    object (UrlContextResultContent)
  },
  "googleSearchResult": {
    object (GoogleSearchResultContent)
  },
  "mcpServerToolResult": {
    object (McpServerToolResultContent)
  },
  "fileSearchResult": {
    object (FileSearchResultContent)
  },
  "googleMapsResult": {
    object (GoogleMapsResultContent)
  }
  // End of list of possible types for union field type.
}
Fields
callId

string

Required. id to match the id from the function call block.

signature

string (bytes format)

A signature hash for backend validation.

A base64-encoded string.

Union field type.

type can be only one of the following:

functionResult

object (FunctionResultContent)

codeExecutionResult

object (CodeExecutionResultContent)

urlContextResult

object (UrlContextResultContent)

googleSearchResult

object (GoogleSearchResultContent)

mcpServerToolResult

object (McpServerToolResultContent)

fileSearchResult

object (FileSearchResultContent)

googleMapsResult

object (GoogleMapsResultContent)

FunctionResultContent

A function tool result content block.

JSON representation
{
  "name": string,
  "isError": boolean,

  // Union field result can be only one of the following:
  "structResult": {
    object (Struct)
  },
  "contentList": {
    object (FunctionResultSubcontentList)
  },
  "stringResult": string
  // End of list of possible types for union field result.
}
Fields
name

string

The name of the tool that was called.

isError

boolean

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

object (Struct)

contentList

object (FunctionResultSubcontentList)

stringResult

string

FunctionResultSubcontentList

JSON representation
{
  "contents": [
    {
      object (FunctionResultSubcontent)
    }
  ]
}
Fields
contents[]

object (FunctionResultSubcontent)

FunctionResultSubcontent

JSON representation
{

  // Union field type can be only one of the following:
  "text": {
    object (TextContent)
  },
  "image": {
    object (ImageContent)
  }
  // End of list of possible types for union field type.
}
Fields

Union field type.

type can be only one of the following:

text

object (TextContent)

image

object (ImageContent)

CodeExecutionResultContent

code execution result content.

JSON representation
{
  "result": string,
  "isError": boolean
}
Fields
result

string

Required. The output of the code execution.

isError

boolean

Whether the code execution resulted in an error.

UrlContextResultContent

URL context result content.

JSON representation
{
  "result": [
    {
      object (UrlContextResult)
    }
  ],
  "isError": boolean
}
Fields
result[]

object (UrlContextResult)

Required. The results of the URL context.

isError

boolean

Whether the URL context resulted in an error.

GoogleSearchResultContent

Google Search result content.

JSON representation
{
  "result": [
    {
      object (GoogleSearchResult)
    }
  ],
  "isError": boolean
}
Fields
result[]

object (GoogleSearchResult)

Required. The results of the Google Search.

isError

boolean

Whether the Google Search resulted in an error.

McpServerToolResultContent

MCPServer tool result content.

JSON representation
{
  "name": string,
  "serverName": string,

  // Union field result can be only one of the following:
  "structResult": {
    object (Struct)
  },
  "contentList": {
    object (FunctionResultSubcontentList)
  },
  "stringResult": string
  // End of list of possible types for union field result.
}
Fields
name

string

name of the tool which is called for this specific tool call.

serverName

string

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

object (Struct)

contentList

object (FunctionResultSubcontentList)

stringResult

string

FileSearchResultContent

File Search result content.

JSON representation
{
  "result": [
    {
      object (FileSearchResult)
    }
  ]
}
Fields
result[]

object (FileSearchResult)

Optional. The results of the File Search.

GoogleMapsResultContent

Google Maps result content.

JSON representation
{
  "result": [
    {
      object (GoogleMapsResult)
    }
  ]
}
Fields
result[]

object (GoogleMapsResult)

Required. The results of the Google Maps.