LangChain (JS) — langchain v1.4.1
LangChain JS releases v1.4.1 with a fix that throws a StructuredOutputParsingError on terminal providerStrategy parse failures instead of silently resolving with undefined.
Patch Changes #10879 `eb480cb` Thanks @vignesh-gep! - fix(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. #10872 `a640079` Thanks @hntrl! - chore(deps): remove redundant @types/uuid declarations Remove `@types/uuid` from package manifests that rely on `@langchain/core/utils/uuid` or do not require uuid type stubs directly, and refresh the lockfile entries accordingly. #10160 `bba900c` Thanks @JadenKim-dev! - fix(langchain): prevent llmToolSelectorMiddleware from…
- github.comLangChain (JS) — langchain v1.4.1primary