> ## 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.

# Guardrail Action • Rust AI Agent SDK

> GuardrailAction: Action to take when guardrail fails.

# GuardrailAction

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

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

Action to take when guardrail fails.

## Fields

| Name        | Type      | Description                     |
| ----------- | --------- | ------------------------------- |
| `Stop`      | `variant` | -                               |
| `execution` | `variant` | -                               |
| `and`       | `variant` | -                               |
| `return`    | `variant` | -                               |
| `error`     | `variant` | -                               |
| `default`   | `variant` | Stop execution and return error |
| `Stop`      | `variant` | Stop execution and return error |
| `Retry`     | `variant` | -                               |
| `the`       | `variant` | -                               |
| `task`      | `variant` | -                               |
| `Retry`     | `variant` | Retry the task                  |
| `Continue`  | `variant` | -                               |
| `with`      | `variant` | -                               |
| `warning`   | `variant` | -                               |
| `Warn`      | `variant` | Continue with warning           |
| `Skip`      | `variant` | -                               |
| `and`       | `variant` | -                               |
| `continue`  | `variant` | -                               |
| `Skip`      | `variant` | Skip and continue               |
| `Use`       | `variant` | -                               |
| `fallback`  | `variant` | -                               |
| `response`  | `variant` | -                               |
| `Fallback`  | `variant` | Use fallback response           |

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Guardrails" icon="shield" href="/docs/rust/guardrails" />

  <Card title="Rust Approval" icon="check" href="/docs/rust/approval" />

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