Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolCall

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3ToolCall

Returns a new instance of GoogleCloudDialogflowCxV3ToolCall.



7211
7212
7213
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7211

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#actionString

Required. The name of the tool's action associated with this call. Corresponds to the JSON property action

Returns:

  • (String)


7198
7199
7200
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7198

def action
  @action
end

#input_parametersHash<String,Object>

Optional. The action's input parameters. Corresponds to the JSON property inputParameters

Returns:

  • (Hash<String,Object>)


7203
7204
7205
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7203

def input_parameters
  @input_parameters
end

#toolString

Required. The tool associated with this call. Format: projects//locations// agents//tools/. Corresponds to the JSON property tool

Returns:

  • (String)


7209
7210
7211
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7209

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7216
7217
7218
7219
7220
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7216

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
  @tool = args[:tool] if args.key?(:tool)
end