langgraph 0.1.17
Summary of Changes
- Improved state management by allowing empty state updates in
Pregel.update_state(), preserving configuration between updates - Enhanced checkpoint handling to support maintaining state when no values are provided
Detailed Changes
langgraph.pregel.Pregel
- Modified the
update_state()method to acceptNoneas a valid value for thevaluesparameter, enabling state updates that preserve configuration without changing values - Improved step counting logic to ensure proper incrementation when updating state
- Enhanced configuration preservation between updates by properly merging configurable fields from previous checkpoints
Checkpoint Creation (Internal)
- Updated internal checkpoint creation logic to handle cases where channels are not provided, allowing for checkpoint preservation while updating configuration