Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionInput

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/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) ⇒ GoogleCloudDialogflowV2beta1SuggestionInput

Returns a new instance of GoogleCloudDialogflowV2beta1SuggestionInput.



22569
22570
22571
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22569

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)


22537
22538
22539
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22537

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)


22543
22544
22545
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22543

def answer_record
  @answer_record
end

#intent_inputGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentInput

Represents the intent to trigger programmatically rather than as a result of natural language processing. The intent input is only used for V3 agent. Corresponds to the JSON property intentInput



22549
22550
22551
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22549

def intent_input
  @intent_input
end

#parametersHash<String,Object>

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>)


22555
22556
22557
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22555

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)


22562
22563
22564
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22562

def send_time
  @send_time
end

#text_overrideGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput

Represents the natural language text to be processed. Corresponds to the JSON property textOverride



22567
22568
22569
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22567

def text_override
  @text_override
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22574
22575
22576
22577
22578
22579
22580
22581
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22574

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @answer_record = args[:answer_record] if args.key?(:answer_record)
  @intent_input = args[:intent_input] if args.key?(:intent_input)
  @parameters = args[:parameters] if args.key?(:parameters)
  @send_time = args[:send_time] if args.key?(:send_time)
  @text_override = args[:text_override] if args.key?(:text_override)
end