Skip to main content

Module node

Module node 

Source
Expand description

Node definition for LangGraph

Nodes are the execution units in a graph. Each node receives the current state and returns a state update.

Structs§

AsyncNode
AsyncNode - Simple async node wrapper
FunctionNode
Function-based node implementation
InterruptibleNode
Resume-aware node (LangGraph-style interrupt).
NodeConfig
Node configuration
SentinelNode
Placeholder node for entry/exit points
SyncNode
Simple sync node wrapper

Constants§

INTERRUPT_RESUME_KEY
Metadata key the compiled graph uses to inject the human’s decision into a node that is being resumed after a runtime crate::errors::GraphError::InterruptRequest. A resume-aware node reads the value under this key from its NodeConfig.metadata.

Traits§

AsyncFn
AsyncFn trait for simpler async node creation
GraphNode
Graph Node trait

Type Aliases§

AsyncNodeFn
Async node function type (boxed future)
NodeResult
Node execution result (alias for clarity)