TemplateTemplateMetadata constructor

const TemplateTemplateMetadata({
  1. Input<int?>? customLlmResponseSafetyErrorCode,
  2. Input<String?>? customLlmResponseSafetyErrorMessage,
  3. Input<int?>? customPromptSafetyErrorCode,
  4. Input<String?>? customPromptSafetyErrorMessage,
  5. Input<String?>? enforcementType,
  6. Input<TemplateTemplateMetadataFilterVersionSelector?>? filterVersionSelector,
  7. Input<bool?>? ignorePartialInvocationFailures,
  8. Input<bool?>? logSanitizeOperations,
  9. Input<bool?>? logTemplateOperations,
  10. 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,
});