MIT licensed by Tushar Adhatrao
This version can be pinned in stack with:langchain-hs-graph-0.0.6.2@sha256:19e0fd1178532b9adc76a5c9010e84ef26fae72c66698d861ad214a405a79ec9,2833
Module documentation for 0.0.6.2
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.6.2 && < 0.0.7
License
MIT License. See LICENSE.
Changelog for langchain-hs-graph
All notable changes to this package will be documented in this file.
0.0.6.2 - 2026-11-14
Note: 0.0.6.1 was skipped globally after langchain-hs-ollama-v0.0.6.1.
- Coordinated monorepo release alignment to
0.0.6.2.
- Tightened
langchain-hs-core dependency bound to >= 0.0.6.2 && < 0.0.7.
- Added StateGraph event streaming via
streamGraphEvents with typed GraphStreamEvent constructors (GraphStart, GraphNodeStart, GraphNodeChunk, GraphNodeEnd, GraphStateUpdate, GraphEnd).
0.0.6.0 - 2026-10-02
- Updated bounds for GHC 9.12 and modern Stackage LTS releases.
- Standalone stack configuration and verified test suite.
0.0.5.0 - 2026-09-10
- Initial standalone Hackage release of
langchain-hs-graph.
- Cyclic graph orchestration engine (
StateGraph s m).
- Pure monoidal state merge reducers (
StateReducer s).
- In-memory STM
TVar checkpointer and persistent SQLite checkpointer.
- Human-in-the-Loop (
HITL) interruption and resumption.
- Parallel concurrent node execution via
async.
- Multi-Agent coordination: Supervisor teams, debate loops, and voting classifiers.
- Graphviz DOT export for visual workflow inspection.