Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettings
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettings
- 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 Safety.
Instance Attribute Summary collapse
-
#banned_phrases ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase>
Banned phrases for generated text.
-
#default_banned_phrase_match_strategy ⇒ String
Optional.
-
#prompt_security_settings ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsPromptSecuritySettings
Settings for prompt security checks.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1SafetySettings
constructor
A new instance of GoogleCloudDialogflowCxV3beta1SafetySettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1SafetySettings
Returns a new instance of GoogleCloudDialogflowCxV3beta1SafetySettings.
13312 13313 13314 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13312 def initialize(**args) update!(**args) end |
Instance Attribute Details
#banned_phrases ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase>
Banned phrases for generated text.
Corresponds to the JSON property bannedPhrases
13300 13301 13302 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13300 def banned_phrases @banned_phrases end |
#default_banned_phrase_match_strategy ⇒ String
Optional. Default phrase match strategy for banned phrases.
Corresponds to the JSON property defaultBannedPhraseMatchStrategy
13305 13306 13307 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13305 def default_banned_phrase_match_strategy @default_banned_phrase_match_strategy end |
#prompt_security_settings ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsPromptSecuritySettings
Settings for prompt security checks.
Corresponds to the JSON property promptSecuritySettings
13310 13311 13312 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13310 def prompt_security_settings @prompt_security_settings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13317 13318 13319 13320 13321 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13317 def update!(**args) @banned_phrases = args[:banned_phrases] if args.key?(:banned_phrases) @default_banned_phrase_match_strategy = args[:default_banned_phrase_match_strategy] if args.key?(:default_banned_phrase_match_strategy) @prompt_security_settings = args[:prompt_security_settings] if args.key?(:prompt_security_settings) end |