Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings
- 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
-
#fallback_settings ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings
Settings for Generative Fallback.
-
#generative_safety_settings ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettings
Settings for Generative Safety.
-
#knowledge_connector_settings ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings
Settings for knowledge connector.
-
#language_code ⇒ String
Language for this settings.
-
#llm_model_settings ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmModelSettings
Settings for LLM models.
-
#name ⇒ String
Format:
projects//locations//agents//generativeSettings
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GenerativeSettings
constructor
A new instance of GoogleCloudDialogflowCxV3beta1GenerativeSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GenerativeSettings
Returns a new instance of GoogleCloudDialogflowCxV3beta1GenerativeSettings.
8083 8084 8085 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8083 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fallback_settings ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings
Settings for Generative Fallback.
Corresponds to the JSON property fallbackSettings
8054 8055 8056 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8054 def fallback_settings @fallback_settings end |
#generative_safety_settings ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettings
Settings for Generative Safety.
Corresponds to the JSON property generativeSafetySettings
8059 8060 8061 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8059 def generative_safety_settings @generative_safety_settings end |
#knowledge_connector_settings ⇒ Google::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
8066 8067 8068 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8066 def knowledge_connector_settings @knowledge_connector_settings end |
#language_code ⇒ String
Language for this settings.
Corresponds to the JSON property languageCode
8071 8072 8073 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8071 def language_code @language_code end |
#llm_model_settings ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmModelSettings
Settings for LLM models.
Corresponds to the JSON property llmModelSettings
8076 8077 8078 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8076 def llm_model_settings @llm_model_settings end |
#name ⇒ String
Format: projects//locations//agents//generativeSettings
.
Corresponds to the JSON property name
8081 8082 8083 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8081 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8088 8089 8090 8091 8092 8093 8094 8095 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8088 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 |