arun • AI Agent SDK
arun: Async version of run() – silent, non-streaming, returns structured result.
arun
Async
Method
</div>
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) -> AnyParameters
ParamField
strThe input prompt to process **kwargs: Additional arguments passed to achat()
Returns
ResponseField
AnyThe agent’s response as a string
Uses
achat
Source
View on GitHubpraisonaiagents/agent/agent.py at line 5885