public sealed class SafetySettings : IMessage<SafetySettings>, IEquatable<SafetySettings>, IDeepCloneable<SafetySettings>, IBufferMessage, IMessageReference documentation and code samples for the Dialogflow v3 API class SafetySettings.
Settings for Generative Safety.
Implements
IMessageSafetySettings, IEquatableSafetySettings, IDeepCloneableSafetySettings, IBufferMessage, IMessageNamespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Constructors
SafetySettings()
public SafetySettings()SafetySettings(SafetySettings)
public SafetySettings(SafetySettings other)| Parameter | |
|---|---|
| Name | Description |
other |
SafetySettings |
Properties
BannedPhrases
public RepeatedField<SafetySettings.Types.Phrase> BannedPhrases { get; }Banned phrases for generated text.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldSafetySettingsTypesPhrase |
|
DefaultBannedPhraseMatchStrategy
public SafetySettings.Types.PhraseMatchStrategy DefaultBannedPhraseMatchStrategy { get; set; }Optional. Default phrase match strategy for banned phrases.
| Property Value | |
|---|---|
| Type | Description |
SafetySettingsTypesPhraseMatchStrategy |
|
DefaultRaiSettings
public SafetySettings.Types.RaiSettings DefaultRaiSettings { get; set; }Optional. Immutable. Default RAI settings to be annotated on the agent, so that users will be able to restore their RAI configurations to the default settings. Read-only field for the API proto only.
| Property Value | |
|---|---|
| Type | Description |
SafetySettingsTypesRaiSettings |
|
PromptSecuritySettings
public SafetySettings.Types.PromptSecuritySettings PromptSecuritySettings { get; set; }Optional. Settings for prompt security checks.
| Property Value | |
|---|---|
| Type | Description |
SafetySettingsTypesPromptSecuritySettings |
|
RaiSettings
public SafetySettings.Types.RaiSettings RaiSettings { get; set; }Optional. Settings for Responsible AI checks.
| Property Value | |
|---|---|
| Type | Description |
SafetySettingsTypesRaiSettings |
|