A step in the interaction.
typeUnion type
type can be only one of the following:DO NOT USE -- These are for 3P JSON only
text
(deprecated)object (LegacyTextContent)
image
(deprecated)object (LegacyImageContent)
audio
(deprecated)object (LegacyAudioContent)
document
(deprecated)object (LegacyDocumentContent)
video
(deprecated)object (LegacyVideoContent)
| JSON representation |
|---|
{ // type "thought": { object ( |
ThoughtStep
A thought step.
A signature hash for backend validation.
A base64-encoded string.
A summary of the thought.
| JSON representation |
|---|
{
"signature": string,
"summary": [
{
object ( |
ToolCallStep
Tool call step.
idstring
Required. A unique id for this specific tool call.
A signature hash for backend validation.
A base64-encoded string.
typeUnion type
type can be only one of the following:| JSON representation |
|---|
{ "id": string, "signature": string, // type "functionCall": { object ( |
FunctionCallStep
A function tool call step.
namestring
Required. The name of the tool to call.
Required. The arguments to pass to the function.
| JSON representation |
|---|
{
"name": string,
"arguments": {
object ( |
CodeExecutionCallStep
code execution call step.
Required. The arguments to pass to the code execution.
| JSON representation |
|---|
{
"arguments": {
object ( |
CodeExecutionCallStepArguments
The arguments to pass to the code execution.
Programming language of the code.
codestring
The code to be executed.
| JSON representation |
|---|
{
"language": enum ( |
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.
Required. The arguments to pass to the URL context.
| JSON representation |
|---|
{
"arguments": {
object ( |
UrlContextCallStepArguments
The arguments to pass to the URL context.
urls[]string
The URLs to fetch.
| JSON representation |
|---|
{ "urls": [ string ] } |
McpServerToolCallStep
MCPServer tool call step.
namestring
Required. The name of the tool which was called.
serverNamestring
Required. The name of the used MCP server.
Required. The JSON object of arguments for the function.
| JSON representation |
|---|
{
"name": string,
"serverName": string,
"arguments": {
object ( |
GoogleSearchCallStep
Google Search call step.
Required. The arguments to pass to Google Search.
The type of search grounding enabled.
| JSON representation |
|---|
{ "arguments": { object ( |
GoogleSearchCallStepArguments
The arguments to pass to Google Search.
queries[]string
Web search queries for the following-up web search.
| JSON representation |
|---|
{ "queries": [ string ] } |
FileSearchCallStep
This type has no fields.
File Search call step.
GoogleMapsCallStep
Google Maps call step.
The arguments to pass to the Google Maps tool.
| JSON representation |
|---|
{
"arguments": {
object ( |
GoogleMapsCallStepArguments
The arguments to pass to the Google Maps tool.
queries[]string
The queries to be executed.
| JSON representation |
|---|
{ "queries": [ string ] } |
RetrievalCallStep
Retrieval call step. Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Agent Platform Search, etc. RetrievalType decides which tool is used.
Required. The arguments to pass to the retrieval tool.
The type of retrieval tools.
| JSON representation |
|---|
{ "arguments": { object ( |
ToolResultStep
Tool result step.
callIdstring
Required. id to match the id from the function call block.
A signature hash for backend validation.
A base64-encoded string.
typeUnion type
type can be only one of the following:| JSON representation |
|---|
{ "callId": string, "signature": string, // type "functionResult": { object ( |
FunctionResultStep
result of a function tool call.
namestring
The name of the tool that was called.
isErrorboolean
Whether the tool call resulted in an error.
Required. The result of the tool call.
| JSON representation |
|---|
{
"name": string,
"isError": boolean,
"result": {
object ( |
CodeExecutionResultStep
code execution result step.
resultstring
Required. The output of the code execution.
isErrorboolean
Whether the code execution resulted in an error.
| JSON representation |
|---|
{ "result": string, "isError": boolean } |
UrlContextResultStep
URL context result step.
Required. The results of the URL context.
isErrorboolean
Whether the URL context resulted in an error.
| JSON representation |
|---|
{
"result": [
{
object ( |
UrlContextResultItem
The result of the URL context.
urlstring
The URL that was fetched.
The status of the URL retrieval.
| JSON representation |
|---|
{
"url": string,
"status": enum ( |
Status
The status of the URL retrieval.
| Enums | |
|---|---|
STATUS_UNSPECIFIED |
|
SUCCESS |
|
ERROR |
|
PAYWALL |
|
UNSAFE |
|
GoogleSearchResultStep
Google Search result step.
Required. The results of the Google Search.
isErrorboolean
Whether the Google Search resulted in an error.
| JSON representation |
|---|
{
"result": [
{
object ( |
GoogleSearchResultItem
The result of the Google Search.
searchSuggestionsstring
Web content snippet that can be embedded in a web page or an app webview.
| JSON representation |
|---|
{ "searchSuggestions": string } |
McpServerToolResultStep
MCPServer tool result step.
namestring
name of the tool which is called for this specific tool call.
serverNamestring
The name of the used MCP server.
Required. The output from the MCP server call. Can be simple text or rich content.
| JSON representation |
|---|
{
"name": string,
"serverName": string,
"result": {
object ( |
FileSearchResultStep
This type has no fields.
File Search result step.
GoogleMapsResultStep
Google Maps result step.
| JSON representation |
|---|
{
"result": [
{
object ( |
GoogleMapsResultItem
The result of the Google Maps.
widgetContextTokenstring
| JSON representation |
|---|
{
"places": [
{
object ( |
GoogleMapsResultPlaces
placeIdstring
namestring
urlstring
| JSON representation |
|---|
{
"placeId": string,
"name": string,
"url": string,
"reviewSnippets": [
{
object ( |
RetrievalResultStep
Vertex Retrieval result step. Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Agent Platform Search, etc.
isErrorboolean
Whether the retrieval resulted in an error.
| JSON representation |
|---|
{ "isError": boolean } |
UserInputStep
Input provided by the user.
contentUnion type
content can be only one of the following:The content of the step. An array of Content objects.
contentStringstring
The content of the step. A single string.
| JSON representation |
|---|
{
// content
"contentList": {
object ( |