github langchain-ai/langchainjs langchain@1.2.29

latest releases: @langchain/google-vertexai@2.1.24, @langchain/community@1.1.22, @langchain/google-webauth@2.1.24...
11 hours ago

Patch Changes

  • #10245 48dfa1d Thanks @christian-bromann! - fix(agents): propagate structured output retry Command through wrapModelCall middleware

  • #10243 96c630d Thanks @hntrl! - fix: add explicit : symbol type annotations to Symbol.for() declarations for cross-version compatibility

    TypeScript infers unique symbol type when Symbol.for() is used without an explicit type annotation, causing type incompatibility when multiple versions of the same package are present in a dependency tree. By adding explicit : symbol annotations, all declarations now use the general symbol type, making them compatible across versions while maintaining identical runtime behavior.

    Changes:

    • Added : symbol to MESSAGE_SYMBOL in messages/base.ts
    • Added : symbol to MIDDLEWARE_BRAND in agents/middleware/types.ts (also changed from Symbol() to Symbol.for() for cross-realm compatibility)
  • #10252 0bf01a2 Thanks @colifran! - feat: implement standard schema support for structured output

  • Updated dependencies [96c630d, a8b9ccc, a1f22bb]:

    • @langchain/core@1.1.30

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.