Skip to content

GuardrailTopicPolicy

Structure Class

GuardrailTopicPolicy dataclass

Bases: _SerdeShape

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

The tier that your guardrail uses for denied topic filters.

topics instance-attribute

A list of policies related to topics that the guardrail should deny.