FlowCompile

FlowCompile Documentation

FlowCompile is an optimizing compiler for structured LLM workflows. Given a workflow graph, validation/profile data, and a design space over model choices, reasoning budgets, and workflow structures, it compiles a reusable set of workflow-level configurations that span the accuracy-latency Pareto frontier.

The implementation follows the paper pipeline closely:

  1. Collect workflow traces with a high-capacity reference model.
  2. Induce and filter sub-agent training examples from those traces.
  3. Profile each sub-agent across the configured model and reasoning-budget space.
  4. Compose sub-agent profiles through a structure-aware proxy.
  5. Emit flowcompile.compiled.v2 runtime configurations for validation, deployment-time selection, or optional routing.

Core Capabilities

Start Here

Getting Started

Guides

API Reference

Build the Docs Locally

Install the docs dependencies and run Sphinx from the repository root:

python -m pip install -r docs/requirements.txt
python -m sphinx -n -W --keep-going -b html docs docs/_build/html

The generated site will be written to docs/_build/html.