Skip to content

0.2.49

Choose a tag to compare

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

langgraph 0.2.49

Summary of Changes

  • Modified the Pregel class's handling of state updates to properly differentiate between end states and empty updates
  • Added support for copying checkpoints when no values are provided
  • Added debug parameter to loop creation for improved debugging capabilities

Detailed Changes

langgraph.pregel.Pregel

  • Changed condition in update_state to use as_node == END instead of as_node is None when checking for empty values and clearing tasks
  • Added new condition block to handle case where both values is None and as_node is None, which creates a copy of the current checkpoint
  • Added debug parameter to loop creation to support better debugging of graph execution
  • Added END constant to imports to support the new conditional logic