Skip to main content
Tests streaming with MULTIPLE context providers. Each provider has its own sub-agent, and when the parent agent calls them, all sub-agent events stream through in real-time.
24_multi_context_streaming.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 24_multi_context_streaming.py, then run:
Full source: cookbook/12_context/24_multi_context_streaming.py