Packages

langchain

1.6.7 · 18 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed

Your version

1.4.1

18 May 2026Where it was published

1.6.7 is the newest release of 1.x.

In short

2 fixed1 internal

Release note

Patch Changes

  • langchain/createAgent: Throw on terminal providerStrategy parse failure instead of silently resolving with structuredResponse: undefined

    When createAgent was configured with responseFormat resolving to a providerStrategy (either passed explicitly or auto-promoted from a bare Zod / JSON schema for models whose profile reports structuredOutput: true), and the model produced a terminal response (no tool_calls) whose text could not be JSON-parsed or did not satisfy the schema, the agent silently exited with no structuredResponse, surfacing later as TypeError: Cannot read properties of undefined. The agent now throws a StructuredOutputParsingError in 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.