GPTeam: Collaborative AI Agents
GPTeam is an innovative project that leverages the power of GPT-4 to create multiple collaborative AI agents. These agents work together to achieve specific goals, demonstrating the potential for enhanced productivity and effective communication using GPT models.
About GPTeam
At the heart of GPTeam is the idea of multiple agents that interact and collaborate to reach predefined objectives. This project explores how GPT models can be harnessed to improve productivity in environments where collaboration is key. You can watch a demo of GPTeam in action on YouTube and read more about its architecture on LangChain's Blog.
Getting Started
To dive into GPTeam, follow these simple steps:
- Clone the GPTeam repository to your computer.
- Navigate into the repository folder with
cd gpteam
. - Run
python setup.py
to configure your environment. - Update the
.env
file with your API keys, including an OpenAI API key, which you can get here. Including API keys for optional services allows more tools to be used. - Launch the GPTeam world with
poetry run world
.
For a more cost-effective experience, you can opt to use poetry run world --turbo
, which employs gpt3.5-turbo for reduced costs but potentially less refined results. Once running, you can observe as the agents dynamically interact and collaborate to accomplish their tasks.
How it Works
GPTeam operates by using separate agents, each with its own memory, that can interact through communication. These agents are inspired by a research paper on agent memory and reflection. They maneuver within a virtual world, executing tasks based on their objectives and their relative positions to each other. Through dialogue, they work in unison towards shared goals.
Viewing Agents
To keep track of agent activities while the world is in operation, visit the agents/
folder. Each agent has a corresponding text file summarizing its current actions, providing insight into their individual and collective operations.
Changing the World
Altering the GPTeam environment is straightforward:
- Modify the
config.json
file to alter the agents or locations available. - Reset the database with
poetry run db-reset
. - Relaunch the world using
poetry run world
.
Setting Up Discord Integration
For integrating with Discord, refer to the Discord setup documentation.
Using with Anthropic Claude
To work with Anthropic Claude, ensure you have an ANTHROPIC_API_KEY
in your environment. You can then use poetry run world --claude
, which will incorporate claude-v1
for some processes and claude-v1-instant
for others.
Using with Window
If you have the Window extension installed, execute poetry run world --window
to use GPTeam with it. Note that some model responses may be slow, as the prompts are extensive.
Contributing
GPTeam welcomes contributions! If you’d like to contribute, please follow these steps:
- Fork the project repository to your GitHub account.
- Create a new branch for your changes.
- Make your modifications to the project.
- Submit a pull request to the main repository.
Your pull request will be reviewed, and feedback will be provided as needed.
License
GPTeam is available under the MIT license.