Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolCall

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/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) ⇒ GoogleCloudDialogflowCxV3beta1ToolCall

Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolCall.



12847
12848
12849
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12847

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)


12834
12835
12836
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12834

def action
  @action
end

#input_parametersHash<String,Object>

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

Returns:

  • (Hash<String,Object>)


12839
12840
12841
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12839

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)


12845
12846
12847
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12845

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12852
12853
12854
12855
12856
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12852

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