Google Cloud Dialogflow V2 Client - Class ToolCallSuggestion (2.8.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class ToolCallSuggestion.

Structured wrapper that pairs tool execution details with strongly-typed citations.

Generated from protobuf message google.cloud.dialogflow.v2.ToolCallSuggestion

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ tool_call_info GeneratorSuggestion\ToolCallInfo

Optional. Tool execution request/response details.

↳ text_update string

Optional. The conversational text update generated by the agent accompanying this tool call (e.g. "The status of your order 12345 is currently being retrieved..."). This is a status update emitted alongside in-flight tool execution and is not accumulated into the final response.

getToolCallInfo

Optional. Tool execution request/response details.

Returns
Type Description
GeneratorSuggestion\ToolCallInfo|null

hasToolCallInfo

clearToolCallInfo

setToolCallInfo

Optional. Tool execution request/response details.

Parameter
Name Description
var GeneratorSuggestion\ToolCallInfo
Returns
Type Description
$this

getTextUpdate

Optional. The conversational text update generated by the agent accompanying this tool call (e.g. "The status of your order 12345 is currently being retrieved..."). This is a status update emitted alongside in-flight tool execution and is not accumulated into the final response.

Returns
Type Description
string

setTextUpdate

Optional. The conversational text update generated by the agent accompanying this tool call (e.g. "The status of your order 12345 is currently being retrieved..."). This is a status update emitted alongside in-flight tool execution and is not accumulated into the final response.

Parameter
Name Description
var string
Returns
Type Description
$this