Skip to main content
This example demonstrates how to create a team with custom tools, using custom tools alongside agent tools to answer questions from a knowledge base and fall back to web search when needed.

Code

team_with_custom_tools.py

Usage

1

Create a Python file

Create team_with_custom_tools.py with the code above.
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Run Team