Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3GenerativeSettings

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3GenerativeSettings

Returns a new instance of GoogleCloudDialogflowCxV3GenerativeSettings.



3090
3091
3092
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3090

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

Instance Attribute Details

#fallback_settingsGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings

Settings for Generative Fallback. Corresponds to the JSON property fallbackSettings



3066
3067
3068
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3066

def fallback_settings
  @fallback_settings
end

#generative_safety_settingsGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettings

Settings for Generative Safety. Corresponds to the JSON property generativeSafetySettings



3071
3072
3073
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3071

def generative_safety_settings
  @generative_safety_settings
end

#knowledge_connector_settingsGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings

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



3078
3079
3080
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3078

def knowledge_connector_settings
  @knowledge_connector_settings
end

#language_codeString

Language for this settings. Corresponds to the JSON property languageCode

Returns:

  • (String)


3083
3084
3085
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3083

def language_code
  @language_code
end

#nameString

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

Returns:

  • (String)


3088
3089
3090
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3088

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3095
3096
3097
3098
3099
3100
3101
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3095

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