Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionInput
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionInput
- 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 the action to take for a tool call that requires confirmation.
Instance Attribute Summary collapse
-
#action ⇒ String
Optional.
-
#answer_record ⇒ String
Required.
-
#parameters ⇒ Hash<String,Object>
Optional.
-
#send_time ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2SuggestionInput
constructor
A new instance of GoogleCloudDialogflowV2SuggestionInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2SuggestionInput
Returns a new instance of GoogleCloudDialogflowV2SuggestionInput.
17900 17901 17902 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17900 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Optional. The type of action to take with the tool.
Corresponds to the JSON property action
17879 17880 17881 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17879 def action @action end |
#answer_record ⇒ String
Required. Format: projects//locations//answerRecords/ The answer record
associated with the tool call.
Corresponds to the JSON property answerRecord
17885 17886 17887 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17885 def answer_record @answer_record end |
#parameters ⇒ Hash<String,Object>
Optional. Parameters to be used for the tool call. If not provided, the tool
will be called without any parameters.
Corresponds to the JSON property parameters
17891 17892 17893 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17891 def parameters @parameters end |
#send_time ⇒ String
Optional. Time when the current suggest input is sent. For tool calls, this
timestamp (along with the answer record) will be included in the corresponding
tool call result so that it can be identified.
Corresponds to the JSON property sendTime
17898 17899 17900 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17898 def send_time @send_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17905 17906 17907 17908 17909 17910 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17905 def update!(**args) @action = args[:action] if args.key?(:action) @answer_record = args[:answer_record] if args.key?(:answer_record) @parameters = args[:parameters] if args.key?(:parameters) @send_time = args[:send_time] if args.key?(:send_time) end |