Skip to main content
This example is available on GitHub: examples/01_standalone_sdk/11_async.py
Run agents asynchronously for non-blocking execution and concurrent operations:
examples/01_standalone_sdk/11_async.py
Running the Example

Async Streaming

Use astream() to process events as they occur without blocking:

Concurrent Agents

Run multiple agent tasks in parallel using asyncio.gather():

Next Steps