A step in the interaction.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
thought |
|
toolCall |
|
toolResult |
|
userInput |
DO NOT USE -- These are for 3P JSON only |
modelOutput |
|
text |
|
image |
|
audio |
|
document |
|
video |
|
ThoughtStep
A thought step.
| JSON representation |
|---|
{
"signature": string,
"summary": [
{
object ( |
| Fields | |
|---|---|
signature |
A signature hash for backend validation. A base64-encoded string. |
summary[] |
A summary of the thought. |
ToolCallStep
Tool call step.
| 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 |
|
retrievalCall |
|
FunctionCallStep
A function tool call step.
| 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. |
CodeExecutionCallStep
code execution call step.
| JSON representation |
|---|
{
"arguments": {
object ( |
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to the code execution. |
CodeExecutionCallStepArguments
The arguments to pass to the code execution.
| JSON representation |
|---|
{
"language": enum ( |
| Fields | |
|---|---|
language |
Programming language of the |
code |
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 ( |
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to the URL context. |
UrlContextCallStepArguments
The arguments to pass to the URL context.
| JSON representation |
|---|
{ "urls": [ string ] } |
| Fields | |
|---|---|
urls[] |
The URLs to fetch. |
McpServerToolCallStep
MCPServer tool call step.
| 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. |
GoogleSearchCallStep
Google Search call step.
| JSON representation |
|---|
{ "arguments": { object ( |
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to Google Search. |
searchType |
The type of search grounding enabled. |
GoogleSearchCallStepArguments
The arguments to pass to Google Search.
| JSON representation |
|---|
{ "queries": [ string ] } |
| Fields | |
|---|---|
queries[] |
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 ( |
| Fields | |
|---|---|
arguments |
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[] |
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 ( |
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to the retrieval tool. |
retrievalType |
The type of retrieval tools. |
ToolResultStep
Tool result step.
| 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 |
|
retrievalResult |
|
FunctionResultStep
result of a function tool call.
| JSON representation |
|---|
{
"name": string,
"isError": boolean,
"result": {
object ( |
| Fields | |
|---|---|
name |
The name of the tool that was called. |
isError |
Whether the tool call resulted in an error. |
result |
Required. The result of the tool call. |
CodeExecutionResultStep
code execution result step.
| JSON representation |
|---|
{ "result": string, "isError": boolean } |
| Fields | |
|---|---|
result |
Required. The output of the code execution. |
isError |
Whether the code execution resulted in an error. |
UrlContextResultStep
URL context result step.
| JSON representation |
|---|
{
"result": [
{
object ( |
| Fields | |
|---|---|
result[] |
Required. The results of the URL context. |
isError |
Whether the URL context resulted in an error. |
UrlContextResultItem
The result of the URL context.
| JSON representation |
|---|
{
"url": string,
"status": enum ( |
| Fields | |
|---|---|
url |
The URL that was fetched. |
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 ( |
| Fields | |
|---|---|
result[] |
Required. The results of the Google Search. |
isError |
Whether the Google Search resulted in an error. |
GoogleSearchResultItem
The result of the Google Search.
| JSON representation |
|---|
{ "searchSuggestions": string } |
| Fields | |
|---|---|
searchSuggestions |
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 ( |
| Fields | |
|---|---|
name |
name of the tool which is called for this specific tool call. |
serverName |
The name of the used MCP server. |
result |
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 ( |
| Fields | |
|---|---|
result[] |
|
GoogleMapsResultItem
The result of the Google Maps.
| JSON representation |
|---|
{
"places": [
{
object ( |
| Fields | |
|---|---|
places[] |
|
widgetContextToken |
|
GoogleMapsResultPlaces
| JSON representation |
|---|
{
"placeId": string,
"name": string,
"url": string,
"reviewSnippets": [
{
object ( |
| Fields | |
|---|---|
placeId |
|
name |
|
url |
|
reviewSnippets[] |
|
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 |
Whether the retrieval resulted in an error. |
UserInputStep
Input provided by the user.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
contentList |
The content of the step. An array of Content objects. |
contentString |
The content of the step. A single string. |
ModelOutputStep
Output generated by the model.
| JSON representation |
|---|
{ "content": [ { object ( |
| Fields | |
|---|---|
content[] |
|
error |
The error result of the operation in case of failure or cancellation. |