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
Interruptclass by hiding thewhenfield from display outputs (#3889)
Detailed Changes
langgraph.types.PregelScratchpad
- Redesigned how resume values are handled by replacing direct
null_resumestorage with aget_null_resumefunction that takes aconsumeparameter (#3888) - Removed
null_resume,_consume_null_resumeproperties, and theconsume_null_resume()method, replacing them with a cleaner and more versatileget_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
_scratchpadfunction to take aconfigparameter, allowing it to access the parent scratchpad's resume values (#3889)
langgraph.types.Interrupt
- Improved the display representation of the
Interruptclass by hiding thewhenfield 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_resumefunctionality (#3889)