Agents: An Open-source Framework for Autonomous Language Agents

Wangchunshu Zhou,Yuchen Eleanor Jiang,Long Li,Jialong Wu,Tiannan Wang,Shi Qiu,Jintian Zhang,Jing Chen,Ruipu Wu,Shuai Wang,Shiding Zhu,Jiyu Chen,Wentao Zhang,Xiangru Tang,Ningyu Zhang,Huajun Chen,Peng Cui,Mrinmaya Sachan
2023-12-12
Abstract:Recent advances on large language models (LLMs) enable researchers and developers to build autonomous language agents that can automatically solve various tasks and interact with environments, humans, and other agents using natural language interfaces. We consider language agents as a promising direction towards artificial general intelligence and release Agents, an open-source library with the goal of opening up these advances to a wider non-specialist audience. Agents is carefully engineered to support important features including planning, memory, tool usage, multi-agent communication, and fine-grained symbolic control. Agents is user-friendly as it enables non-specialists to build, customize, test, tune, and deploy state-of-the-art autonomous language agents without much coding. The library is also research-friendly as its modularized design makes it easily extensible for researchers. Agents is available at <a class="link-external link-https" href="https://github.com/aiwaves-cn/agents" rel="external noopener nofollow">this https URL</a>.
Computation and Language
What problem does this paper attempt to address?
### Problems Addressed by the Paper The paper primarily addresses the following issues: 1. **Customization, Debugging, and Deployment of Autonomous Language Agents**: - Most current demonstrations or codebases of autonomous language agents are not user-friendly for customizing, debugging, and deploying new agents, even for experienced developers or researchers. These demonstrations typically showcase the possibilities of language agents rather than providing a framework for long-term construction and customization of agents. 2. **Insufficient Functionality of Existing Open-Source Language Agent Frameworks**: - Most existing language agent frameworks cover only a small portion of the core capabilities of agents, such as task decomposition, long-term and short-term memory, web navigation, tool usage, and multi-agent communication. These frameworks often rely on brief task descriptions and depend entirely on large language models (LLMs) for planning and action, resulting in significant runtime randomness and inconsistency, poor user experience, and difficulty in customization and debugging. 3. **Enhancing Agent Controllability**: - Existing agent frameworks generally define and control agent behavior only through system prompts, allowing the agent to plan and act independently. The framework proposed in this paper introduces a new paradigm based on Symbolic Planning (SOP), enabling users to control agent behavior more precisely, thereby improving the stability and predictability of agent actions and facilitating optimization and debugging. By releasing an open-source library named **AGENTS**, the paper aims to enable non-expert users to easily customize, debug, and deploy state-of-the-art autonomous language agents. Its modular design also facilitates further expansion by researchers. AGENTS supports various important functions, including planning, memory, tool usage, multi-agent communication, and interaction with human users. Additionally, AGENTS introduces Symbolic Planning (SOP) to provide fine-grained control over agent behavior.