CustomBlocklistConfig Class

Gets or sets the source to which filter applies.

Constructor

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

Variables

Name Description
blocklist_name
str

Name of ContentFilter.

blocking

If blocking would occur.

source

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

Attributes

source

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

source: str | _models.RaiPolicyContentSource | None