Home

Awesome

AutoAgents: A Framework for Automatic Agent Generation

<p align="center"> <a href="https://arxiv.org/abs/2309.17288"><img src="docs/resources/logo-autoagents.jpg" alt="autoagents logo: A Framework for Automatic Agent Generation." width="150px"></a> </p> <p align="center"> <b>Generate different roles for GPTs to form a collaborative entity for complex tasks.</b> </p> <p align="center"> <a href="https://arxiv.org/abs/2309.17288"><img src="https://img.shields.io/badge/cs.CV-2309.17288-b31b1b?logo=arxiv&logoColor=red" alt="Paper"></a> <a href="docs/README_CN.md"><img src="https://img.shields.io/badge/文档-中文版-blue.svg" alt="CN doc"></a> <a href="README.md"><img src="https://img.shields.io/badge/document-English-blue.svg" alt="EN doc"></a> <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-blue.svg" alt="JA doc"></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a> </p>

AutoAgents is an experimental open-source application for an Automatic Agents Generation Experiment based on LLM. This program, driven by LLM, autonomously generates multi-agents to achieve whatever goal you set.

<p align="center"> <img src=./docs/resources/framework2.jpg width="800"> </p>

<a name="updates"/> :boom: Updates

<p align="center"> <img width="616" alt="The execution process of AutoAgents." src="docs/resources/process.jpg"> </p>

🚀 Features

Demo

Online demo:

Video demo:

Installation and Usage

Installation

git clone https://github.com/LinkSoul-AI/AutoAgents
cd AutoAgents
python setup.py install

Configuration

# Copy the configuration file and make the necessary modifications.
cp config/config.yaml config/key.yaml
Variable Nameconfig/key.yamlenv
OPENAI_API_KEY # Replace with your own keyOPENAI_API_KEY: "sk-..."export OPENAI_API_KEY="sk-..."
OPENAI_API_BASE # OptionalOPENAI_API_BASE: "https://<YOUR_SITE>/v1"export OPENAI_API_BASE="https://<YOUR_SITE>/v1"

Usage

python main.py --mode commandline --llm_api_key YOUR_OPENAI_API_KEY --serpapi_key YOUR_SERPAPI_KEY --idea "Is LK-99 really a room temperature superconducting material?"
python main.py --mode service --host "127.0.0.1" --port 9000

Docker

IMAGE="linksoul.ai/autoagents"
VERSION=1.0

docker build -f docker/Dockerfile -t "${IMAGE}:${VERSION}" .
docker run -it --rm -p 7860:7860 "${IMAGE}:${VERSION}"

Contributing

AutoAgents is dedicated to creating a cutting-edge automated multi-agent environment for large language models. We are actively seeking enthusiastic collaborators to embark with us on this thrilling and innovative journey.

This project exists thanks to all the people who contribute:

<a href="https://github.com/iCGY96"><img src="https://avatars.githubusercontent.com/u/28098248?v=4" alt="Contributor" style="width:5%; border-radius: 50%;"/></a> <a href="https://github.com/shiyemin"><img src="https://avatars.githubusercontent.com/u/1501158?v=4" alt="Contributor" style="width:5%; border-radius: 50%;"/></a> <a href="https://github.com/s1w3"><img src="https://avatars.githubusercontent.com/u/140045858?v=4" alt="Contributor" style="width:5%; border-radius: 50%;"/></a> <a href="https://github.com/TabbbSY"><img src="https://avatars.githubusercontent.com/u/140036442?v=4" alt="Contributor" style="width:5%; border-radius: 50%;"/></a> <a href="https://github.com/eltociear"><img src="https://avatars.githubusercontent.com/u/22633385?v=4" alt="Contributor" style="width:5%; border-radius: 50%;"/></a> <a href="https://github.com/ishaan-jaff"><img src="https://avatars.githubusercontent.com/u/29436595?v=4" alt="Contributor" style="width:5%; border-radius: 50%;"/></a> <a href="https://github.com/Jaykef"><img src="https://avatars.githubusercontent.com/u/11355002?v=4" alt="Contributor" style="width:5%; border-radius: 50%;"/></a> <a href="https://github.com/PentesterPriyanshu"><img src="https://avatars.githubusercontent.com/u/98478305?v=4" alt="Contributor" style="width:5%; border-radius: 50%;"/></a> <a href="https://github.com/harshhere905"><img src="https://avatars.githubusercontent.com/u/124420199?v=4" alt="Contributor" style="width:5%; border-radius: 50%;"/></a> <a href="https://github.com/hrushik98"><img src="https://avatars.githubusercontent.com/u/91076764?v=4" alt="Contributor" style="width:5%; border-radius: 50%;"/></a>

How Can You Contribute?

Contact Information

If you have any questions or feedback about this project, please feel free to contact us. We highly appreciate your suggestions!

We will respond to all questions within 2-3 business days.

License

MIT license

Citation

If you find our work and this repository useful, please consider giving a star :star: and citation :beer::

@article{chen2023auto,
  title={AutoAgents: The Automatic Agents Generation Framework},
  author={Chen, Guangyao and Dong, Siwei and Shu, Yu and Zhang, Ge and Jaward, Sesay and Börje, Karlsson and Fu, Jie and Shi, Yemin},
  journal={arXiv preprint},
  year={2023}
}

Wechat Group

<img src=".github/QRcode.jpg" alt="Wechat Group" width="200"/>

Acknowledgements

The system, action_bank and role_bank of this code base is built using MetaGPT

Icons in the framework made by Darius Dan, Freepik, kmg design, Flat Icons, Vectorslab from FlatIcon


<p align="center"> <a href="https://star-history.com/#Link-AGI/AutoAgents&Date"> <img src="https://api.star-history.com/svg?repos=Link-AGI/AutoAgents&type=Date" alt="Star History Chart"> </a> </p>