Skip to main content

Workflow framework for LLM pipelines and tool-calling agents.

Project description

openarmature-python

Python reference implementation of OpenArmature — a workflow framework for LLM pipelines and tool-calling agents.

Status: alpha. Implemented against spec v0.10.0.

Install

Not yet on PyPI. For local use, install from a checkout:

uv add --editable /path/to/openarmature-python

Quick example

import asyncio
from typing import Annotated

from pydantic import Field

from openarmature.graph import END, GraphBuilder, State, append


class S(State):
    log: Annotated[list[str], append] = Field(default_factory=list)


async def hello(_state: S) -> dict[str, list[str]]:
    return {"log": ["hello"]}


async def world(_state: S) -> dict[str, list[str]]:
    return {"log": ["world"]}


graph = (
    GraphBuilder(S)
    .add_node("hello", hello)
    .add_node("world", world)
    .add_edge("hello", "world")
    .add_edge("world", END)
    .set_entry("hello")
    .compile()
)

final = asyncio.run(graph.invoke(S()))
print(final.log)  # ['hello', 'world']

See tests/conformance/ for fixtures covering conditional routing, subgraph composition, and the canonical compile- and runtime-error categories.

Spec

The spec lives in openarmature-spec and is pinned here as a git submodule. Conformance fixtures from the spec are exercised by tests/conformance/.

The pinned spec version is recorded in tool.openarmature.spec_version (in pyproject.toml) and exposed as openarmature.__spec_version__.

License

Apache-2.0.

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

openarmature-0.5.0.tar.gz (467.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openarmature-0.5.0-py3-none-any.whl (112.0 kB view details)

Uploaded Python 3

File details

Details for the file openarmature-0.5.0.tar.gz.

File metadata

  • Download URL: openarmature-0.5.0.tar.gz
  • Upload date:
  • Size: 467.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openarmature-0.5.0.tar.gz
Algorithm Hash digest
SHA256 81b16f5bbcf8d7c05736f644d30d0ccb0898e0987cc84da45c615e1967553ac7
MD5 b69ee62c0e25f9a25807952b25e6d4bb
BLAKE2b-256 f2a75c37ad2989f7acc977d8cc5d1e217d9d0ef30879763c0ef63d317af2f48d

See more details on using hashes here.

Provenance

The following attestation bundles were made for openarmature-0.5.0.tar.gz:

Publisher: release.yml on LunarCommand/openarmature-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openarmature-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: openarmature-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 112.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openarmature-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b4b353daf117bcf1111bc5fe4eeb539efd6d4349d5f2ff4a8b757ba90ddf3f3
MD5 79207553c4e6160413a98fa88a4b1b99
BLAKE2b-256 e57e48630991f2b900e1558287826674d327f13c5776a3232bcd69d04ac924e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for openarmature-0.5.0-py3-none-any.whl:

Publisher: release.yml on LunarCommand/openarmature-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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