Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2ToolCall
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowV2ToolCall
- 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
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) ⇒ GoogleCloudDialogflowV2ToolCall
constructor
A new instance of GoogleCloudDialogflowV2ToolCall.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2ToolCall
Returns a new instance of GoogleCloudDialogflowV2ToolCall.
18810 18811 18812 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18810 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
18772 18773 18774 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18772 def action @action end |
#answer_record ⇒ String
Optional. The answer record associated with this tool call.
Corresponds to the JSON property answerRecord
18777 18778 18779 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18777 def answer_record @answer_record end |
#create_time ⇒ String
Output only. Create time of the tool call.
Corresponds to the JSON property createTime
18782 18783 18784 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18782 def create_time @create_time end |
#input_parameters ⇒ Hash<String,Object>
Optional. The action's input parameters.
Corresponds to the JSON property inputParameters
18787 18788 18789 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18787 def input_parameters @input_parameters end |
#state ⇒ String
Output only. State of the tool call.
Corresponds to the JSON property state
18792 18793 18794 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18792 def state @state end |
#tool ⇒ String
Optional. The tool associated with this call. Format: projects//locations//
tools/.
Corresponds to the JSON property tool
18798 18799 18800 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18798 def tool @tool end |
#tool_display_details ⇒ String
Optional. A human readable description of the tool.
Corresponds to the JSON property toolDisplayDetails
18803 18804 18805 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18803 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
18808 18809 18810 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18808 def tool_display_name @tool_display_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18815 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 |