Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings

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 Generative AI.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GenerativeSettings

Returns a new instance of GoogleCloudDialogflowCxV3beta1GenerativeSettings.



7329
7330
7331
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7329

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

Instance Attribute Details

#fallback_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings

Settings for Generative Fallback. Corresponds to the JSON property fallbackSettings



7305
7306
7307
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7305

def fallback_settings
  @fallback_settings
end

#generative_safety_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettings

Settings for Generative Safety. Corresponds to the JSON property generativeSafetySettings



7310
7311
7312
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7310

def generative_safety_settings
  @generative_safety_settings
end

#knowledge_connector_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings

Settings for knowledge connector. These parameters are used for LLM prompt like "You are . You are a helpful and verbose at , . Your task is to help humans on ". Corresponds to the JSON property knowledgeConnectorSettings



7317
7318
7319
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7317

def knowledge_connector_settings
  @knowledge_connector_settings
end

#language_codeString

Language for this settings. Corresponds to the JSON property languageCode

Returns:

  • (String)


7322
7323
7324
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7322

def language_code
  @language_code
end

#nameString

Format: projects//locations//agents//generativeSettings. Corresponds to the JSON property name

Returns:

  • (String)


7327
7328
7329
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7327

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7334
7335
7336
7337
7338
7339
7340
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7334

def update!(**args)
  @fallback_settings = args[:fallback_settings] if args.key?(:fallback_settings)
  @generative_safety_settings = args[:generative_safety_settings] if args.key?(:generative_safety_settings)
  @knowledge_connector_settings = args[:knowledge_connector_settings] if args.key?(:knowledge_connector_settings)
  @language_code = args[:language_code] if args.key?(:language_code)
  @name = args[:name] if args.key?(:name)
end