langgraph 0.1.11
Summary of Changes
- Fixed initialization of
checkpoint_pending_writesinPregelLoopto ensure it's always a list, never None (#1106) - Fixed validation error in
StateGraph.add_edge()to correctly prevent START node from being an end node - Improved type annotations in
StateGraph.compile()to correctly indicate it returns aCompiledStateGraph
Detailed Changes
langgraph.pregel.loop.PregelLoop
- Changed
checkpoint_pending_writestype fromOptional[List[PendingWrite]]toList[PendingWrite] - Modified
__enter__and__aenter__methods to ensurecheckpoint_pending_writesis always a list by defaulting to an empty list whensaved.pending_writesis None (#1106)
langgraph.graph.state.StateGraph
- Fixed validation in
add_edge()method to correctly check that START cannot be an end node (instead of incorrectly checking that END cannot be an end node) - Updated return type annotation in
compile()method fromCompiledGraphto"CompiledStateGraph"to accurately reflect the actual return type