Class TemplateMetadata (0.3.0)

TemplateMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Message describing TemplateMetadata

Attributes

Name Description
ignore_partial_invocation_failures bool
Optional. If true, partial detector failures should be ignored.
custom_prompt_safety_error_code int
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.
custom_prompt_safety_error_message str
Optional. Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
custom_llm_response_safety_error_code int
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.
custom_llm_response_safety_error_message str
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.
log_template_operations bool
Optional. If true, log template crud operations.
log_sanitize_operations bool
Optional. If true, log sanitize operations.
enforcement_type google.cloud.modelarmor_v1beta.types.Template.TemplateMetadata.EnforcementType
Optional. Enforcement type for Model Armor filters.
multi_language_detection google.cloud.modelarmor_v1beta.types.Template.TemplateMetadata.MultiLanguageDetection
Optional. Metadata for multi language detection.

Classes

EnforcementType

EnforcementType(value)

Enforcement type for Model Armor filters.

MultiLanguageDetection

MultiLanguageDetection(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Metadata to enable multi language detection via template.