> ## 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 method with self-reflection support.

# 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 [**Agent**](../classes/Agent) class in the [**agent**](../modules/agent) module.

Async version of chat method with self-reflection support.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def achat(prompt: str, temperature: Any, tools: Any, output_json: Any, output_pydantic: Any, reasoning_steps: Any, task_name: Any, task_description: Any, task_id: Any, attachments: Any) -> Any
```

## Parameters

<ParamField query="prompt" type="str" required={true}>
  Text query that WILL be stored in chat\_history
</ParamField>

<ParamField query="temperature" type="Any" required={false} default="1.0">
  No description available.
</ParamField>

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

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

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

<ParamField query="reasoning_steps" type="Any" required={false} default="False">
  No description available.
</ParamField>

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

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

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

<ParamField query="attachments" type="Any" required={false}>
  Optional list of image/file paths that are ephemeral (used for THIS turn only, NEVER stored in history).
</ParamField>

### Returns

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

## Uses

* `get_context_emitter`
* `_trace_emitter.agent_start`
* `_trace_emitter.agent_end`

## 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/agent/agent.py#L5448">
  `praisonaiagents/agent/agent.py` at line 5448
</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>
