Package google.cloud.ces.v1main

Index

AgentTransfer

Represents an event indicating the transfer of a conversation to a different agent.

Fields
target_agent

string

Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: projects/{project}/locations/{location}/apps/{app}/agents/{agent}

display_name

string

Output only. Display name of the agent.

Blob

Represents a blob input or output in the conversation.

Fields
mime_type

string

Required. The IANA standard MIME type of the source data.

data

bytes

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

string

Optional. Text data.

transcript

string

Optional. Transcript associated with the audio.

blob

Blob

Optional. Blob data.

payload

Struct

Optional. Custom payload data.

image

Image

Optional. Image data.

tool_call

ToolCall

Optional. Tool execution request.

tool_response

ToolResponse

Optional. Tool execution response.

agent_transfer

AgentTransfer

Optional. Agent transfer event.

updated_variables

Struct

A struct represents variables that were updated in the conversation, keyed by variable names.

default_variables

Struct

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

Struct

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

string

Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp

data

bytes

Required. Raw bytes of the image.

alt_text

string

Optional. The alternative text for the image.

Message

A message within a conversation.

Fields
role

string

Optional. The role within the conversation, e.g., user, agent.

chunks[]

Chunk

Optional. Content of the message as a series of chunks.

event_time

Timestamp

Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.

Span

A span is a unit of work or a single operation during the request processing.

Fields
name

string

Output only. The name of the span.

start_time

Timestamp

Output only. The start time of the span.

end_time

Timestamp

Output only. The end time of the span.

duration

Duration

Output only. The duration of the span.

attributes

Struct

Output only. Key-value attributes associated with the span.

child_spans[]

Span

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

string

Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.

display_name

string

Output only. Display name of the tool.

args

Struct

Optional. The input parameters and values for the tool in JSON object format.

parent_tool_call_id

string

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

string

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

string

Optional. The name of the tool to execute. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}

toolset_tool

ToolsetTool

Optional. The toolset tool to execute.

ToolResponse

The execution result of a specific tool from the client or the agent.

Fields
id

string

Optional. The matching ID of the tool call the response is for.

display_name

string

Output only. Display name of the tool.

response

Struct

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

string

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

string

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

string

Optional. The name of the tool to execute. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}

toolset_tool

ToolsetTool

Optional. The toolset tool that got executed.

ToolsetTool

A tool that is created from a toolset.

Fields
toolset

string

Required. The resource name of the Toolset from which this tool is derived. Format: projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}

tool_id

string

Optional. The tool ID to filter the tools to retrieve the schema for.