Skip to main content
Give each team member access to its own history by setting add_history_to_context=True on the 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 Python file

Create history_of_members.py with the code above.
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Run Team