Skip to content

GuardrailUsage

Source code in docs_src/capo_bedrock_runtime/types/guardrail_usage.py
class GuardrailUsage(TypedDict, closed=True):
    topic_policy_units: "capo_bedrock_runtime.types.guardrail_topic_policy_units_processed.GuardrailTopicPolicyUnitsProcessed"
    """<p>The topic policy units processed by the guardrail.</p>"""
    content_policy_units: "capo_bedrock_runtime.types.guardrail_content_policy_units_processed.GuardrailContentPolicyUnitsProcessed"
    """<p>The content policy units processed by the guardrail.</p>"""
    word_policy_units: "capo_bedrock_runtime.types.guardrail_word_policy_units_processed.GuardrailWordPolicyUnitsProcessed"
    """<p>The word policy units processed by the guardrail.</p>"""
    sensitive_information_policy_units: "capo_bedrock_runtime.types.guardrail_sensitive_information_policy_units_processed.GuardrailSensitiveInformationPolicyUnitsProcessed"
    """<p>The sensitive information policy units processed by the guardrail.</p>"""
    sensitive_information_policy_free_units: "capo_bedrock_runtime.types.guardrail_sensitive_information_policy_free_units_processed.GuardrailSensitiveInformationPolicyFreeUnitsProcessed"
    """<p>The sensitive information policy free units processed by the guardrail.</p>"""
    contextual_grounding_policy_units: "capo_bedrock_runtime.types.guardrail_contextual_grounding_policy_units_processed.GuardrailContextualGroundingPolicyUnitsProcessed"
    """<p>The contextual grounding policy units processed by the guardrail.</p>"""
    content_policy_image_units: NotRequired[
        "capo_bedrock_runtime.types.guardrail_content_policy_image_units_processed.GuardrailContentPolicyImageUnitsProcessed"
    ]
    """<p>The content policy image units processed by the guardrail.</p>"""
    automated_reasoning_policy_units: NotRequired[
        "capo_bedrock_runtime.types.guardrail_automated_reasoning_policy_units_processed.GuardrailAutomatedReasoningPolicyUnitsProcessed"
    ]
    """<p>The number of text units processed by the automated reasoning policy.</p>"""
    automated_reasoning_policies: NotRequired[
        "capo_bedrock_runtime.types.guardrail_automated_reasoning_policies_processed.GuardrailAutomatedReasoningPoliciesProcessed"
    ]
    """<p>The number of automated reasoning policies that were processed during the guardrail evaluation.</p>"""

automated_reasoning_policies instance-attribute

automated_reasoning_policies: NotRequired[GuardrailAutomatedReasoningPoliciesProcessed]

The number of automated reasoning policies that were processed during the guardrail evaluation.

automated_reasoning_policy_units instance-attribute

automated_reasoning_policy_units: NotRequired[
    GuardrailAutomatedReasoningPolicyUnitsProcessed
]

The number of text units processed by the automated reasoning policy.

content_policy_image_units instance-attribute

content_policy_image_units: NotRequired[GuardrailContentPolicyImageUnitsProcessed]

The content policy image units processed by the guardrail.

content_policy_units instance-attribute

The content policy units processed by the guardrail.

contextual_grounding_policy_units instance-attribute

contextual_grounding_policy_units: GuardrailContextualGroundingPolicyUnitsProcessed

The contextual grounding policy units processed by the guardrail.

sensitive_information_policy_free_units instance-attribute

sensitive_information_policy_free_units: (
    GuardrailSensitiveInformationPolicyFreeUnitsProcessed
)

The sensitive information policy free units processed by the guardrail.

sensitive_information_policy_units instance-attribute

sensitive_information_policy_units: GuardrailSensitiveInformationPolicyUnitsProcessed

The sensitive information policy units processed by the guardrail.

topic_policy_units instance-attribute

The topic policy units processed by the guardrail.

word_policy_units instance-attribute

The word policy units processed by the guardrail.