Model Armor v1 API - Class Template.Types.TemplateMetadata (1.0.0-beta02)

public sealed class Template.Types.TemplateMetadata : IMessage<Template.Types.TemplateMetadata>, IEquatable<Template.Types.TemplateMetadata>, IDeepCloneable<Template.Types.TemplateMetadata>, IBufferMessage, IMessage

Reference documentation and code samples for the Model Armor v1 API class Template.Types.TemplateMetadata.

Message describing TemplateMetadata

Inheritance

object > Template.Types.TemplateMetadata

Namespace

Google.Cloud.ModelArmor.V1

Assembly

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

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