SuperAPI AI Directory

GPTeam

GPTeam is an open-source multi-agent simulation project that uses large language models such as GPT-4 to create multiple Agents and enables them to collaborate with each other through communication tools to achieve preset goals. The project was developed by 101dotxyz, is based on the LangChain architecture, and uses the MIT license. Its core goal is to explore the potential of GPT models in improving multi-agent productivity and effective communication. Each Agent in GPTeam has independent memory, can move in a virtual world, perform tasks in different locations, and talk and collaborate with other Agents to advance shared goals in parallel. Users can run the world through the command line and observe interactions between Agents. The project supports the OpenAI API and Anthropic Claude, and also provides Discord integration and a Window extension. Installation requires cloning the repository, running setup.py to configure the environment, filling in the API key in .env, and then starting it with poetry run world. Configuration can be adjusted by modifying config.json to change Agents and locations, and then resetting the database with db-reset. The project also welcomes community code contributions.

Open website

About this tool

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

  1. Clone the project repository locally.
  2. Enter the repository directory: cd gpteam.
  3. Run python setup.py to check the environment setup and configure as needed.
  4. 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.
  5. Start the world: poetry run world.
  6. 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.
  7. 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.