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()andadelete_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()andadelete_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.blobsenters 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")