Skip to content

GuardrailContentPolicy

Source code in docs_src/capo_bedrock/types/guardrail_content_policy.py
class GuardrailContentPolicy(TypedDict, closed=True):
    filters: NotRequired[
        "capo_bedrock.types.guardrail_content_filters.GuardrailContentFilters"
    ]
    """<p>Contains the type of the content filter and how strongly it should apply to prompts and model responses.</p>"""
    tier: NotRequired[
        "capo_bedrock.types.guardrail_content_filters_tier.GuardrailContentFiltersTier"
    ]
    """<p>The tier that your guardrail uses for content filters.</p>"""

filters instance-attribute

filters: NotRequired[GuardrailContentFilters]

Contains the type of the content filter and how strongly it should apply to prompts and model responses.

tier instance-attribute

tier: NotRequired[GuardrailContentFiltersTier]

The tier that your guardrail uses for content filters.