Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolUse

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

Stores metadata of the invocation of an action supported by a tool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ToolUse

Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolUse.



13145
13146
13147
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13145

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

Instance Attribute Details

#actionString

Optional. Name of the action to be called during the tool use. Corresponds to the JSON property action

Returns:

  • (String)


13127
13128
13129
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13127

def action
  @action
end

#input_action_parametersHash<String,Object>

Optional. A list of input parameters for the action. Corresponds to the JSON property inputActionParameters

Returns:

  • (Hash<String,Object>)


13132
13133
13134
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13132

def input_action_parameters
  @input_action_parameters
end

#output_action_parametersHash<String,Object>

Optional. A list of output parameters generated by the action. Corresponds to the JSON property outputActionParameters

Returns:

  • (Hash<String,Object>)


13137
13138
13139
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13137

def output_action_parameters
  @output_action_parameters
end

#toolString

Required. The tool that should be used. Format: projects//locations//agents// tools/. Corresponds to the JSON property tool

Returns:

  • (String)


13143
13144
13145
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13143

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13150
13151
13152
13153
13154
13155
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13150

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