GuardrailContentPolicyConfig¶
Structure Class¶
GuardrailContentPolicyConfig
dataclass
¶
Contains details about how to handle harmful content.
Attributes¶
filters_config
instance-attribute
¶
filters_config: list[GuardrailContentFilterConfig]
Contains the type of the content filter and how strongly it should apply to prompts and model responses.
tier_config
class-attribute
instance-attribute
¶
tier_config: GuardrailContentFiltersTierConfig | None = None
The tier that your guardrail uses for content filters.