GPTeam is an open-source multi-agent simulation project aimed at exploring the potential of GPT models in enhancing multi-agent productivity and effective communication. The project uses GPT-4 to create multiple Agents, which collaborate with each other through communication tools to complete preset goals.
Main Uses
GPTeam's core use is to simulate the collaborative behavior of multiple AI agents in a virtual world. Each Agent is equipped with independent memory and can move and perform operations in different locations according to its own tasks and the locations of other Agents. Agents can converse, collaborate, and advance shared goals in parallel. The project's main goal is to study the productivity and communication efficiency of multi-agent systems.
Main Capabilities
- Multi-agent collaboration: Create multiple Agents with memory that interact through communication tools.
- Virtual world simulation: Agents move through the world and perform tasks in different locations.
- Memory and reflection: Agents' memory and reflection mechanisms are implemented inspired by research papers.
- Configurability: Available Agents and locations can be adjusted by modifying config.json.
- Multiple model support: Supports the OpenAI API (GPT-4, gpt3.5-turbo) and Anthropic Claude (claude-v1, claude-v1-instant).
- Integration extensions: Supports Discord integration and a Window extension.
How to Use
- Clone the project repository locally.
- Enter the repository directory: cd gpteam.
- Run python setup.py to check the environment setup and configure as needed.
- Update the environment variables in .env and fill in the API key. An OpenAI API key is required; API keys for optional services can enable other tools.
- Start the world: poetry run world.
- To run at low cost, use poetry run world --turbo, which will use gpt3.5-turbo for all LLM calls, with lower cost but possibly worse results.
- After running, you can observe interactions and collaboration between Agents.
Applicable Scenarios
GPTeam is suitable for scenarios involving research on multi-agent collaboration and exploration of the productivity and communication capabilities of large language models in simulated environments. Developers and researchers can use it to experiment with the social behavior, task allocation, and collaborative work of AI agents..
Limitations
- Requires an OpenAI API key or another supported API key, and running it may incur costs.
- Although using --turbo mode is cheaper, the quality of results may decrease.
- Some models (such as when used through the Window extension) may respond slowly because the prompts are very long.
- Detailed benchmark data on specific performance and results is not yet provided.
- The project uses the MIT license.
Changing the World
To change the world, you need to modify the available Agents or locations in config.json, then reset the database: poetry run db-reset, and run it again: poetry run world.
Other Integrations
- Discord integration: You need to read the dedicated Discord setup documentation.
- Anthropic Claude: Make sure ANTHROPIC_API_KEY is in the environment, then use poetry run world --claude, which will use claude-v1 for some calls and claude-v1-instant for others.
- Window extension: Make sure the Window extension is installed, then use poetry run world --window.
Contributing
The project welcomes contributions. Contribution steps: fork the repository, create a new branch, implement the changes, and submit a pull request. The project will review and provide feedback.