Step

A step in the interaction.

JSON representation
{

  // Union field type can be only one of the following:
  "thought": {
    object (ThoughtStep)
  },
  "toolCall": {
    object (ToolCallStep)
  },
  "toolResult": {
    object (ToolResultStep)
  },
  "userInput": {
    object (UserInputStep)
  },
  "modelOutput": {
    object (ModelOutputStep)
  },
  "text": {
    object (LegacyTextContent)
  },
  "image": {
    object (LegacyImageContent)
  },
  "audio": {
    object (LegacyAudioContent)
  },
  "document": {
    object (LegacyDocumentContent)
  },
  "video": {
    object (LegacyVideoContent)
  }
  // End of list of possible types for union field type.
}
Fields

Union field type.

type can be only one of the following:

thought

object (ThoughtStep)

toolCall

object (ToolCallStep)

toolResult

object (ToolResultStep)

userInput

object (UserInputStep)

DO NOT USE -- These are for 3P JSON only

modelOutput

object (ModelOutputStep)

text
(deprecated)

object (LegacyTextContent)

image
(deprecated)

object (LegacyImageContent)

audio
(deprecated)

object (LegacyAudioContent)

document
(deprecated)

object (LegacyDocumentContent)

video
(deprecated)

object (LegacyVideoContent)

ThoughtStep

A thought step.

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

string (bytes format)

A signature hash for backend validation.

A base64-encoded string.

summary[]

object (Content)

A summary of the thought.

ToolCallStep

Tool call step.

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

  // Union field type can be only one of the following:
  "functionCall": {
    object (FunctionCallStep)
  },
  "codeExecutionCall": {
    object (CodeExecutionCallStep)
  },
  "urlContextCall": {
    object (UrlContextCallStep)
  },
  "mcpServerToolCall": {
    object (McpServerToolCallStep)
  },
  "googleSearchCall": {
    object (GoogleSearchCallStep)
  },
  "fileSearchCall": {
    object (FileSearchCallStep)
  },
  "googleMapsCall": {
    object (GoogleMapsCallStep)
  },
  "retrievalCall": {
    object (RetrievalCallStep)
  }
  // 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 (FunctionCallStep)

codeExecutionCall

object (CodeExecutionCallStep)

urlContextCall

object (UrlContextCallStep)

mcpServerToolCall

object (McpServerToolCallStep)

googleSearchCall

object (GoogleSearchCallStep)

fileSearchCall

object (FileSearchCallStep)

googleMapsCall

object (GoogleMapsCallStep)

retrievalCall

object (RetrievalCallStep)

FunctionCallStep

A function tool call step.

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.

CodeExecutionCallStep

code execution call step.

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

object (CodeExecutionCallStepArguments)

Required. The arguments to pass to the code execution.

CodeExecutionCallStepArguments

The arguments to pass to the code execution.

JSON representation
{
  "language": enum (Language),
  "code": string
}
Fields
language

enum (Language)

Programming language of the code.

code

string

The code to be executed.

Language

Supported programming languages for the generated code.

Enums
LANGUAGE_UNSPECIFIED Unspecified language. This value should not be used.
PYTHON Python >= 3.10, with numpy and simpy available.

UrlContextCallStep

URL context call step.

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

object (UrlContextCallStepArguments)

Required. The arguments to pass to the URL context.

UrlContextCallStepArguments

The arguments to pass to the URL context.

JSON representation
{
  "urls": [
    string
  ]
}
Fields
urls[]

string

The URLs to fetch.

McpServerToolCallStep

MCPServer tool call step.

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.

GoogleSearchCallStep

Google Search call step.

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

object (GoogleSearchCallStepArguments)

Required. The arguments to pass to Google Search.

searchType

enum (SearchType)

The type of search grounding enabled.

GoogleSearchCallStepArguments

The arguments to pass to Google Search.

JSON representation
{
  "queries": [
    string
  ]
}
Fields
queries[]

string

Web search queries for the following-up web search.

FileSearchCallStep

This type has no fields.

File Search call step.

GoogleMapsCallStep

Google Maps call step.

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

object (GoogleMapsCallStepArguments)

The arguments to pass to the Google Maps tool.

GoogleMapsCallStepArguments

The arguments to pass to the Google Maps tool.

JSON representation
{
  "queries": [
    string
  ]
}
Fields
queries[]

string

The queries to be executed.

RetrievalCallStep

Retrieval call step. Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search, etc. RetrievalType decides which tool is used.

JSON representation
{
  "arguments": {
    object (RetrievalStepArguments)
  },
  "retrievalType": enum (RetrievalType)
}
Fields
arguments

object (RetrievalStepArguments)

Required. The arguments to pass to the retrieval tool.

retrievalType

enum (RetrievalType)

The type of retrieval tools.

ToolResultStep

Tool result step.

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

  // Union field type can be only one of the following:
  "functionResult": {
    object (FunctionResultStep)
  },
  "codeExecutionResult": {
    object (CodeExecutionResultStep)
  },
  "urlContextResult": {
    object (UrlContextResultStep)
  },
  "googleSearchResult": {
    object (GoogleSearchResultStep)
  },
  "mcpServerToolResult": {
    object (McpServerToolResultStep)
  },
  "fileSearchResult": {
    object (FileSearchResultStep)
  },
  "googleMapsResult": {
    object (GoogleMapsResultStep)
  },
  "retrievalResult": {
    object (RetrievalResultStep)
  }
  // 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 (FunctionResultStep)

codeExecutionResult

object (CodeExecutionResultStep)

urlContextResult

object (UrlContextResultStep)

googleSearchResult

object (GoogleSearchResultStep)

mcpServerToolResult

object (McpServerToolResultStep)

fileSearchResult

object (FileSearchResultStep)

googleMapsResult

object (GoogleMapsResultStep)

retrievalResult

object (RetrievalResultStep)

FunctionResultStep

result of a function tool call.

JSON representation
{
  "name": string,
  "isError": boolean,
  "result": {
    object (Value)
  }
}
Fields
name

string

The name of the tool that was called.

isError

boolean

Whether the tool call resulted in an error.

result

object (Value)

Required. The result of the tool call.

CodeExecutionResultStep

code execution result step.

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.

UrlContextResultStep

URL context result step.

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

object (UrlContextResultItem)

Required. The results of the URL context.

isError

boolean

Whether the URL context resulted in an error.

UrlContextResultItem

The result of the URL context.

JSON representation
{
  "url": string,
  "status": enum (Status)
}
Fields
url

string

The URL that was fetched.

status

enum (Status)

The status of the URL retrieval.

Status

The status of the URL retrieval.

Enums
STATUS_UNSPECIFIED
SUCCESS
ERROR
PAYWALL
UNSAFE

GoogleSearchResultStep

Google Search result step.

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

object (GoogleSearchResultItem)

Required. The results of the Google Search.

isError

boolean

Whether the Google Search resulted in an error.

GoogleSearchResultItem

The result of the Google Search.

JSON representation
{
  "searchSuggestions": string
}
Fields
searchSuggestions

string

Web content snippet that can be embedded in a web page or an app webview.

McpServerToolResultStep

MCPServer tool result step.

JSON representation
{
  "name": string,
  "serverName": string,
  "result": {
    object (Value)
  }
}
Fields
name

string

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

serverName

string

The name of the used MCP server.

result

object (Value)

Required. The output from the MCP server call. Can be simple text or rich content.

FileSearchResultStep

This type has no fields.

File Search result step.

GoogleMapsResultStep

Google Maps result step.

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

object (GoogleMapsResultItem)

GoogleMapsResultItem

The result of the Google Maps.

JSON representation
{
  "places": [
    {
      object (GoogleMapsResultPlaces)
    }
  ],
  "widgetContextToken": string
}
Fields
places[]

object (GoogleMapsResultPlaces)

widgetContextToken

string

GoogleMapsResultPlaces

JSON representation
{
  "placeId": string,
  "name": string,
  "url": string,
  "reviewSnippets": [
    {
      object (ReviewSnippet)
    }
  ]
}
Fields
placeId

string

name

string

url

string

reviewSnippets[]

object (ReviewSnippet)

RetrievalResultStep

Vertex Retrieval result step. Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search, etc.

JSON representation
{
  "isError": boolean
}
Fields
isError

boolean

Whether the retrieval resulted in an error.

UserInputStep

Input provided by the user.

JSON representation
{

  // Union field content can be only one of the following:
  "contentList": {
    object (ContentList)
  },
  "contentString": string
  // End of list of possible types for union field content.
}
Fields

Union field content.

content can be only one of the following:

contentList

object (ContentList)

The content of the step. An array of Content objects.

contentString

string

The content of the step. A single string.

ModelOutputStep

Output generated by the model.

JSON representation
{
  "content": [
    {
      object (Content)
    }
  ],
  "error": {
    object (Status)
  }
}
Fields
content[]

object (Content)

error
(deprecated)

object (Status)

The error result of the operation in case of failure or cancellation.