Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class ToolCallInfo.
Request and response for a tool call.
Generated from protobuf message google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo
Namespace
Google \ Cloud \ Dialogflow \ V2 \ GeneratorSuggestionMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ tool_call |
Google\Cloud\Dialogflow\V2\ToolCall
Required. Request for a tool call. |
↳ tool_call_result |
Google\Cloud\Dialogflow\V2\ToolCallResult
Required. Response for a tool call. |
getToolCall
Required. Request for a tool call.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Dialogflow\V2\ToolCall|null |
|
hasToolCall
clearToolCall
setToolCall
Required. Request for a tool call.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Dialogflow\V2\ToolCall
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getToolCallResult
Required. Response for a tool call.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Dialogflow\V2\ToolCallResult|null |
|
hasToolCallResult
clearToolCallResult
setToolCallResult
Required. Response for a tool call.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Dialogflow\V2\ToolCallResult
|
| Returns | |
|---|---|
| Type | Description |
$this |
|