Skip to content

0.1.11

Choose a tag to compare

@github-actions github-actions released this 23 Jul 22:14
603a137

langgraph 0.1.11

Summary of Changes

  • Fixed initialization of checkpoint_pending_writes in PregelLoop to 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 a CompiledStateGraph

Detailed Changes

langgraph.pregel.loop.PregelLoop

  • Changed checkpoint_pending_writes type from Optional[List[PendingWrite]] to List[PendingWrite]
  • Modified __enter__ and __aenter__ methods to ensure checkpoint_pending_writes is always a list by defaulting to an empty list when saved.pending_writes is 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 from CompiledGraph to "CompiledStateGraph" to accurately reflect the actual return type