AgentVerse aims to facilitate the deployment of multiple LLM-based agents in various applications, primarily providing two frameworks: task-solving and simulation.
Uses:
- Task-solving framework: combines multiple agents into an automatic multi-agent system (AgentVerse-Tasksolving, Multi-agent as system) to collaboratively complete corresponding tasks. Applications include software development systems, consulting systems, etc.
- Simulation framework: allows users to set up custom environments to observe the behavior among multiple agents or interact with them. Applications include games, research on social behavior of LLM-based agents, etc. Note: The code is being refactored; if you need a stable version that only supports the simulation framework, you can use the release-0.1 branch.
Main capabilities:
- Supports multi-agent collaboration to complete tasks.
- Supports custom simulation environments to observe agent behavior.
- Supports local models (LLaMA, Vicuna, etc.) and vLLM.
- Provides CLI and GUI examples.
- Provides multiple demos, including NLP Classroom, Prisoner Dilemma, Software Design, Database Administrator, and a simple H5 Pokemon game.
- Supports tool use (such as web browser, Jupyter notebook, bing search, etc.), requires first building the ToolsServer provided by XAgent.
Usage:
- Installation: Ensure Python >= 3.9. Can be installed via pip. If using local models such as LLaMA, additional dependencies need to be installed.
- Environment variables: Need to export OpenAI API key; if using Azure OpenAI service, need to export Azure OpenAI key and OpenAI API base.
- Simulation framework: Provides CLI and GUI examples. Taking the classroom scenario as an example, there are nine agents, one playing the professor and eight playing students. The local website demo can be accessed after starting a local server. http://127.0.0.1:7860/ View. If running simulation cases with tools (e.g., simulation/nlp_classroom_3players_withtool), BMTools must be installed (optional; if not installed, cases without tools can still run normally).
- Task-solving framework: provides CLI examples. You can run the experiments, benchmark datasets, or specific problems from the paper. Using tool cases requires first building and starting XAgent's ToolServer. For more tasks, see agentverse/tasks/tasksolving/tool_using/.
- Local model support: if using vLLM, you need to install and set up the vLLM server, create environment variables for the connection, and modify the model name in the task configuration to match the model name in the vLLM server. If using FSChat, you need to additionally install dependencies and modify MODEL_PATH and MODEL_NAME to start the local server. Currently supported are llama-2-7b-chat-hf, llama-2-13b-chat-hf, llama-2-70b-chat-hf, vicuna-7b-v1.5, vicuna-13b-v1.5. To integrate other FastChat-compatible models, you need to add the new MODEL_NAME to LOCAL_LLMS in agentverse/llms/init.py and add the mapping in LOCAL_LLMS_MAPPING. In the configuration file, set llm_type to local and model to MODEL_NAME.
Applicable scenarios:
- Multi-agent collaborative task solving, such as software development and consulting.
- Multi-agent simulation, such as games and social behavior research.
- Academic research; the paper has been accepted by ICLR 2024.
Limitations:
- The simulation framework code is being refactored; for a stable version, use the release-0.1 branch.
- Using tools requires additionally building ToolsServer.
- Local model support requires additional dependency installation and configuration.
- Some features may still be under development; for details, please refer to the official documentation and repository.