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

# On Modify • AI Agents Framework

> on_modify: API reference for on_modify

# on\_modify

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

> This function is defined in the [**chainlit\_ui**](../modules/chainlit_ui) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def on_modify(action: Any) -> Any
```

## Parameters

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

### Returns

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

## Uses

* `send`
* `cl.Message`
* `cl.action_callback`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/chainlit_ui.py#L36">
  `praisonai/chainlit_ui.py` at line 36
</Card>
