Skip to main content

astart

AsyncMethod
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

async def astart(prompt: str) -> Any

Parameters

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

Returns

Returns
Any
The agent’s response as a string