langgraph 0.2.9
Summary of Changes
- Refactored channel and managed value handling for better integration and performance
- Improved architecture by reducing component coupling and centralizing management code
- Enhanced error handling for interruptions to prevent unnecessary retries in task execution (PR #1413)
Detailed Changes
langgraph.pregel.retry.run_with_retry
- Added special handling for
GraphInterruptexceptions to avoid retry attempts for intentional interruptions (PR #1413) - This applies to both synchronous and asynchronous versions of the retry function
langgraph.graph.state.StateGraph
- Improved integration of managed values with channels in the compiled graph
- Updated type annotations from
ManagedValuetoManagedValueSpecfor better precision - Enhanced channel handling to properly integrate managed values in the compilation process
langgraph.pregel.manager
- New module that provides centralized managers handling both channels and managed values together
- Replaced separate managers from different modules with unified implementations
- Simplified the API for creating and managing channel contexts
langgraph.pregel.loop.PregelLoop
- Restructured to remove direct graph dependencies for better encapsulation
- Added property to store final output directly on the loop instance
- Simplified execution flow and improved how tasks are processed