Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolUse
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolUse
- 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
-
#action ⇒ String
Optional.
-
#input_action_parameters ⇒ Hash<String,Object>
Optional.
-
#output_action_parameters ⇒ Hash<String,Object>
Optional.
-
#tool ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ToolUse
constructor
A new instance of GoogleCloudDialogflowCxV3beta1ToolUse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ToolUse
Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolUse.
13251 13252 13253 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13251 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Optional. Name of the action to be called during the tool use.
Corresponds to the JSON property action
13233 13234 13235 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13233 def action @action end |
#input_action_parameters ⇒ Hash<String,Object>
Optional. A list of input parameters for the action.
Corresponds to the JSON property inputActionParameters
13238 13239 13240 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13238 def input_action_parameters @input_action_parameters end |
#output_action_parameters ⇒ Hash<String,Object>
Optional. A list of output parameters generated by the action.
Corresponds to the JSON property outputActionParameters
13243 13244 13245 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13243 def output_action_parameters @output_action_parameters end |
#tool ⇒ String
Required. The tool that should be used. Format: projects//locations//agents//
tools/.
Corresponds to the JSON property tool
13249 13250 13251 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13249 def tool @tool end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13256 13257 13258 13259 13260 13261 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13256 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 |