langchain
1.6.7 · 18 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed
1.6.7 is the newest release of 1.x.
In short
2 fixed1 internal
Release note
Patch Changes
langchain/createAgent: Throw on terminal
providerStrategyparse failure instead of silently resolving withstructuredResponse: undefinedWhen
createAgentwas configured withresponseFormatresolving to aproviderStrategy(either passed explicitly or auto-promoted from a bare Zod / JSON schema for models whose profile reportsstructuredOutput: true), and the model produced a terminal response (notool_calls) whose text could not be JSON-parsed or did not satisfy the schema, the agent silently exited with nostructuredResponse, surfacing later asTypeError: Cannot read properties of undefined. The agent now throws aStructuredOutputParsingErrorin that case while still allowing the agent loop to continue when tool calls are present. Closes #10878.langchain: Prevent llmToolSelectorMiddleware from leaking into message stream
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.