langchain-ai
langchain
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Merge branch 'master' into imnishitha/core/strict-nested-required
imnishitha/core/strict-nested-required
2 hours ago
feat(langchain): add `state_schema` param to `wrap_tool_call` (#39292) 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). Added it for consistency. Co-authored-by: @acookie <14118569+acoo4ie@user.noreply.gitee.com>
master
2 hours ago
fix(core): recursively require nested properties for strict tool schemas Nested object schemas (e.g. from MCP tools) only had their top-level properties added to `required` when `strict=True`. OpenAI's strict mode requires every property at every nesting level to be listed in `required`, so nested optional fields caused the API to reject the request outright. Closes #33869 Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
imnishitha/core/strict-nested-required
3 hours ago
Merge branch 'master' into nm/langchain/fix-tool-emulator-defaults
nm/langchain/fix-tool-emulator-defaults
3 hours ago
fix(core): correct operator validation error wording
iroiro147:aovpr/langchain-36701-fix-typo-in-visitor-validate-func-error-message
10 hours ago
fix(langchain): restrict narrowed `ToolStrategy` in bound tools (#39259) Fixes #36568 Previously, narrowing a union `ToolStrategy` via `request.override()` validated the narrowed schema but still bound all originally declared structured-output tools, allowing the model to choose a schema outside the subset. `_get_bound_model` now binds only the tools in the effective `response_format`, so middleware overrides correctly restrict the available structured-output schemas. Co-authored-by: r266-tech <r2668940489@gmail.com> Co-authored-by: Jung Seunghoon <175179350+seuthootDev@users.noreply.github.com>
master
10 hours ago
Merge branch 'master' into Yigtwxx/langchain/propagate-non-retryable-model-exceptions
Yigtwxx:Yigtwxx/langchain/propagate-non-retryable-model-exceptions
19 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
23 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(core): require all nested properties for strict tool schemas
#39306
2 hours ago
0829782
imnishitha/core/strict-nested-required
CodSpeed Performance Gauge
0%
fix(langchain): handle import error in `LLMToolEmulator` by `model`
#39290
7 hours ago
e468130
nm/langchain/fix-tool-emulator-defaults
CodSpeed Performance Gauge
-1%
fix(core): correct operator validation error wording
#39303
10 hours ago
0fdcbb7
iroiro147:aovpr/langchain-36701-fix-typo-in-visitor-validate-func-error-message
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs