astart • AI Agent SDK

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

astart

Async

Method

</div>

This is a method of the Agent class in the agent module.

Async version of start() – interactive, streaming-aware.

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

Signature

python
async def astart(prompt: str) -> Any

Parameters

ParamField str

The input prompt to process **kwargs: Additional arguments passed to achat()

Returns

ResponseField Any

The agent’s response as a string

Uses

  • isatty
  • achat

Used By

Source

View on GitHub

praisonaiagents/agent/agent.py at line 5901