Catalog PyPI
PACKAGE EXPLORERView in registry

agent-automata

PyPI
Versions collected1
Direct dependencies3From release 0.1.5
Last observed20 Oct, 21:31 UTC

README

Version 0.1.5 documentation

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.525 Jun 20233

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:31 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:e4602e442d04a6f6cdd15ed51e3367b587c2e3d0c958c9d3290ceddb581f934b