arun • AI Agent SDK

arun: Async version of run() – silent, non-streaming, returns structured result.

arun

Async

Method

</div>

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

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

  • achat

Source

View on GitHub

praisonaiagents/agent/agent.py at line 5885