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

# astart • AI Agent SDK

> astart: Async version of start() - interactive, streaming-aware.

# astart

<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 start() - interactive, streaming-aware.

Beginner-friendly async execution. Streams by default when in TTY.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def astart(prompt: str) -> Any
```

## Parameters

<ParamField query="prompt" type="str" required={true}>
  The input prompt to process \*\*kwargs: Additional arguments passed to achat()
</ParamField>

### Returns

<ResponseField name="Returns" type="Any">
  The agent's response as a string
</ResponseField>

## Uses

* `isatty`
* `achat`

## Used By

* [`AutoAgents.astart`](../functions/AutoAgents-astart)

## Source

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