Skip to main content

fable-orchestrator

fable-orchestrator orchestrates multi-step LLM agent workflows — planning, execution, reflection, and tool use — as a typed state machine you can replay and inspect. It pairs naturally with LangChain and Anthropic models, and validates every state transition with Pydantic so a malformed agent run fails loudly instead of silently producing garbage.

It is framework-friendly: bring your own LLM client and tools, define the graph of steps, and fable-orchestrator drives execution, persists state, and exposes hooks for checkpoints and human-in-the-loop approvals.

Features

  • Typed state machines for plan → execute → reflect → finalize.
  • Pydantic-validated state transitions and tool call schemas.
  • First-class LangChain and Anthropic adapters; pluggable model interface.
  • Checkpointing to disk, S3, or Redis for resume and replay.
  • Human-in-the-loop approval gates with timeouts and escalation.
  • Token and cost accounting per step and per run.
  • Async-first; supports parallel branches and dynamic fan-out.

Installation

pip install fable-orchestrator langchain-anthropic pydantic

Quick start

from fable import Orchestrator, State
from fable.adapters.langchain_anthropic import AnthropicModel

orch = Orchestrator(model=AnthropicModel(model="claude-3-5-sonnet"))

@orch.step("plan")
def plan(state: State) -> State:
    state["plan"] = ["research", "draft", "review"]
    return state

result = orch.run(input="Write a one-pager on liquid cooling for GPUs")
print(result.final, result.usage.total_tokens)

API

  • fable.Orchestrator(model) — build an orchestrator; .step(name) decorator registers a step.
  • orch.run(input, **context) — execute the state machine and return a Result.
  • fable.adapters.langchain_anthropic.AnthropicModel(model=...) — Anthropic via LangChain.
  • fable.checkpoint(path) — checkpointer backend passed to the orchestrator.

Configuration

Set ANTHROPIC_API_KEY for the Anthropic adapter, and FABLE_CHECKPOINT=s3://my-bucket/runs (or a local path) to enable resume across restarts.

License

MIT

Metadata

Release files for fable-orchestrator 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fable-orchestrator 0.1.0
File Size Uploaded Provenance Actions
fable_orchestrator-0.1.0.tar.gz 7.3 kB Without provenance Details for fable_orchestrator-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fable-orchestrator 0.1.0
File Interpreter ABI Platform Actions
fable_orchestrator-0.1.0-py3-none-any.whl Python 3 none any Details for fable_orchestrator-0.1.0-py3-none-any.whl

Total release size: 15.5 kB

Release files / fable_orchestrator-0.1.0.tar.gz

Download URL fable_orchestrator-0.1.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
37253d32ed4079ffb03ac6e5c8d97ef4b4a5bbda254731b381726251029b82fd
BLAKE2b-256 checksum
How to use checksums
831b6d5a4f115c711befa136d2bd73029ddd2e95981b910a8cd4cf841a33fac9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / fable_orchestrator-0.1.0-py3-none-any.whl

Download URL fable_orchestrator-0.1.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
260b286776105a818588577bcf2f0aa0425b20f70afb4e70fc2ec1ba9425614b
BLAKE2b-256 checksum
How to use checksums
376a76598d256d1ec72ec1f86c25b0d9295dc0b5634c6a7d9aaa7082caa2541d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for fable-orchestrator 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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