LangChain.js adds a gemini-4-hydrogen model profile and a Gemini 4 Carbon capability profile. The xhigh thinking level is now supported, clamping to HIGH on models that do not support XHIGH.
LangChain.js
npx @buildinternet/releases get langchain-jsAnthropicToolsOutputParser now falls back to tool_calls, so withStructuredOutput works when streamed content is normalized to tool_call blocks.
A failed tool call or subagent no longer crashes the process when its output promise is never consumed. A Command returned from wrapModelCall is now applied once when outer middleware passes it through.
Streamed input_json_delta blocks are now merged into the preceding tool_use or server_tool_use block at the same index.
Updated dependencies [9920d4b]: @langchain/classic@1.0.61
Updated dependencies [9920d4b]: @langchain/openai@1.8.4
TypeSafeClassifier now extends BaseDecisionModel from @langchain/core/decisions and requires @langchain/core 1.4.0 or newer; questions move from the constructor to each invoke call, defined response and usage types move to core, and several question and response types are removed. The release also requires Zod 4.6.6 or newer to exclude versions affected by GHSA-mrhx-c7xc-m3w5, and autoModeMiddleware and modelRouterMiddleware are deprecated and will be removed in 0.2.0.
Updated dependencies [9920d4b]: @langchain/openai@1.8.4
Updated dependencies [9920d4b]: @langchain/openai@1.8.4
Updated dependencies [9920d4b]: @langchain/openai@1.8.4
Updated dependencies [9920d4b]: @langchain/openai@1.8.4
Installed dependencies must now resolve Zod 4.6.6 or newer to exclude versions affected by GHSA-mrhx-c7xc-m3w5, while Zod v3 schemas remain supported through the bundled zod/v3 entry point. @langchain/openai was bumped to 1.8.4.
The MCP adapters package now requires Zod 4.6.6 or newer to exclude versions affected by GHSA-mrhx-c7xc-m3w5, with Zod v3 schemas still supported through the bundled zod/v3 entry point.
modelRouterMiddleware picks the agent's model for each run from a decision model's Choice answer, and autoModeMiddleware blocks listed tool calls a decision model judges risky. Installed dependencies now require Zod 4.6.6 or newer to exclude versions affected by GHSA-mrhx-c7xc-m3w5, with Zod v3 schemas still supported through the bundled zod/v3 entry point.
@langchain/core/decisions introduces BaseDecisionModel, a Runnable that answers typed Noul, Choice, Score, and Box questions about text, messages, or JSON state, with invoke answers typed from the questions asked. Installed dependencies now require Zod 4.6.6 or newer to exclude versions affected by GHSA-mrhx-c7xc-m3w5, while Zod v3 schemas remain supported through the bundled zod/v3 entry point.
Updated dependencies []: @langchain/classic@1.0.60
Updated dependencies [e92e44d]: @langchain/openai@1.8.3
Updated dependencies [e92e44d]: @langchain/openai@1.8.3
Updated dependencies [e92e44d]: @langchain/openai@1.8.3
Updated dependencies [e92e44d]: @langchain/openai@1.8.3

