Releases
0.2.46
Compare
Sorry, something went wrong.
No results found
langgraph 0.2.46
Summary of Changes
Added add_sequence method to StateGraph for creating a linear sequence of nodes (#2352 )
Introduced GraphCommand class as a replacement for the deprecated Control class (#2352 )
Enhanced checkpointer handling in StateGraph.compile() to support explicitly disabling checkpointing with False (#2328 )
Improved checkpoint state management and handling of pending writes
Better task handling in the Pregel execution engine
Detailed Changes
langgraph.graph.state.StateGraph
Added new add_sequence() method to create linear sequences of nodes (#2352 )
Accepts a sequence of nodes (runnables or callables) or (name, node) tuples
Automatically infers node names when not explicitly provided
Creates edges between nodes in the sequence
Returns self for method chaining
Fixed return type annotations for add_node() and add_edge() methods to correctly show they return the StateGraph instance (#2352 )
Enhanced compile() method's checkpointer parameter (#2328 ):
Now accepts False to explicitly disable checkpointing
Better documentation for inheritance of checkpointers in subgraphs
langgraph.graph.state.GraphCommand
New class that replaces the deprecated Control class (#2352 )
Used for directing graph flow and updating state
Introduces goto parameter (replacing trigger from Control) for more semantic clarity
Inherits from the base Command class and adds graph-specific functionality
langgraph.pregel.Pregel
Improved handling of pending writes in state snapshots
Enhanced application of pending writes when resuming from checkpoints
Better task organization with path-based sorting
langgraph.pregel.algo.PregelTaskWrites
Added path property to better track and organize task execution order
Used for sorting tasks when applying writes
You can’t perform that action at this time.