TemplateTemplateMetadata class

Constructors

TemplateTemplateMetadata({Input<int?>? customLlmResponseSafetyErrorCode, Input<String?>? customLlmResponseSafetyErrorMessage, Input<int?>? customPromptSafetyErrorCode, Input<String?>? customPromptSafetyErrorMessage, Input<String?>? enforcementType, Input<TemplateTemplateMetadataFilterVersionSelector?>? filterVersionSelector, Input<bool?>? ignorePartialInvocationFailures, Input<bool?>? logSanitizeOperations, Input<bool?>? logTemplateOperations, Input<TemplateTemplateMetadataMultiLanguageDetection?>? multiLanguageDetection})
Creates a new TemplateTemplateMetadata. customLlmResponseSafetyErrorCode Indicates the custom error code set by the user to be returned to the end customLlmResponseSafetyErrorMessage Indicates the custom error message set by the user to be returned to the customPromptSafetyErrorCode Indicates the custom error code set by the user to be returned to the end customPromptSafetyErrorMessage Indicates the custom error message set by the user to be returned to the enforcementType Possible values: filterVersionSelector Selects the filter version to use for this template. Set exactly one of ignorePartialInvocationFailures If true, partial detector failures should be ignored. logSanitizeOperations If true, log sanitize operations. logTemplateOperations If true, log template crud operations. multiLanguageDetection Metadata to enable multi language detection via template.
const
TemplateTemplateMetadata.fromMap(Map<String, dynamic> map)
factory

Properties

customLlmResponseSafetyErrorCode → Input<int?>?
Indicates the custom error code set by the user to be returned to the end user if the LLM response trips Model Armor filters.
final
customLlmResponseSafetyErrorMessage → Input<String?>?
Indicates the custom error message set by the user to be returned to the end user if the LLM response trips Model Armor filters.
final
customPromptSafetyErrorCode → Input<int?>?
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.
final
customPromptSafetyErrorMessage → Input<String?>?
Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
final
enforcementType → Input<String?>?
Possible values: INSPECT_ONLY INSPECT_AND_BLOCK
final
filterVersionSelector → Input<TemplateTemplateMetadataFilterVersionSelector?>?
Selects the filter version to use for this template. Set exactly one of 'alias' or 'version'. Structure is documented below.
final
hashCode → int
The hash code for this object.
no setterinherited
ignorePartialInvocationFailures → Input<bool?>?
If true, partial detector failures should be ignored.
final
logSanitizeOperations → Input<bool?>?
If true, log sanitize operations.
final
logTemplateOperations → Input<bool?>?
If true, log template crud operations.
final
multiLanguageDetection → Input<TemplateTemplateMetadataMultiLanguageDetection?>?
Metadata to enable multi language detection via template. Structure is documented below.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited