Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionInput

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#actionString

Optional. The type of action to take with the tool. Corresponds to the JSON property action

Returns:

  • (String)


17879
17880
17881
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17879

def action
  @action
end

#answer_recordString

Required. Format: projects//locations//answerRecords/ The answer record associated with the tool call. Corresponds to the JSON property answerRecord

Returns:

  • (String)


17885
17886
17887
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17885

def answer_record
  @answer_record
end

#parametersHash<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

Returns:

  • (Hash<String,Object>)


17891
17892
17893
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17891

def parameters
  @parameters
end

#send_timeString

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

Returns:

  • (String)


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