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

# achat • AI Agent SDK

> achat: Async version of chat.

# achat

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

> This is a method of the [**AutoRagAgent**](../classes/AutoRagAgent) class in the [**auto\_rag\_agent**](../modules/auto_rag_agent) module.

Async version of chat.

Currently wraps sync version. Can be extended for true async.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def achat(message: str) -> str
```

## Parameters

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

### Returns

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

## Uses

* `asyncio.get_event_loop`
* `loop.run_in_executor`
* `chat`

## Used By

* [`Agent.run_autonomous_async`](../functions/Agent-run_autonomous_async)
* [`Agent.arun`](../functions/Agent-arun)
* [`Agent.astart`](../functions/Agent-astart)
* [`Agent.aexecute`](../functions/Agent-aexecute)
* [`Agent.launch`](../functions/Agent-launch)

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Chat Feature" icon="comments" href="/docs/features/chat" />

  <Card title="Conversation Stores" icon="database" href="/docs/databases/overview" />
</CardGroup>
