Skip to main content
This example demonstrates a team where the team leader routes requests to the appropriate member, and the members respond directly to the user. In addition, the team has access to the conversation history through add_history_to_context=True.
respond_directly_with_history.py

Usage

1

Create a Python file

Create respond_directly_with_history.py with the code above.
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Run Team