Agent Automata
Introduction
agent-automata is a lightweight orchestration architecture for a hierarchical group of modular, autonomous agents, with the goal of composing actions from simple autonomous agents into complex collective behavior.
The core idea behind this architecture is that instead of having a complex central agent managing many commands and sub-agents, or a fixed set of agents with specific roles in a task loop, we allow agents to call each other as tools, and then establish a hierarchical, rank-based structure to control the direction of the calls:
Agent A (Rank 3):
- Agent B (Rank 2)
- Tool 1
- Tool 2
- Agent C (Rank 2)
- Tool 1
- Tool 3
- Agent D (Rank 1)
- Tool 4
- Tool 5
- Tool 6
Agent A can then potentially be included as a callable sub-agent by another agent of higher rank, and so on.
Installation
Run pip install agent-automata for the core package.
You can also run pip install agent-automata[builtins] to install some additional built-in functionality.
Usage/Demo
There is very little concrete functionality included in the package--this is meant to be one component in a larger, more usable system of agents. The demo directory shows a rather trivial example of specifying a simple agent and its sub-agents/tools using yaml spec files.
To run the demo:
- Install the package with the
[builtins]option. - Download the
demodirectory (you can download the zip and extract just thedemodirectory). cdto thedemodirectory.- Run
python run_demo.py. - You should see some output from the demo agent, which creates a quiz and saves it to a file in a workspace.
If you find this architecture interesting and would like more documentation on how it works, please post an issue.
Release files for agent-automata 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agent_automata-0.1.5.tar.gz | 61.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_automata-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 115.9 kB
Release files / agent_automata-0.1.5.tar.gz
| Download URL | agent_automata-0.1.5.tar.gz |
|---|---|
| Size | 61.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1492759cde133b2b0ed3f9efc20cfa4e19f6b2204fe38431ebac415c8008292
|
|
BLAKE2b-256 checksum How to use checksums |
c5c945d5ec41f31cd9f179dc12ed11229edd5643adb9f9fa8b157da416a846f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.3 Darwin/21.6.0
|
Release files / agent_automata-0.1.5-py3-none-any.whl
| Download URL | agent_automata-0.1.5-py3-none-any.whl |
|---|---|
| Size | 54.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a06ff77cdaaf13fee63696ddccb6081dc7e541f788b479f5535aa1451aac4671
|
|
BLAKE2b-256 checksum How to use checksums |
e414940b39c9a0a7684ae0c226a2aa5a453952ad8442b8cb5fc1e42305fdd89b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.3 Darwin/21.6.0
|