Skip to content

0.2.50

Choose a tag to compare

@github-actions github-actions released this 15 Nov 23:51

langgraph 0.2.50

Summary of Changes

  • Fixed Pregel Task Management: Changed how tasks are managed in the Pregel execution model, ensuring tasks are only cleared when explicitly specified with an END node, rather than whenever no values are provided.
  • Enhanced Checkpoint Creation: Added capability to create checkpoints without modifying the state, useful for creating snapshots during graph execution.

Detailed Changes

langgraph.pregel.Pregel

  • Fixed a condition in aupdate_state to only clear tasks when as_node is explicitly set to END, rather than when it's None. This prevents unintentional task clearing when no target node is specified.
  • Added new functionality to create a checkpoint without applying any state changes when values is None and as_node is None. This allows for creating snapshot checkpoints during execution without modifying the underlying state.