langgraph 0.3.13
Summary of Changes
- Improved graph visualization with parallel traversal of subgraphs and support for RemoteGraph instances (#3879)
- Enhanced interrupt handling with better support for multiple concurrent interrupts and more robust error management (#3886)
Detailed Changes
langgraph.graph.graph.CompiledGraph
- Significantly improved the async graph visualization by implementing parallel traversal of subgraphs using
asyncio.gather()(#3879) - Added support for
RemoteGraphvisualization in both sync and async methods (#3879) - Refactored code to extract common graph drawing logic into a new
_draw_graph()method to reduce duplication (#3879)
langgraph.pregel.loop.PregelLoop
- Fixed interrupt emission to prevent duplicate events in the loop execution (#3886)
- Improved handling of sequence vs single interrupts to ensure proper propagation (#3886)
langgraph.pregel.runner.PregelRunner
- Enhanced handling of multiple concurrent interrupts by collecting and combining them into a single interrupt (#3886)
- Optimized the storage of interrupts in checkpoints (#3886)
langgraph.pregel.debug
- Fixed the debug visualization to properly handle interrupts that can be either single values or sequences (#3886)
langgraph.pregel.io
- Made task ID validation more robust by catching any exception during UUID parsing instead of just ValueError (#3886)