Skip to main content
This example demonstrates a team where each member has access to its own history through add_history_to_context=True set on individual agents. Unlike team-level history, each member only has access to its own conversation history, not the history of other members or the team. Use member-level history when:
  • Each member handles distinct, independent tasks
  • You don’t need cross-member context sharing
  • Members should maintain isolated conversation threads
  • You want to minimize context size for each member
history_of_members.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