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

# Register Approval Callback • Rust AI Agent SDK

> register_approval_callback: Register the global approval callback

# register\_approval\_callback

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**display\_types**](../modules/display_types) module.

Register the global approval callback

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def register_approval_callback(callback: Arc<dyn ApprovalCallback>) -> ()
```

## Parameters

<ParamField query="callback" type="Arc<dyn ApprovalCallback>" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="()">
  The result of the operation.
</ResponseField>

## Uses

* `write`

## 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#L264">
  `praisonai/src/parity/display_types.rs` at line 264
</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>
