Google Cloud Dialogflow Cx V3 Client - Class ToolCall (0.11.0)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class ToolCall.

Represents a call of a specific tool's action with the specified inputs.

Generated from protobuf message google.cloud.dialogflow.cx.v3.ToolCall

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ tool
string

Required. The tool associated with this call. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID> .

↳ action
string

Required. The name of the tool's action associated with this call.

↳ input_parameters
Google\Protobuf\Struct

Optional. The action's input parameters.

getTool

Required. The tool associated with this call. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID> .

Returns
Type
Description
string

setTool

Required. The tool associated with this call. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID> .

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getAction

Required. The name of the tool's action associated with this call.

Returns
Type
Description
string

setAction

Required. The name of the tool's action associated with this call.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getInputParameters

Optional. The action's input parameters.

Returns
Type
Description

hasInputParameters

clearInputParameters

setInputParameters

Optional. The action's input parameters.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: