RaiPolicyProperties Class

Azure OpenAI Content Filters properties.

Constructor

RaiPolicyProperties(*args: Any, **kwargs: Any)

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.

safety_providers

The list of Safety Providers.

egress_policy

Egress (outbound network) policy controlling which external endpoints sandboxed agents can reach. Includes rules with Allow/Deny/Transform/Rewrite actions.

Attributes

base_policy_name

Name of Rai policy.

base_policy_name: str | None

content_filters

The list of Content Filters.

content_filters: list['_models.RaiPolicyContentFilter'] | None

custom_blocklists

The list of custom Blocklist.

custom_blocklists: list['_models.CustomBlocklistConfig'] | None

egress_policy

Egress (outbound network) policy controlling which external endpoints sandboxed agents can reach. Includes rules with Allow/Deny/Transform/Rewrite actions.

egress_policy: _models.RaiEgressPolicyConfig | None

mode

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

mode: str | _models.RaiPolicyMode | None

safety_providers

The list of Safety Providers.

safety_providers: list['_models.SafetyProviderConfig'] | None

type

"UserManaged" and "SystemManaged".

type: str | _models.RaiPolicyType | None