pypi langgraph-sdk 0.3.14

11 days ago

langgraph 0.3.14

Summary of Changes

  • Fixed handling of resume values in nested graph structures, improving reliability when interrupting and resuming tasks across nested graphs (#3888, #3889)
  • Improved cascading of resume values from parent to child scratchpads, making interrupt/resume more robust in hierarchical contexts (#3889)
  • Enhanced the representation of the Interrupt class by hiding the when field from display outputs (#3889)

Detailed Changes

langgraph.types.PregelScratchpad

  • Redesigned how resume values are handled by replacing direct null_resume storage with a get_null_resume function that takes a consume parameter (#3888)
  • Removed null_resume, _consume_null_resume properties, and the consume_null_resume() method, replacing them with a cleaner and more versatile get_null_resume(bool) callable (#3888)

langgraph.pregel.algo.prepare_single_task

  • Added support for accessing and cascading resume values from parent scratchpads to child scratchpads, improving the handling of resumable interruptions in nested contexts (#3889)
  • Modified _scratchpad function to take a config parameter, allowing it to access the parent scratchpad's resume values (#3889)

langgraph.types.Interrupt

  • Improved the display representation of the Interrupt class by hiding the when field when printing instances (#3889)

langgraph.pregel.loop.PregelLoop

  • Removed redundant code that manually propagated resume values from parent scratchpads, as this is now handled more elegantly through the cascading get_null_resume functionality (#3889)

Don't miss a new langgraph-sdk release

NewReleases is sending notifications on new releases.