Skip to content

checkpoint==1.0.4

Choose a tag to compare

@github-actions github-actions released this 22 Aug 19:49

langgraph-checkpoint 1.0.4

Summary of Changes

  • Removed current_tasks from the Checkpoint TypedDict structure #1440
  • Added support for special write types, including error handling, with a new ERROR constant #1436
  • Improved checkpoint writes storage in MemorySaver by changing from a list to a dictionary structure #1436
  • Added validation to skip channels that don't exist in the checkpoint's channel_versions #1436
  • Enhanced JSON serialization to better handle exceptions #1436

Detailed Changes

langgraph.checkpoint.base.Checkpoint

  • Removed the current_tasks field from the Checkpoint TypedDict #1440

langgraph.checkpoint.base.empty_checkpoint, langgraph.checkpoint.base.copy_checkpoint, langgraph.checkpoint.base.create_checkpoint

  • Updated to no longer include the current_tasks field in the returned dictionaries #1440

langgraph.checkpoint.base.create_checkpoint

  • Added validation to skip channels that don't exist in the checkpoint's channel_versions #1436

langgraph.checkpoint.memory.InMemorySaver

  • Changed storage of writes from a list to a dictionary for better organization and access #1436
  • Updated put_writes method to use the new WRITES_IDX_MAP for mapping error types to indices #1436
  • Added support for including pending writes in checkpoint list output #1436

langgraph.checkpoint.serde.jsonplus.JsonPlusSerializer

  • Enhanced JSON serialization to handle BaseException objects by encoding them using their constructor arguments #1436
  • Improved the _reviver method to handle different combinations of arguments and keyword arguments #1436

langgraph.checkpoint.serde.types

  • Added a new constant ERROR = "__error__" to represent error types in writes #1436