Request and response for a tool call.
| JSON representation |
|---|
{ "toolCall": { object ( |
| Fields | |
|---|---|
toolCall |
Required. Request for a tool call. |
toolCallResult |
Required. Response for a tool call. |
ToolCall
Represents a call of a specific tool's action with the specified inputs.
| JSON representation |
|---|
{
"toolDisplayName": string,
"toolDisplayDetails": string,
"action": string,
"inputParameters": {
object
},
"createTime": string,
"answerRecord": string,
"state": enum ( |
| Fields | |
|---|---|
toolDisplayName |
Optional. A human readable short name of the tool, to be shown on the UI. |
toolDisplayDetails |
Optional. A human readable description of the tool. |
action |
Optional. The name of the tool's action associated with this call. |
inputParameters |
Optional. The action's input parameters. |
createTime |
Output only. Create time of the tool call. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
answerRecord |
Optional. The answer record associated with this tool call. |
state |
Output only. State of the tool call |
| Specifies the source of this tool call. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
tool |
Optional. The |
cesTool |
Optional. CES tool name for this call. Format: |
cesToolset |
Optional. CES toolset name for this call. Format: |
cesApp |
Optional. CES app name for this call. Format: |
| End of mutually exclusive fields. | |
State
Tool call states.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Default value. |
TRIGGERED |
The tool call has been triggered. |
NEEDS_CONFIRMATION |
The tool call requires confirmation from a human. |
ToolCallResult
The result of calling a tool's action.
| JSON representation |
|---|
{
"action": string,
"createTime": string,
"answerRecord": string,
// The following is a list of mutually exclusive fields. At most one of the
// fields will be set in a response:
"tool": string,
"cesTool": string,
"cesToolset": string,
"cesApp": string
// End of mutually exclusive fields.
// The following is a list of mutually exclusive fields. At most one of the
// fields will be set in a response:
"error": {
object ( |
| Fields | |
|---|---|
action |
Optional. The name of the tool's action associated with this call. |
createTime |
Output only. Create time of the tool call result. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
answerRecord |
Optional. The answer record associated with this tool call result. |
| Specifies the source of this tool call. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
tool |
Optional. The |
cesTool |
Optional. CES tool name for this call. Format: |
cesToolset |
Optional. CES toolset name for this call. Format: |
cesApp |
Optional. CES app name for this call. Format: |
| End of mutually exclusive fields. | |
| The tool call's result. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
error |
Optional. The tool call's error. |
rawContent |
Optional. Only populated if the response content is not utf-8 encoded. (by definition byte fields are base64 encoded). A base64-encoded string. |
content |
Optional. Only populated if the response content is utf-8 encoded. |
| End of mutually exclusive fields. | |
Error
An error produced by the tool call.
| JSON representation |
|---|
{ "message": string, "retryable": boolean } |
| Fields | |
|---|---|
message |
Optional. The error message of the function. |
retryable |
Optional. Specifies whether the tool call is retryable. |