langchain-ai
langchain
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Merge branch 'master' into Yigtwxx/langchain/propagate-non-retryable-model-exceptions
Yigtwxx:Yigtwxx/langchain/propagate-non-retryable-model-exceptions
7 hours ago
fix(langchain): fix mypy comparison-overlap on wrap_tool_call state_schema Parameterize wrap_tool_call's return type as AgentMiddleware[StateT, ContextT] (matching wrap_model_call and friends) so state_schema resolves to the bound TypeVar instead of the base class's AgentState[Any] default, which made mypy flag the state_schema equality check in tests as a non-overlapping comparison. Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
nm/langchain/wrap-tool-call-state-schema
11 hours ago
fix(langchain): re-export `PIIMatch` from `langchain.agents.middleware` Closes #38718 `PIIMatch` was already in `pii.py`'s `__all__`, but not re-exported from the package `__init__`, forcing custom PII detector authors to import it from the private `_redaction` module. Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
nm/langchain/reexport-pii-match
11 hours ago
chore(langchain): revert unrelated uv.lock churn Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
nm/langchain/fix-tool-emulator-defaults
11 hours ago
feat(langchain): add `state_schema` param to `wrap_tool_call` Closes #36409 `wrap_tool_call` was the only middleware decorator lacking a `state_schema` parameter (`before_model`, `after_model`, `wrap_model_call`, `before_agent`, and `after_agent` all have it). Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
nm/langchain/wrap-tool-call-state-schema
11 hours ago
fix(langchain): don't crash persisting length-changing context edits ContextEdit.apply only requires mutating the message list in place, not preserving its length, so a custom edit that inserts or removes messages (e.g. messages.pop(0)) previously crashed wrap_model_call's persistence step with ValueError from a length-mismatched zip(strict=True). Skip persistence when lengths differ instead; the edited request still reaches the model unchanged, just without the persistence benefit for that edit. Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
nm/langchain/context-editing-persist-clears
12 hours ago
fix(langchain): persist context-editing clears via the actual model-call edit Address review feedback on the ContextEditingMiddleware persistence fix: recomputing the edit in after_model with count_tokens_approximately could disagree with wrap_model_call's decision under token_count_method="model" (different counters could clear a different set of messages, or none at all). Instead, wrap_model_call/awrap_model_call now persist the exact messages the edit changed for the real model request via an ExtendedModelResponse + Command update, so the checkpointer's view always matches what the model actually saw, regardless of token_count_method. Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
nm/langchain/context-editing-persist-clears
14 hours ago
fix(langchain,anthropic): fix batch of near-trivial bugs Closes #34274 Closes #38718 Closes #36409 Closes #35852 Closes #38465 - LLMToolEmulator: remove redundant double-check when building tools_to_emulate, and make model a required keyword argument instead of silently defaulting to an Anthropic model that required langchain-anthropic to be installed. - Re-export PIIMatch from langchain.agents.middleware so custom PII detector authors don't need the private _redaction module. - Add a state_schema parameter to wrap_tool_call, matching the other middleware decorators. - Fix the Claude file-tool dispatch in langchain-anthropic to populate old_path alongside path, fixing a KeyError on every rename command. Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
nm/langchain/fix-batch-bug-reports
14 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(langchain): re-raise non-retryable exceptions in `ModelRetryMiddleware`
#38960
7 hours ago
0acaca8
Yigtwxx:Yigtwxx/langchain/propagate-non-retryable-model-exceptions
CodSpeed Performance Gauge
0%
feat(langchain): add `state_schema` param to `wrap_tool_call`
#39292
11 hours ago
58be863
nm/langchain/wrap-tool-call-state-schema
CodSpeed Performance Gauge
0%
fix(langchain): re-export `PIIMatch` from `middleware` package
#39291
12 hours ago
8cdf4db
nm/langchain/reexport-pii-match
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs