Reference documentation and code samples for the Google Cloud Ces V1 Client class ToolResponse.
The execution result of a specific tool from the client or the agent.
Generated from protobuf message google.cloud.ces.v1.ToolResponse
Namespace
Google \ Cloud \ Ces \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ tool
string
Optional. The name of the tool to execute. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
↳ toolset_tool
↳ id
↳ display_name
string
Output only. Display name of the tool.
↳ response
Google\Protobuf\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.
getTool
Optional. The name of the tool to execute.
Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
string
hasTool
setTool
Optional. The name of the tool to execute.
Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
var
string
$this
getToolsetTool
Optional. The toolset tool that got executed.
hasToolsetTool
setToolsetTool
Optional. The toolset tool that got executed.
$this
getId
Optional. The matching ID of the tool call the response is for.
string
setId
Optional. The matching ID of the tool call the response is for.
var
string
$this
getDisplayName
Output only. Display name of the tool.
string
setDisplayName
Output only. Display name of the tool.
var
string
$this
getResponse
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.
hasResponse
clearResponse
setResponse
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.
$this
getToolIdentifier
string

