Skip to main content
This example demonstrates how to monitor and handle different types of events during team execution, including tool calls, run states, and content generation events.

Code

cookbook/examples/teams/streaming/02_events.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Install required libraries

3

Set environment variables

4

Run the agent