Dialogflow v3 API - Class SafetySettings (3.0.0)

public sealed class SafetySettings : IMessage<SafetySettings>, IEquatable<SafetySettings>, IDeepCloneable<SafetySettings>, IBufferMessage, IMessage

Reference documentation and code samples for the Dialogflow v3 API class SafetySettings.

Settings for Generative Safety.

Inheritance

object > SafetySettings

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

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