Skip to main content
Use case: Customer reports a database issue. Triage escalates to Escalation Team, which further escalates to Expert Team for deep investigation. Each team maintains its conversation history across the multi-turn investigation.
nested_team_deep_history.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as nested_team_deep_history.py, then run:
Full source: cookbook/03_teams/07_session/nested_team_deep_history.py