Skip to main content

arun

AsyncMethod
This is a method of the Agent class in the agent module.
Async version of run() - silent, non-streaming, returns structured result. Production-friendly async execution. Does not stream or display output.

Signature

async def arun(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