SafetySettings(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Settings for Generative Safety.
Attributes |
|
---|---|
Name | Description |
default_banned_phrase_match_strategy |
google.cloud.dialogflowcx_v3beta1.types.SafetySettings.PhraseMatchStrategy
Optional. Default phrase match strategy for banned phrases. |
banned_phrases |
MutableSequence[google.cloud.dialogflowcx_v3beta1.types.SafetySettings.Phrase]
Banned phrases for generated text. |
prompt_security_settings |
google.cloud.dialogflowcx_v3beta1.types.SafetySettings.PromptSecuritySettings
Optional. Settings for prompt security checks. |
Classes
Phrase
Phrase(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Text input which can be used for prompt or banned phrases.
PhraseMatchStrategy
PhraseMatchStrategy(value)
Strategy for matching phrases.
PromptSecuritySettings
PromptSecuritySettings(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Settings for prompt security checks.