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

# Async Guardrail • Rust AI Agent SDK

> AsyncGuardrail: Trait for asynchronous guardrail validation.

# AsyncGuardrail

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

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

Trait for asynchronous guardrail validation.

## Methods

### `validate`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async fn validate(&self, output: &str) -> GuardrailResult
```

Validate the output asynchronously

**Parameters:**

| Name     | Type   |
| -------- | ------ |
| `output` | `&str` |

### `name`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn name(&self) -> &str
```

Get guardrail name

## 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" />

  <Card title="Rust Execution" icon="play" href="/docs/rust/execution" />

  <Card title="Rust Parallel Execution" icon="arrows-split" href="/docs/rust/parallel-execution" />
</CardGroup>
