TemplateTemplateMetadata constructor
- 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.
Implementation
const TemplateTemplateMetadata({
this.customLlmResponseSafetyErrorCode,
this.customLlmResponseSafetyErrorMessage,
this.customPromptSafetyErrorCode,
this.customPromptSafetyErrorMessage,
this.enforcementType,
this.filterVersionSelector,
this.ignorePartialInvocationFailures,
this.logSanitizeOperations,
this.logTemplateOperations,
this.multiLanguageDetection,
});