langchain-hs-graph: Graph-based stateful agent orchestration engine for langchain-hs

[ ai, control, library, mit, web ] [ Propose Tags ] [ Report a vulnerability ]

StateGraph, StateReducer, Checkpointer, HITL interrupt/resume, and Multi-Agent supervisor patterns.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.5.0
Change log CHANGELOG.md
Dependencies aeson (>=2.0 && <3), async (>=2.2 && <2.3), base (>=4.17 && <5), bytestring (>=0.10 && <0.13), containers (>=0.6 && <0.9), langchain-hs-core (>=0.0.5 && <0.0.6), mtl (>=2.2 && <2.4), sqlite-simple (>=0.4.18 && <0.5), stm (>=2.5 && <2.6), text (>=1.2 && <3), time (>=1.9 && <1.15) [details]
Tested with ghc ==9.12.4, ghc ==9.10.3, ghc ==9.8.4
License MIT
Copyright 2025-2026 Tushar Adhatrao
Author Tushar Adhatrao
Maintainer tusharadhatrao@gmail.com
Uploaded by tusharad at 2026-09-12T13:14:10Z
Category Web, AI, Control
Home page https://github.com/tusharad/langchain-hs#readme
Bug tracker https://github.com/tusharad/langchain-hs/issues
Source repo head: git clone https://github.com/tusharad/langchain-hs
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2 total (2 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-09-12 [all 1 reports]

Readme for langchain-hs-graph-0.0.5.0

[back to package description]

langchain-hs-graph

Stateful agent orchestration and cyclic graph workflows for langchain-hs (LangGraph in Haskell).

langchain-hs-graph provides cyclic state machines, pure monoidal state reducers, in-memory STM checkpointers, persistent SQLite checkpointers, Human-in-the-Loop (HITL) interrupts, and multi-agent coordination patterns.

Key Primitives

  • StateGraph s m: Cyclic workflow builder with typed nodes, directed edges, and conditional branches.
  • StateReducer s: Pure binary state merge reducer (s -> s -> s) satisfying monoid associativity laws.
  • Checkpointers:
    • MemoryCheckpointer: In-memory thread-safe state persistence using STM TVar.
    • SQLiteCheckpointer: Persistent state checkpointer for production runs.
  • Human-in-the-Loop (HITL): Node interruption before execution, inspection/modification, and resumed execution via resumeGraph.
  • Parallel Nodes: Concurrent node evaluation using async.
  • Multi-Agent Architectures: Supervisor teams with capability routing, multi-agent debate, and majority voting.

Installation

build-depends: langchain-hs-graph >= 0.0.5 && < 0.0.6

License

MIT License. See LICENSE.