An Open-source Framework for Autonomous Language Agents
[📄 Paper] [🌐 Website] [🤖️ Demos] [🔥 Discord] [🔥 Wechat Group]
Agents is an open-source library/framework for building autonomous language agents. The library is carefully engineered to support important features including long-short term memory, tool usage, web navigation, multi-agent communication, and brand new features including human-agent interaction and symbolic control. With Agents, one can customize a language agent or a multi-agent system by simply filling in a config file in natural language and deploy the language agents in a terminal, a Gradio interface, or a backend service.
One major difference between Agents and other existing frameworks for language agents is that our framework allows users to provide fine-grained control and guidance to language agents via an SOP (Standard Operation Process). An SOP defines subgoals/subtasks for the overall task and allows users to customize a fine-grained workflow for the language agents.
git clone https://github.com/aiwaves-cn/agents.git
cd agents
pip install -e .
pip install ai-agents
Modify example/{Muti|Single_Agent}/{target_agent}/config.json
Haven't figured out how to write the JSON file yet? Check out our documentation!
We provide an AgentHub, where you can search for interesting Agents shared by us or other developers, try them out or use them as the starting point to customize your own agent. We encourage you to share your customized agents to help others build their own agents more easily! You can share your customized agents by submitting PRs that adds configs and customized codes here. You can also send us your own config files and codes for customized agents by email, and we will share your examples and acknowledge your contribution in future updates!
A WebUI for automatically uploading of your customized agents will be available soon!
We have provided exemplar config files, code, and demos for both single-agent and multi-agent systems here.
1.Due to massive traffic, our online demos may suffer from long queue time and unstable issues. Please follow our quick start guide) and deploy language agents locally for testing. Or checkout our website. 2.Software Company is unable to generate executable code online, if you wish to generate executable code directly, please run it locally :)
We appreciate your interest in contributing to our open-source initiative. Please feel free to submit a PR or share your thoughts on how to improve the library in Issues!
Please check our documentation for detailed documentation of the framework.
If you find our repo useful in your research, please kindly consider cite:
@misc{zhou2023agents,
title={Agents: An Open-source Framework for Autonomous Language Agents},
author={Wangchunshu Zhou and Yuchen Eleanor Jiang and Long Li and Jialong Wu and Tiannan Wang and Shi Qiu and Jintian Zhang and Jing Chen and Ruipu Wu and Shuai Wang and Shiding Zhu and Jiyu Chen and Wentao Zhang and Ningyu Zhang and Huajun Chen and Peng Cui and Mrinmaya Sachan},
year={2023},
eprint={2309.07870},
archivePrefix={arXiv},
primaryClass={cs.CL}
}