The Tool Creator Assistant
is an automation for the creation of tools for other assistants. This repository houses the core tool_creator
script that serves as a meta-assistant, capable of crafting additional tools to enhance the capabilities of your chat-based systems. Additionally, we include a tool_user
script that seamlessly integrates these tools into a chat assistant, allowing for an interactive experience where the assistant utilizes the newly created tools in real-time.
- Tool Creation: Generate new tools tailored for assistant-based applications using the OpenAI API.
- Tool Integration: A ready-to-use
tool_user
script that incorporates tools into a chat interface. - Demo Video: Visual demonstration of the tool creation and usage process.
A video demonstration is available to showcase the capabilities and usage of the Tool Creator Assistant
. You can view the video here.
- OpenAI API key
- Clone the repository:
git clone https://github.com/joseph-crowley/tool-creator.git
- Navigate to the cloned directory:
cd tool-creator
- Install the required packages:
pip install -r requirements.txt
- Create a
.env
file in the root directory of the repository and add your OpenAI API key:cp .env.example .env # Add your OpenAI API key to the .env file
- Source the
.env
file:source .env
- Run the
tool_creator
script:python tool_creator.py
- chat with the bot about what you want the tool to do, and it will create the tool for you.
- The tool will be saved in the
tools
directory with both the.json
and.py
files - The assistant will be saved in the
assistants
directory astool_creator.json
.
- Execute the
tool_user
script to start the assistant:python tool_user.py
- The assistant will use all the tools in the
tools
directory. - Interact with the assistant in the chat to use the integrated tools.
- The assistant will be saved in the
assistants
directory astool_user.json
.
We welcome contributions from the community. If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are welcome.