GuardrailTopic
¶
Source code in docs_src/capo_bedrock_runtime/types/guardrail_topic.py
action
instance-attribute
¶
action: GuardrailTopicPolicyAction
The action the guardrail should take when it intervenes on a topic.
detected
instance-attribute
¶
detected: NotRequired[bool]
Indicates whether topic content that breaches the guardrail configuration is detected.
type
instance-attribute
¶
type: GuardrailTopicType
The type behavior that the guardrail should perform when the model detects the topic.