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

# Approval Callback • Rust AI Agent SDK

> ApprovalCallback: Approval callback trait

# ApprovalCallback

> Defined in the [**Display Types**](../modules/display_types) module.

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

Approval callback trait

## Methods

### `request_approval`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn request_approval(
        &self,
        function_name: &str,
        arguments: &serde_json::Value,
        risk_level: RiskLevel,
    ) -> ApprovalDecision
```

Request approval for an action

**Parameters:**

| Name            | Type                 |
| --------------- | -------------------- |
| `function_name` | `&str`               |
| `arguments`     | `&serde_json::Value` |
| `risk_level`    | `RiskLevel`          |

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Approval" icon="check" href="/docs/rust/approval" />

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