> ## 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 Settings Update • AI Agents Framework

> on_settings_update: Handle updates to the ChatSettings form.

# on\_settings\_update

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

Handle updates to the ChatSettings form.

## Signature

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

## Parameters

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

### Returns

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

## Uses

* `f.write`

## Source

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