RaiPolicyContentFilter Class

Azure OpenAI Content Filter.

Constructor

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

Variables

Name Description
name
str

Name of ContentFilter.

enabled

If the ContentFilter is enabled.

severity_threshold

Level at which content is filtered. Known values are: "Low", "Medium", and "High".

blocking

If blocking would occur.

source

Content source to apply the Content Filters. Known values are: "Prompt", "Completion", "PreToolCall", "PostToolCall", "PreRun", and "PostRun".

action

The action types to apply to the content filters. Known values are: "None", "BLOCKING", "ANNOTATING", "HITL", and "RETRY".

Attributes

action

"None", "BLOCKING", "ANNOTATING", "HITL", and "RETRY".

action: str | _models.RaiActionType | None

blocking

If blocking would occur.

blocking: bool | None

enabled

If the ContentFilter is enabled.

enabled: bool | None

name

Name of ContentFilter.

name: str | None

severity_threshold

"Low", "Medium", and "High".

severity_threshold: str | _models.ContentLevel | None

source

"Prompt", "Completion", "PreToolCall", "PostToolCall", "PreRun", and "PostRun".

source: str | _models.RaiPolicyContentSource | None