public sealed class Assistant.Types.CustomerPolicy.Types.BannedPhrase : IMessage<Assistant.Types.CustomerPolicy.Types.BannedPhrase>, IEquatable<Assistant.Types.CustomerPolicy.Types.BannedPhrase>, IDeepCloneable<Assistant.Types.CustomerPolicy.Types.BannedPhrase>, IBufferMessage, IMessageReference documentation and code samples for the Discovery Engine v1beta API class Assistant.Types.CustomerPolicy.Types.BannedPhrase.
Definition of a customer-defined banned phrase. A banned phrase is not allowed to appear in the user query or the LLM response, or else the answer will be refused.
Implements
IMessageAssistantTypesCustomerPolicyTypesBannedPhrase, IEquatableAssistantTypesCustomerPolicyTypesBannedPhrase, IDeepCloneableAssistantTypesCustomerPolicyTypesBannedPhrase, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Constructors
BannedPhrase()
public BannedPhrase()BannedPhrase(BannedPhrase)
public BannedPhrase(Assistant.Types.CustomerPolicy.Types.BannedPhrase other)| Parameter | |
|---|---|
| Name | Description |
other |
AssistantTypesCustomerPolicyTypesBannedPhrase |
Properties
IgnoreDiacritics
public bool IgnoreDiacritics { get; set; }Optional. If true, diacritical marks (e.g., accents, umlauts) are ignored when matching banned phrases. For example, "cafe" would match "café".
| Property Value | |
|---|---|
| Type | Description |
bool |
|
MatchType
public Assistant.Types.CustomerPolicy.Types.BannedPhrase.Types.BannedPhraseMatchType MatchType { get; set; }Optional. Match type for the banned phrase.
| Property Value | |
|---|---|
| Type | Description |
AssistantTypesCustomerPolicyTypesBannedPhraseTypesBannedPhraseMatchType |
|
Phrase
public string Phrase { get; set; }Required. The raw string content to be banned.
| Property Value | |
|---|---|
| Type | Description |
string |
|