Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCall

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



7050
7051
7052
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7050

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)


7037
7038
7039
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7037

def action
  @action
end

#input_parametersHash<String,Object>

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

Returns:

  • (Hash<String,Object>)


7042
7043
7044
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7042

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)


7048
7049
7050
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7048

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7055
7056
7057
7058
7059
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7055

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