Skip to main content

Module graph

Module graph 

Source
Expand description

Graph definition โ€” StateGraph<S> builder and validation.

A StateGraph defines the topology: nodes (async functions) and edges (fixed or conditional transitions). Call compile() to validate the structure and produce a CompiledGraph ready for execution.

Structsยง

StateGraph
Declarative graph definition with typed nodes and edges.