Skip to content

GuardrailContentPolicyConfig

Structure Class

GuardrailContentPolicyConfig dataclass

Bases: _SerdeShape

Contains details about how to handle harmful content.

Attributes

filters_config instance-attribute

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 = ...

The tier that your guardrail uses for content filters.