Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCall
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCall
- 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
-
#action ⇒ String
Required.
-
#input_parameters ⇒ Hash<String,Object>
Optional.
-
#tool ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3ToolCall
constructor
A new instance of GoogleCloudDialogflowCxV3ToolCall.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3ToolCall
Returns a new instance of GoogleCloudDialogflowCxV3ToolCall.
3156 3157 3158 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3156 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
3143 3144 3145 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3143 def action @action end |
#input_parameters ⇒ Hash<String,Object>
Optional. The action's input parameters.
Corresponds to the JSON property inputParameters
3148 3149 3150 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3148 def input_parameters @input_parameters end |
#tool ⇒ String
Required. The tool associated with this call. Format: projects//locations//
agents//tools/.
Corresponds to the JSON property tool
3154 3155 3156 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3154 def tool @tool end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3161 3162 3163 3164 3165 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3161 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 |