Skip to main content
All advisor tools have async variants. When the agent runs async and calls ask_all_advisors, the advisors are queried in parallel with asyncio.gather, so the slowest advisor determines the total wait, not the sum of all of them.
async.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your API keys

4

Run the example

Save the code above as async.py, then run:
Full source: cookbook/91_tools/advisor_tools/05_async.py