An Open-source Framework for Autonomous Language Agents
Project description
An Open-source Framework for Autonomous Language Agents
[📄 Paper] [🌐 Website] [🤖️ Demos]
Overview
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.
📢 Updates
- Support LLM-based SOP generation
- 2023.9.12 Offical Release
💡 Highlights
- Long-short Term Memory: Language agents in the library are equipped with both long-term memory implemented via VectorDB + Semantic Search and short-term memory (working memory) maintained and updated by an LLM.
- Tool Usage: Language agents in the library can use any external tools via function-calling and developers can add customized tools/APIs here.
- Web Navigation: Language agents in the library can use search engines to navigate the web and get useful information.
- Multi-agent Communication: In addition to single language agents, the library supports building multi-agent systems in which language agents can communicate with other language agents and the environment. Different from most existing frameworks for multi-agent systems that use pre-defined rules to control the order for agents' action, Agents includes a controller function that dynamically decides which agent will perform the next action using an LLM by considering the previous actions, the environment, and the target of the current states. This makes multi-agent communication more flexible.
- Human-Agent interaction: In addition to letting language agents communicate with each other in an environment, our framework seamlessly supports human users to play the role of the agent by himself/herself and input his/her own actions, and interact with other language agents in the environment.
- Symbolic Control: Different from existing frameworks for language agents that only use a simple task description to control the entire multi-agent system over the whole task completion process, Agents allows users to use an SOP (Standard Operation Process) that defines subgoals/subtasks for the overall task to customize fine-grained workflows for the language agents.
🛠 Installation
Option 1. Build from source
git clone https://github.com/aiwaves-cn/agents.git
cd agents
pip install -e .
Option 2. Install via PyPI (To be supported)
pip install agents
📦 Usage
🛠️ Generate the config file
Option 1. Fill in the config template manually
Modify example/{Muti|Single_Agent}/{target_agent}/config.json
Option 2. Try our WebUI for customizing the config file.
Haven't figured out how to write the JSON file yet? Check out our documentation!
🤖️ The Agent Hub
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!
📷 Examples and Demos
We have provided exemplar config files, code, and demos for both single-agent and multi-agent systems here.
Web demos
📚 Documentation
Please check our documentation for detailed documentation of the framework.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mikedeanproject-0.0.1.tar.gz
.
File metadata
- Download URL: mikedeanproject-0.0.1.tar.gz
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0da04716c215cf849b45a2d8f7895d23550ae8139c004ac2b66c487f07a63db |
|
MD5 | 9f6912be14db241e9434aec729d86942 |
|
BLAKE2b-256 | 5b4393609c35728649d4067484a4faa407aaef244d326cf218da4a491562ebbe |
File details
Details for the file mikedeanproject-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: mikedeanproject-0.0.1-py3-none-any.whl
- Upload date:
- Size: 40.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb9430abcc37094e5f6e67e8f33ad2b1e0c342082899e8e22071df3f6de8571a |
|
MD5 | 5fb7534217f684c7f474cf2484962bb1 |
|
BLAKE2b-256 | cadcb729376c22fda8fa0eddc211820524483852b68915a94555ce9895cec695 |