prebuilt==0.5.0
Breaking Changes📦 langgraph
⚠ 6 breaking✨ 5 features🐛 4 fixes⚡ 1 deprecations🔧 10 symbols
Summary
This release introduces significant breaking changes by removing legacy Graph types and internal checkpoint fields while improving serialization support for numpy and pandas. It also standardizes schema naming conventions and optimizes checkpoint metadata.
⚠️ Breaking Changes
- Removed MessageGraph class. Users should migrate to StateGraph with a list of messages.
- Removed non-state Graph class.
- Removed Context channel, managed values, and SharedValue.
- Removed Checkpoint.writes field from the checkpoint schema.
- Removed old checkpoint test fixtures.
- Removed deprecated 'output' and 'input' parameters in favor of 'output_schema' and 'input_schema'.
Migration Steps
- Replace usage of MessageGraph with StateGraph.
- Replace 'input' and 'output' arguments with 'input_schema' and 'output_schema' in graph definitions.
- Update custom checkpointers to align with the removal of Checkpoint.writes if applicable.
- Remove references to SharedValue and Context channels.
✨ New Features
- Added crons sorting to the SDK.
- Added support for numpy array serialization in JsonPlusSerializer.
- Added pandas serialization with a pickle fallback.
- Reduced extraneous keys in checkpoint.metadata to optimize storage.
- Added checks for pre-bound models with builtin tools in prebuilt module.
🐛 Bug Fixes
- Restored compatibility with custom checkpointer classes created in prior versions.
- Fixed issue where FuturesDict callback would be called after being Garbage Collected.
- Fixed multiple injections error by throwing a specific exception.
- Updated ormsgpack dependency.
🔧 Affected Symbols
MessageGraphGraphCheckpoint.writesSharedValueContextJsonPlusSerializerinput_schemaoutput_schemacheckpoint.metadataormsgpack⚡ Deprecations
- Deprecated 'input' and 'output' in favor of 'input_schema' and 'output_schema'.