> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Policy Action • Rust AI Agent SDK

> PolicyAction: Action to take when a policy is triggered.

# PolicyAction

> Defined in the [**policy**](../modules/policy) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

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

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/policy/mod.rs">
  `praisonai/src/policy/mod.rs` at line 0
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Policy" icon="file-shield" href="/docs/rust/policy" />

  <Card title="Rust Security" icon="lock" href="/docs/rust/security" />
</CardGroup>
