Skip to content

checkpoint==1.0.7

Choose a tag to compare

@github-actions github-actions released this 30 Aug 21:26

langgraph-checkpoint 1.0.7

Summary of Changes

  • Added support for parent checkpoint references in checkpoint metadata, replacing the previous score field
  • Added handling of pending task sends across checkpoint loading and listing
  • Improved serialization handling for various object types
  • Enhanced checkpoint listing with better namespace handling
  • Removed unnecessary ABC inheritance for BaseCheckpointSaver

Detailed Changes

langgraph.checkpoint.base.CheckpointMetadata

  • Replaced score field with parents field, which maps checkpoint namespace to checkpoint ID
  • This allows for more sophisticated relationship tracking between checkpoints

langgraph.checkpoint.base.BaseCheckpointSaver

  • Removed inheritance from ABC (Abstract Base Class)
  • Simplified the class definition while maintaining the same interface

langgraph.checkpoint.memory.InMemorySaver

  • Added support for tracking and including pending sends in checkpoints
  • Enhanced get_tuple method to include "pending_sends" from parent checkpoints
  • Improved the list method to better handle checkpoint namespace filtering
  • Fixed logic for querying checkpoints by ID and metadata

langgraph.checkpoint.serde.jsonplus.JsonPlusSerializer

  • Improved serialization of objects with model_dump and dict methods by specifying constructor methods
  • Enhanced exception handling during deserialization
  • Changed BaseException serialization to use string representation instead of constructor arguments
  • Added better class checks during deserialization