langchain==1.2.9
📦 langchainView on GitHub →
✨ 2 features🐛 4 fixes🔧 1 symbols
Summary
LangChain version 1.2.9 introduces support for state updates via `wrap_model_call` and threading context in agent flows, alongside several bug fixes related to schema normalization and token counting.
Migration Steps
- Ensure you are using a core version compatible with the updated dependency requirement.
✨ New Features
- Support state updates from `wrap_model_call` when using command(s).
- Threading context through `create_agent` flows and middleware.
🐛 Bug Fixes
- Normalized raw schemas in middleware response_format override.
- Bumped minimum core version and improved approximate token counting.
- Used usage metadata scaling in SummarizationMiddleware default token counter.
- Avoided UnboundLocalError when no AIMessage exists.