Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ToolCall
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ToolCall
- 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
Optional.
-
#answer_record ⇒ String
Optional.
-
#create_time ⇒ String
Output only.
-
#input_parameters ⇒ Hash<String,Object>
Optional.
-
#state ⇒ String
Output only.
-
#tool ⇒ String
Optional.
-
#tool_display_details ⇒ String
Optional.
-
#tool_display_name ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ToolCall
constructor
A new instance of GoogleCloudDialogflowV2beta1ToolCall.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ToolCall
Returns a new instance of GoogleCloudDialogflowV2beta1ToolCall.
24056 24057 24058 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 24056 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Optional. The name of the tool's action associated with this call.
Corresponds to the JSON property action
24018 24019 24020 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 24018 def action @action end |
#answer_record ⇒ String
Optional. The answer record associated with this tool call.
Corresponds to the JSON property answerRecord
24023 24024 24025 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 24023 def answer_record @answer_record end |
#create_time ⇒ String
Output only. Create time of the tool call.
Corresponds to the JSON property createTime
24028 24029 24030 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 24028 def create_time @create_time end |
#input_parameters ⇒ Hash<String,Object>
Optional. The action's input parameters.
Corresponds to the JSON property inputParameters
24033 24034 24035 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 24033 def input_parameters @input_parameters end |
#state ⇒ String
Output only. State of the tool call
Corresponds to the JSON property state
24038 24039 24040 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 24038 def state @state end |
#tool ⇒ String
Optional. The tool associated with this call. Format: projects//locations//
tools/.
Corresponds to the JSON property tool
24044 24045 24046 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 24044 def tool @tool end |
#tool_display_details ⇒ String
Optional. A human readable description of the tool.
Corresponds to the JSON property toolDisplayDetails
24049 24050 24051 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 24049 def tool_display_details @tool_display_details end |
#tool_display_name ⇒ String
Optional. A human readable short name of the tool, to be shown on the UI.
Corresponds to the JSON property toolDisplayName
24054 24055 24056 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 24054 def tool_display_name @tool_display_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
24061 24062 24063 24064 24065 24066 24067 24068 24069 24070 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 24061 def update!(**args) @action = args[:action] if args.key?(:action) @answer_record = args[:answer_record] if args.key?(:answer_record) @create_time = args[:create_time] if args.key?(:create_time) @input_parameters = args[:input_parameters] if args.key?(:input_parameters) @state = args[:state] if args.key?(:state) @tool = args[:tool] if args.key?(:tool) @tool_display_details = args[:tool_display_details] if args.key?(:tool_display_details) @tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name) end |