github langchain-ai/langgraph checkpoint==2.0.25

latest releases: cli==0.4.10, 1.0.5, sdk==0.3.0...
7 months ago

langgraph-checkpoint 2.0.25

Summary of Changes

  • Added thread deletion capabilities to checkpoint savers for improved resource management
  • Fixed context management for blob storage in InMemorySaver
  • Improved documentation for LangGraph Platform integration

Changes by Symbol

langgraph.checkpoint.base.BaseCheckpointSaver

  • Added new methods delete_thread() and adelete_thread() to allow for deletion of all checkpoints and writes associated with a specific thread ID
  • These methods provide a way to clean up resources and manage memory usage by removing data for threads that are no longer needed

langgraph.checkpoint.memory.InMemorySaver

  • Implemented the delete_thread() and adelete_thread() methods to remove all checkpoints, writes, and blobs associated with a specified thread ID
  • Added proper context management for blob storage by ensuring self.blobs enters the context manager stack
  • Added documentation note explaining that when using LangGraph Platform, no explicit checkpointer needs to be specified as the correct managed checkpointer will be used automatically
  • Fixed a typo in an error message ("File not in a supported f ormat" → "File not in a supported format")

Don't miss a new langgraph release

NewReleases is sending notifications on new releases.