Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LlmModelSettings

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

Overview

Settings for LLM models.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3LlmModelSettings

Returns a new instance of GoogleCloudDialogflowCxV3LlmModelSettings.



6015
6016
6017
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6015

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

Instance Attribute Details

#modelString

The selected LLM model. Corresponds to the JSON property model

Returns:

  • (String)


6008
6009
6010
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6008

def model
  @model
end

#prompt_textString

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

Returns:

  • (String)


6013
6014
6015
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6013

def prompt_text
  @prompt_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6020
6021
6022
6023
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6020

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