Share via


RaiPolicyProperties Class

Azure OpenAI Content Filters properties.

Variables are only populated by the server, and will be ignored when sending a request.

Constructor

RaiPolicyProperties(*, mode: str | _models.RaiPolicyMode | None = None, base_policy_name: str | None = None, content_filters: list['_models.RaiPolicyContentFilter'] | None = None, custom_blocklists: list['_models.CustomBlocklistConfig'] | None = None, custom_topics: list['_models.CustomTopicConfig'] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
mode

Rai policy mode. The enum value mapping is as below: Default = 0, Deferred=1, Blocking=2, Asynchronous_filter =3. Please use 'Asynchronous_filter' after 2025-06-01. It is the same as 'Deferred' in previous version. Known values are: "Default", "Deferred", "Blocking", and "Asynchronous_filter".

Default value: None
base_policy_name
str

Name of Rai policy.

Default value: None
content_filters

The list of Content Filters.

Default value: None
custom_blocklists

The list of custom Blocklist.

Default value: None
custom_topics

The list of custom rai topics.

Default value: None

Variables

Name Description
type

Content Filters policy type. Known values are: "UserManaged" and "SystemManaged".

mode

Rai policy mode. The enum value mapping is as below: Default = 0, Deferred=1, Blocking=2, Asynchronous_filter =3. Please use 'Asynchronous_filter' after 2025-06-01. It is the same as 'Deferred' in previous version. Known values are: "Default", "Deferred", "Blocking", and "Asynchronous_filter".

base_policy_name
str

Name of Rai policy.

content_filters

The list of Content Filters.

custom_blocklists

The list of custom Blocklist.

custom_topics

The list of custom rai topics.