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

# Get Approval Callback • AI Agent SDK

> get_approval_callback: Get the current approval callback function.

# get\_approval\_callback

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

> This function is defined in the [**approval**](../modules/approval) module.

Get the current approval callback function.

Returns the custom callback if set, otherwise None.
This should be used instead of directly accessing approval\_callback
to ensure the latest callback is always used.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_approval_callback() -> Optional[Callable]
```

### Returns

<ResponseField name="Returns" type="Optional[Callable]">
  The result of the operation.
</ResponseField>

## Used By

* [`request_approval`](../functions/request_approval)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/approval.py#L244">
  `praisonaiagents/approval.py` at line 244
</Card>
