The content of the response.
type
Union type
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)
| JSON representation |
|---|
{ // type "text": { object ( |
TextContent
A text content block.
text
string
Required. The text content.
annotations[]
object (Annotation)
Citation information for model-generated content.
| JSON representation |
|---|
{
"text": string,
"annotations": [
{
object ( |
ImageContent
An image content block.
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.
data_or_uri
Union type
data
string (bytes format)
The image content.
A base64-encoded string.
uri
string
The URI of the image.
| JSON representation |
|---|
{
"mimeTypeString": string,
"resolution": enum ( |
AudioContent
An audio content block.
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.
data_or_uri
Union type
data
string (bytes format)
The audio content.
A base64-encoded string.
uri
string
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.
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.
data_or_uri
Union type
data
string (bytes format)
The document content.
A base64-encoded string.
uri
string
The URI of the document.
| JSON representation |
|---|
{ "mimeTypeString": string, // data_or_uri "data": string, "uri": string // Union type } |
VideoContent
A video content block.
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.
name
string
A user-defined name for this content block. Can be referenced by the model in the final response.
data_or_uri
Union type
data
string (bytes format)
The video content.
A base64-encoded string.
uri
string
The URI of the video.
processing
Union type
processingType
enum (Processing)
processingConfig
object (MediaProcessing)
| JSON representation |
|---|
{ "mimeTypeString": string, "resolution": enum ( |
FunctionCallContent
A function tool call content block.
name
string
Required. The name of the tool to call.
arguments
object (Struct)
Required. The arguments to pass to the function.
| JSON representation |
|---|
{
"name": string,
"arguments": {
object ( |
CodeExecutionCallContent
code execution content.
arguments
object (CodeExecutionCallArguments)
Required. The arguments to pass to the code execution.
| JSON representation |
|---|
{
"arguments": {
object ( |
UrlContextCallContent
URL context content.
arguments
object (UrlContextCallArguments)
Required. The arguments to pass to the URL context.
| JSON representation |
|---|
{
"arguments": {
object ( |
McpServerToolCallContent
MCPServer tool call content.
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.
| JSON representation |
|---|
{
"name": string,
"serverName": string,
"arguments": {
object ( |
GoogleSearchCallContent
Google Search content.
arguments
object (GoogleSearchCallArguments)
Required. The arguments to pass to Google Search.
searchType
enum (SearchType)
The type of search grounding enabled.
| JSON representation |
|---|
{ "arguments": { object ( |
FileSearchCallContent
This type has no fields.
File Search content.
GoogleMapsCallContent
Google Maps content.
arguments
object (GoogleMapsCallArguments)
The arguments to pass to the Google Maps tool.
| JSON representation |
|---|
{
"arguments": {
object ( |
FunctionResultContent
A function tool result content block.
name
string
The name of the tool that was called.
isError
boolean
Whether the tool call resulted in an error.
result
Union type
structResult
object (Struct)
contentList
object (FunctionResultSubcontentList)
stringResult
string
| JSON representation |
|---|
{ "name": string, "isError": boolean, // result "structResult": { object ( |
FunctionResultSubcontentList
contents[]
object (FunctionResultSubcontent)
| JSON representation |
|---|
{
"contents": [
{
object ( |
FunctionResultSubcontent
type
Union type
text
object (TextContent)
image
object (ImageContent)
| JSON representation |
|---|
{ // type "text": { object ( |
CodeExecutionResultContent
code execution result content.
result
string
Required. The output of the code execution.
isError
boolean
Whether the code execution resulted in an error.
| JSON representation |
|---|
{ "result": string, "isError": boolean } |
UrlContextResultContent
URL context result content.
result[]
object (UrlContextResult)
Required. The results of the URL context.
isError
boolean
Whether the URL context resulted in an error.
| JSON representation |
|---|
{
"result": [
{
object ( |
GoogleSearchResultContent
Google Search result content.
result[]
object (GoogleSearchResult)
Required. The results of the Google Search.
isError
boolean
Whether the Google Search resulted in an error.
| JSON representation |
|---|
{
"result": [
{
object ( |
McpServerToolResultContent
MCPServer tool result content.
name
string
name of the tool which is called for this specific tool call.
serverName
string
The name of the used MCP server.
result
Union type
structResult
object (Struct)
contentList
object (FunctionResultSubcontentList)
stringResult
string
| JSON representation |
|---|
{ "name": string, "serverName": string, // result "structResult": { object ( |
FileSearchResultContent
File Search result content.
result[]
object (FileSearchResult)
The results of the File Search.
| JSON representation |
|---|
{
"result": [
{
object ( |
GoogleMapsResultContent
Google Maps result content.
result[]
object (GoogleMapsResult)
Required. The results of the Google Maps.
| JSON representation |
|---|
{
"result": [
{
object ( |