Policy Action • Rust AI Agent SDK
PolicyAction: Action to take when a policy is triggered.
PolicyAction
Defined in the policy module.
Rust AI Agent SDK
Action to take when a policy is triggered.
Fields
| Name | Type | Description |
|---|---|---|
Allow | variant | – |
the | variant | – |
action | variant | – |
Allow | variant | Allow the action |
Block | variant | – |
the | variant | – |
action | variant | – |
Block | variant | Block the action |
Warn | variant | – |
but | variant | – |
allow | variant | – |
Warn | variant | Warn but allow |
Require | variant | – |
approval | variant | – |
RequireApproval | variant | Require approval |
Redact | variant | – |
sensitive | variant | – |
content | variant | – |
Redact | variant | Redact sensitive content |
Log | variant | – |
and | variant | – |
allow | variant | – |
Log | variant | Log and allow |
Source
View on GitHubpraisonai/src/policy/mod.rs at line 0