Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_automata-0.1.5.tar.gz (61.0 kB view details)

Uploaded Source

Built Distribution

agent_automata-0.1.5-py3-none-any.whl (54.9 kB view details)

Uploaded Python 3

File details

Details for the file agent_automata-0.1.5.tar.gz.

File metadata

  • Download URL: agent_automata-0.1.5.tar.gz
  • Upload date:
  • Size: 61.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Darwin/21.6.0

File hashes

Hashes for agent_automata-0.1.5.tar.gz
Algorithm Hash digest
SHA256 e1492759cde133b2b0ed3f9efc20cfa4e19f6b2204fe38431ebac415c8008292
MD5 092ade5d19ea4ae4cb3aa22c9fc10be6
BLAKE2b-256 c5c945d5ec41f31cd9f179dc12ed11229edd5643adb9f9fa8b157da416a846f2

See more details on using hashes here.

File details

Details for the file agent_automata-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: agent_automata-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 54.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Darwin/21.6.0

File hashes

Hashes for agent_automata-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a06ff77cdaaf13fee63696ddccb6081dc7e541f788b479f5535aa1451aac4671
MD5 2e433b32842b7bc3ea908ddbcda40eec
BLAKE2b-256 e414940b39c9a0a7684ae0c226a2aa5a453952ad8442b8cb5fc1e42305fdd89b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page