SafetyProviderConfig Class
Gets or sets the source to which safety providers applies.
Constructor
SafetyProviderConfig(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
safety_provider_name
|
Name of RAI Safety Provider. |
|
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