Skip to main content
The v2.7.4 source uses the retired Azure model name gpt-5-chat for the leader and both members. Deploy a supported Azure chat model and update the IDs before running. See Azure OpenAI model retirements.
loop_team_and_member_metrics.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Select a supported Azure deployment

Deploy a current Azure chat model, then replace all three id="gpt-5-chat" values with that Azure deployment name. Microsoft lists gpt-chat-latest as the replacement for gpt-5-chat.
5

Run the example

Save the code above as loop_team_and_member_metrics.py, then run:
Full source: cookbook/03_teams/22_metrics/06_loop_team_and_member_metrics.py