Skip to content

checkpoint==2.0.5

Choose a tag to compare

@github-actions github-actions released this 18 Nov 16:22
c6360e5

langgraph-checkpoint 2.0.5

Summary of Changes

  • Added PersistentDict class to enable disk-persistent checkpoints #2439
  • Enhanced MemorySaver with a configurable storage factory, allowing use of the new persistent storage #2439

Detailed Changes

langgraph.checkpoint.memory.MemorySaver

  • Added ability to customize storage backend via a new factory parameter, which defaults to defaultdict #2439
  • Modified context manager methods to properly handle custom storage backends using ExitStack #2439

langgraph.checkpoint.memory.PersistentDict

  • New class providing dictionary-like storage with persistence to disk #2439
  • Implements Python context manager interface for automatic saving on exit
  • Uses atomic writes for data safety (writing to a temporary file first)
  • Currently supports pickle serialization format
  • Designed to be used with MemorySaver as a drop-in replacement for in-memory storage