GuardrailTopicPolicy¶
Structure Class¶
GuardrailTopicPolicy
dataclass
¶
Contains details about topics that the guardrail should identify and deny.
This data type is used in the following API operations:
Attributes¶
tier
class-attribute
instance-attribute
¶
tier: GuardrailTopicsTier | None = None
The tier that your guardrail uses for denied topic filters.
topics
instance-attribute
¶
topics: list[GuardrailTopic]
A list of policies related to topics that the guardrail should deny.