Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1FulfillmentGeneratorSettings

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

Generator settings used by the LLM to generate a text response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1FulfillmentGeneratorSettings

Returns a new instance of GoogleCloudDialogflowCxV3beta1FulfillmentGeneratorSettings.



5376
5377
5378
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5376

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#generatorString

Required. The generator to call. Format: projects//locations//agents// generators/. Corresponds to the JSON property generator

Returns:

  • (String)


5358
5359
5360
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5358

def generator
  @generator
end

#input_parametersHash<String,String>

Map from placeholder parameter in the Generator to corresponding session parameters. By default, Dialogflow uses the session parameter with the same name to fill in the generator template. e.g. If there is a placeholder parameter city in the Generator, Dialogflow default to fill in the $city with $session.params.city. However, you may choose to fill $city with $ session.params.desination-city. - Map key: parameter ID - Map value: session parameter name Corresponds to the JSON property inputParameters

Returns:

  • (Hash<String,String>)


5369
5370
5371
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5369

def input_parameters
  @input_parameters
end

#output_parameterString

Required. Output parameter which should contain the generator response. Corresponds to the JSON property outputParameter

Returns:

  • (String)


5374
5375
5376
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5374

def output_parameter
  @output_parameter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5381
5382
5383
5384
5385
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5381

def update!(**args)
  @generator = args[:generator] if args.key?(:generator)
  @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
  @output_parameter = args[:output_parameter] if args.key?(:output_parameter)
end