Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmModelSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb

Overview

Settings for LLM models.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1LlmModelSettings

Returns a new instance of GoogleCloudDialogflowCxV3beta1LlmModelSettings.



10034
10035
10036
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10034

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

Instance Attribute Details

#modelString

The selected LLM model. Corresponds to the JSON property model

Returns:

  • (String)


10027
10028
10029
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10027

def model
  @model
end

#prompt_textString

The custom prompt to use. Corresponds to the JSON property promptText

Returns:

  • (String)


10032
10033
10034
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10032

def prompt_text
  @prompt_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10039
10040
10041
10042
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10039

def update!(**args)
  @model = args[:model] if args.key?(:model)
  @prompt_text = args[:prompt_text] if args.key?(:prompt_text)
end