public sealed class Template.Types.TemplateMetadata : IMessage<Template.Types.TemplateMetadata>, IEquatable<Template.Types.TemplateMetadata>, IDeepCloneable<Template.Types.TemplateMetadata>, IBufferMessage, IMessageReference documentation and code samples for the Model Armor v1 API class Template.Types.TemplateMetadata.
Message describing TemplateMetadata
Implements
IMessageTemplateTypesTemplateMetadata, IEquatableTemplateTypesTemplateMetadata, IDeepCloneableTemplateTypesTemplateMetadata, IBufferMessage, IMessageNamespace
Google.Cloud.ModelArmor.V1Assembly
Google.Cloud.ModelArmor.V1.dll
Constructors
TemplateMetadata()
public TemplateMetadata()TemplateMetadata(TemplateMetadata)
public TemplateMetadata(Template.Types.TemplateMetadata other)| Parameter | |
|---|---|
| Name | Description |
other |
TemplateTypesTemplateMetadata |
Properties
CustomLlmResponseSafetyErrorCode
public int CustomLlmResponseSafetyErrorCode { get; set; }Optional. Indicates the custom error code set by the user to be returned to the end user if the LLM response trips Model Armor filters.
| Property Value | |
|---|---|
| Type | Description |
int |
|
CustomLlmResponseSafetyErrorMessage
public string CustomLlmResponseSafetyErrorMessage { get; set; }Optional. Indicates the custom error message set by the user to be returned to the end user if the LLM response trips Model Armor filters.
| Property Value | |
|---|---|
| Type | Description |
string |
|
CustomPromptSafetyErrorCode
public int CustomPromptSafetyErrorCode { get; set; }Optional. Indicates the custom error code set by the user to be returned to the end user by the service extension if the prompt trips Model Armor filters.
| Property Value | |
|---|---|
| Type | Description |
int |
|
CustomPromptSafetyErrorMessage
public string CustomPromptSafetyErrorMessage { get; set; }Optional. Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
| Property Value | |
|---|---|
| Type | Description |
string |
|
EnforcementType
public Template.Types.TemplateMetadata.Types.EnforcementType EnforcementType { get; set; }Optional. Enforcement type for Model Armor filters.
| Property Value | |
|---|---|
| Type | Description |
TemplateTypesTemplateMetadataTypesEnforcementType |
|
IgnorePartialInvocationFailures
public bool IgnorePartialInvocationFailures { get; set; }Optional. If true, partial detector failures should be ignored.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
LogSanitizeOperations
public bool LogSanitizeOperations { get; set; }Optional. If true, log sanitize operations.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
LogTemplateOperations
public bool LogTemplateOperations { get; set; }Optional. If true, log template crud operations.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
MultiLanguageDetection
public Template.Types.TemplateMetadata.Types.MultiLanguageDetection MultiLanguageDetection { get; set; }Optional. Metadata for multi language detection.
| Property Value | |
|---|---|
| Type | Description |
TemplateTypesTemplateMetadataTypesMultiLanguageDetection |
|