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

# Chat History • AI Agent SDK

> chat_history: Set chat history (updates the underlying async-safe state with lock).

# chat\_history

Method

> This is a method of the [**Agent**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/Agent.md) class in the [**agent**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/agent.md) module.

Set chat history (updates the underlying async-safe state with lock).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def chat_history(value: Any) -> Any
```

## Parameters

**value** `Any` *required*

No description available.

### Returns

**Returns** `Any`

The result of the operation.

## Uses

* `lock`

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/agent.py#L3545)
>
> `praisonaiagents/agent/agent.py` at line 3545

***

## Related Documentation

> [card] [Chat Feature](https://praison.ai/docs/docs/features/chat)

> [card] [Conversation Stores](https://praison.ai/docs/docs/databases/overview)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.