langgraph 0.1.7
Summary of Changes
- Added support for persisting writes in checkpoints across tasks, improving resilience when reloading interrupted workflows (PR #976)
- Added compatibility layer for newer versions of langchain-core (PR #973)
Detailed Changes
langgraph.checkpoint.base.CheckpointTuple
- Added new
pending_writesfield to store task-specific writes that can be restored when reloading a checkpoint
langgraph.checkpoint.base.BaseCheckpointer
- Added new methods
put_writesandaput_writesto enable storing task-specific writes in checkpoints - Implemented these methods in all checkpointer classes (Memory, SQLite, AioSQLite)
langgraph.pregel.Pregel
- Enhanced checkpoint system to persist writes between tasks, improving resilience
- Now persists task writes to checkpointer during execution, allowing interrupted workflows to be resumed more effectively
- Tasks with pre-loaded writes don't need to be re-executed, improving performance when restarting interrupted workflows
- Added unique task IDs to more reliably track and restore task states
langgraph.utils.runnable.RunnableCallable
- Added compatibility layer for working with newer versions of langchain-core by using
_set_config_contextfunction