Skip to main content

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:

  1. Install the package with the [builtins] option.
  2. Download the demo directory (you can download the zip and extract just the demo directory).
  3. cd to the demo directory.
  4. Run python run_demo.py.
  5. 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)

Source distribution for agent-automata 0.1.5
File Size Uploaded
agent_automata-0.1.5.tar.gz 61.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-automata 0.1.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page