github langchain-ai/langchainjs langchain@1.4.1

latest releases: @langchain/google-common@2.1.31, @langchain/google-vertexai-web@2.1.31, @langchain/together-ai@0.1.4...
4 hours ago

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 leaking into message stream

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.