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_parameters ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionParameter>
A list of input parameters for the action.
-
#output_parameters ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionParameter>
A list of output parameters generated by the action.
-
#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.
12172 12173 12174 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12172 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
12154 12155 12156 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12154 def action @action end |
#input_parameters ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionParameter>
A list of input parameters for the action.
Corresponds to the JSON property inputParameters
12159 12160 12161 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12159 def input_parameters @input_parameters end |
#output_parameters ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionParameter>
A list of output parameters generated by the action.
Corresponds to the JSON property outputParameters
12164 12165 12166 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12164 def output_parameters @output_parameters end |
#tool ⇒ String
Required. The tool that should be used. Format: projects//locations//agents//
tools/.
Corresponds to the JSON property tool
12170 12171 12172 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12170 def tool @tool end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12177 12178 12179 12180 12181 12182 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12177 def update!(**args) @action = args[:action] if args.key?(:action) @input_parameters = args[:input_parameters] if args.key?(:input_parameters) @output_parameters = args[:output_parameters] if args.key?(:output_parameters) @tool = args[:tool] if args.key?(:tool) end |