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.



8111
8112
8113
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8111

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

Instance Attribute Details

#fallback_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings

Settings for Generative Fallback. Corresponds to the JSON property fallbackSettings



8082
8083
8084
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8082

def fallback_settings
  @fallback_settings
end

#generative_safety_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettings

Settings for Generative Safety. Corresponds to the JSON property generativeSafetySettings



8087
8088
8089
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8087

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



8094
8095
8096
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8094

def knowledge_connector_settings
  @knowledge_connector_settings
end

#language_codeString

Language for this settings. Corresponds to the JSON property languageCode

Returns:

  • (String)


8099
8100
8101
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8099

def language_code
  @language_code
end

#llm_model_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmModelSettings

Settings for LLM models. Corresponds to the JSON property llmModelSettings



8104
8105
8106
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8104

def llm_model_settings
  @llm_model_settings
end

#nameString

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

Returns:

  • (String)


8109
8110
8111
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8109

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8116
8117
8118
8119
8120
8121
8122
8123
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8116

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)
  @llm_model_settings = args[:llm_model_settings] if args.key?(:llm_model_settings)
  @name = args[:name] if args.key?(:name)
end