Index
AgentTransfer(message)Blob(message)Chunk(message)EndSession(message)Image(message)Message(message)Span(message)ToolCall(message)ToolResponse(message)ToolsetTool(message)
AgentTransfer
Represents an event indicating the transfer of a conversation to a different agent.
| Fields | |
|---|---|
target_agent |
Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: |
display_name |
Output only. Display name of the agent. |
Blob
Represents a blob input or output in the conversation.
| Fields | |
|---|---|
mime_type |
Required. The IANA standard MIME type of the source data. |
data |
Required. Raw bytes of the blob. |
Chunk
A chunk of content within a message.
| Fields | |
|---|---|
Union field data. Chunk data. data can be only one of the following: |
|
text |
Optional. Text data. |
transcript |
Optional. Transcript associated with the audio. |
blob |
Optional. Blob data. |
payload |
Optional. Custom payload data. |
image |
Optional. Image data. |
tool_call |
Optional. Tool execution request. |
tool_response |
Optional. Tool execution response. |
agent_transfer |
Optional. Agent transfer event. |
updated_variables |
A struct represents variables that were updated in the conversation, keyed by variable names. |
default_variables |
A struct represents default variables at the start of the conversation, keyed by variable names. |
EndSession
Indicates the session has terminated, due to either successful completion (e.g. user says "Good bye!" ) or an agent escalation.
The agent will not process any further inputs after session is terminated and the client should half-close and disconnect after receiving all remaining responses from the agent.
| Fields | |
|---|---|
metadata |
Optional. Provides additional information about the end session signal, such as the reason for ending the session. |
Image
Represents an image input or output in the conversation.
| Fields | |
|---|---|
mime_type |
Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp |
data |
Required. Raw bytes of the image. |
alt_text |
Optional. The alternative text for the image. |
Message
A message within a conversation.
| Fields | |
|---|---|
role |
Optional. The role within the conversation, e.g., user, agent. |
chunks[] |
Optional. Content of the message as a series of chunks. |
event_time |
Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an |
Span
A span is a unit of work or a single operation during the request processing.
| Fields | |
|---|---|
name |
Output only. The name of the span. |
start_time |
Output only. The start time of the span. |
end_time |
Output only. The end time of the span. |
duration |
Output only. The duration of the span. |
attributes |
Output only. Key-value attributes associated with the span. |
child_spans[] |
Output only. The child spans that are nested under this span. |
ToolCall
Request for the client or the agent to execute the specified tool.
| Fields | |
|---|---|
id |
Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in |
display_name |
Output only. Display name of the tool. |
args |
Optional. The input parameters and values for the tool in JSON object format. |
parent_tool_call_id |
Output only. The id of the tool call that caused this one, when it was issued by a sub-agent working on behalf of a parent call. Empty for top-level calls. Lets a client group a sub-agent's work under the call that started it instead of rendering every step as a sibling. |
agent_name |
Output only. Human-readable name of the agent that issued this call, e.g. "Contract Architect". Empty when the root agent issued it. |
Union field tool_identifier. The identifier of the tool to execute. It could be either a persisted tool or a tool from a toolset. tool_identifier can be only one of the following: |
|
tool |
Optional. The name of the tool to execute. Format: |
toolset_tool |
Optional. The toolset tool to execute. |
ToolResponse
The execution result of a specific tool from the client or the agent.
| Fields | |
|---|---|
id |
Optional. The matching ID of the |
display_name |
Output only. Display name of the tool. |
response |
Required. The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result. |
parent_tool_call_id |
Output only. The id of the tool call that caused this one, when it was issued by a sub-agent working on behalf of a parent call. Empty for top-level calls. Lets a client group a sub-agent's work under the call that started it instead of rendering every step as a sibling. |
agent_name |
Output only. Human-readable name of the agent that issued this call, e.g. "Contract Architect". Empty when the root agent issued it. |
Union field tool_identifier. The identifier of the tool that got executed. It could be either a persisted tool or a tool from a toolset. tool_identifier can be only one of the following: |
|
tool |
Optional. The name of the tool to execute. Format: |
toolset_tool |
Optional. The toolset tool that got executed. |
ToolsetTool
A tool that is created from a toolset.
| Fields | |
|---|---|
toolset |
Required. The resource name of the Toolset from which this tool is derived. Format: |
tool_id |
Optional. The tool ID to filter the tools to retrieve the schema for. |