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

# Set Approval Callback • AI Agent SDK

> set_approval_callback: Set a custom approval callback function.

# set\_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.

Set a custom approval callback function.

The callback should accept (function\_name, arguments, risk\_level) and return ApprovalDecision.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def set_approval_callback(callback_fn: Callable) -> Any
```

## Parameters

<ParamField query="callback_fn" type="Callable" required={true}>
  No description available.
</ParamField>

### Returns

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

## Source

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