Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCallResult
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCallResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/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::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCallResultError
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) ⇒ GoogleCloudDialogflowCxV3beta1ToolCallResult
constructor
A new instance of GoogleCloudDialogflowCxV3beta1ToolCallResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ToolCallResult
Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolCallResult.
6864 6865 6866 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6864 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
6846 6847 6848 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6846 def action @action end |
#error ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCallResultError
An error produced by the tool call.
Corresponds to the JSON property error
6851 6852 6853 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6851 def error @error end |
#output_parameters ⇒ Hash<String,Object>
The tool call's output parameters.
Corresponds to the JSON property outputParameters
6856 6857 6858 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6856 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
6862 6863 6864 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6862 def tool @tool end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6869 6870 6871 6872 6873 6874 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6869 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 |