Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolCallResult
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolCallResult
- 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
The result of calling a tool's action that has been executed by the client.
Instance Attribute Summary collapse
-
#action ⇒ String
Required.
-
#error ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolCallResultError
An error produced by the tool call.
-
#output_parameters ⇒ Hash<String,Object>
The tool call's output parameters.
-
#tool ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3ToolCallResult
constructor
A new instance of GoogleCloudDialogflowCxV3ToolCallResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3ToolCallResult
Returns a new instance of GoogleCloudDialogflowCxV3ToolCallResult.
9373 9374 9375 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9373 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Required. The name of the tool's action associated with this call.
Corresponds to the JSON property action
9355 9356 9357 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9355 def action @action end |
#error ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolCallResultError
An error produced by the tool call.
Corresponds to the JSON property error
9360 9361 9362 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9360 def error @error end |
#output_parameters ⇒ Hash<String,Object>
The tool call's output parameters.
Corresponds to the JSON property outputParameters
9365 9366 9367 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9365 def output_parameters @output_parameters end |
#tool ⇒ String
Required. The tool associated with this call. Format: projects//locations//
agents//tools/.
Corresponds to the JSON property tool
9371 9372 9373 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9371 def tool @tool end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9378 9379 9380 9381 9382 9383 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9378 def update!(**args) @action = args[:action] if args.key?(:action) @error = args[:error] if args.key?(:error) @output_parameters = args[:output_parameters] if args.key?(:output_parameters) @tool = args[:tool] if args.key?(:tool) end |