Back to directory

graph-flow

A stateful graph workflow framework for building complex, resumable AI agent systems in Rust, combining a LangGraph-style execution engine with optional native LLM integration.

graph-flow

graph-flow is a type-safe, LangGraph-inspired framework for building complex, interactive, resumable agent workflows in Rust. Its core library provides task orchestration, session persistence, conditional routing, and human-in-the-loop pauses, while an optional feature bridges chat history to a Rust-native LLM integration crate, with the agent runtime itself living in a companion crate.

Tasks are the building blocks of a workflow: each implements a task trait, reads and writes shared state through a context object, and returns a next-action value that steers the graph, supporting step-by-step, fire-and-forget, or mixed execution within the same graph. PostgreSQL-backed session storage is enabled by default and can be disabled to exclude that dependency.

The repository includes example services, such as an insurance-claims intake service with human-in-the-loop approval and a RAG-based recommendation service with vector search, alongside smaller progressive examples. It is published to crates.io under the MIT license.

More in Agent frameworks

See all 902
  • Recurse

    recurse.run

    A serverless harness that lets a coding agent design, test, and deploy its own specialist sub-agents as tools, MCP servers, or bots, defined by a schema-validated manifest.

  • ProofForge

    shulgin.is-a.dev

    An AI-agent pipeline that decomposes a mathematics problem, proves each piece, and formalizes the result in Lean 4 and Mathlib until the Lean kernel accepts it, with six of its proofs already merged into Google DeepMind's formal-conjectures repository.

  • local-coder

    github.com

    Builds a local coding-agent team on top of Ollama and OpenCode by detecting the machine's hardware, recommending models for seven specialist roles, and testing whether each assigned model can actually use tools, edit a repository and pass verification.