Skip to content

Conversation

@davidkna-sap
Copy link
Member

@davidkna-sap davidkna-sap commented Oct 15, 2025

Context

Closes SAP/ai-sdk-js-backlog#406.
Closes SAP/ai-sdk-js-backlog#413

e2e for 8afa0dd: https://github.com/SAP/ai-sdk-js/actions/runs/18527225942

e2e for 67e9c44: https://github.com/SAP/ai-sdk-js/actions/runs/18942011057

What this PR does and why it is needed

@deekshas8 deekshas8 changed the title feat!: Update langchain to v1 alpha feat!: Update langchain to v1 Oct 30, 2025
@deekshas8 deekshas8 marked this pull request as ready for review October 30, 2025 14:35
* origin/main:
  chore: update pnpm transitive dependencies (#1263)
  chore(deps-dev): Bump @types/node from 22.18.13 to 22.19.0 (#1257)
  chore(deps-dev): Bump eslint from 9.39.0 to 9.39.1 (#1261)
  chore: update pnpm transitive dependencies (#1254)
  chore(deps-dev): Bump @sap/cds-dk from 9.4.2 to 9.4.3 (#1251)
Copy link
Contributor

@deekshas8 deekshas8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Left some minor questions. Was the suggestion to add compatibility notes related to this PR?

Copy link
Contributor

@KavithaSiva KavithaSiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from my side, asked few minor questions.

Also, in documentation portal have you checked if there are any zod v3 specific examples, if yes, don't we have to migrate all to zod v4?

commit 4be7379
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Thu Nov 20 15:16:05 2025 +0100

    chore(deps-dev): Bump glob from 12.0.0 to 13.0.0 (#1289)

    Bumps [glob](https://github.com/isaacs/node-glob) from 12.0.0 to 13.0.0.
    - [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
    - [Commits](isaacs/node-glob@v12.0.0...v13.0.0)

    ---
    updated-dependencies:
    - dependency-name: glob
      dependency-version: 13.0.0
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit eb1e0b1
Author: SAP Cloud SDK Bot <[email protected]>
Date:   Thu Nov 20 10:26:27 2025 +0100

    chore: update pnpm transitive dependencies (#1291)

    Co-authored-by: cloud-sdk-js <[email protected]>

commit 6b8c656
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Thu Nov 20 10:06:13 2025 +0100

    chore(deps): Bump glob from 10.4.5 to 12.0.0 (#1288)

commit 1b18386
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Nov 18 09:21:50 2025 +0100

    chore(deps): Bump glob from 10.4.5 to 11.1.0 (#1284)

    Bumps [glob](https://github.com/isaacs/node-glob) from 10.4.5 to 11.1.0.
    - [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
    - [Commits](isaacs/node-glob@v10.4.5...v11.1.0)

    ---
    updated-dependencies:
    - dependency-name: glob
      dependency-version: 11.1.0
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit eeeeb29
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Nov 18 09:21:39 2025 +0100

    chore(deps-dev): Bump glob from 11.0.3 to 12.0.0 (#1280)

    Bumps [glob](https://github.com/isaacs/node-glob) from 11.0.3 to 12.0.0.
    - [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
    - [Commits](isaacs/node-glob@v11.0.3...v12.0.0)

    ---
    updated-dependencies:
    - dependency-name: glob
      dependency-version: 12.0.0
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 9e04c3a
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Nov 18 00:34:24 2025 +0000

    chore(deps-dev): Bump glob from 11.0.3 to 11.1.0 (#1283)

    Bumps [glob](https://github.com/isaacs/node-glob) from 11.0.3 to 11.1.0.
    - [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
    - [Commits](isaacs/node-glob@v11.0.3...v11.1.0)

    ---
    updated-dependencies:
    - dependency-name: glob
      dependency-version: 11.1.0
      dependency-type: direct:development
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 34c466f
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Nov 18 00:30:12 2025 +0000

    chore(deps): Bump @modelcontextprotocol/sdk from 1.21.1 to 1.22.0 (#1279)

    Bumps [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk) from 1.21.1 to 1.22.0.
    - [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases)
    - [Commits](modelcontextprotocol/typescript-sdk@1.21.1...1.22.0)

    ---
    updated-dependencies:
    - dependency-name: "@modelcontextprotocol/sdk"
      dependency-version: 1.22.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 4158a81
Author: David Knaack <[email protected]>
Date:   Mon Nov 17 12:48:46 2025 +0100

    chore(lint): Be more permissive with/ignore generated cjs files (#1277)

    * chore(eslint): Be more permissive with generated cjs files

    * chore(prettier): ignore dist-cjs

    ---------

    Co-authored-by: Zhongpin Wang <[email protected]>

commit 69a76be
Author: David Knaack <[email protected]>
Date:   Mon Nov 17 12:33:19 2025 +0100

    fix: Improve reliability of Spec File Update Workflow (#1278)

commit c155302
Author: sap-ai-sdk <[email protected]>
Date:   Mon Nov 17 10:04:50 2025 +0000

    v2.2.0

commit 347eac1
Author: KavithaSiva <[email protected]>
Date:   Fri Nov 14 13:01:39 2025 +0100

    feat: Embedding client for orchestration (#1135)

commit 3e4bf3d
Author: David Knaack <[email protected]>
Date:   Wed Nov 12 13:42:27 2025 +0100

    fix: Use trusted publishing for the canary workflow (#1272)

    * fix: Use trusted publishing for the canary workflow

    * fix: Add tag input to changeset publish command in canary workflow

    * chore: revert job split

    * fix: bump node.js for trusted publishing

commit a86f855
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Wed Nov 12 00:30:37 2025 +0000

    chore(deps): Bump @sap/xssec from 4.11.1 to 4.11.2 (#1275)

    Bumps @sap/xssec from 4.11.1 to 4.11.2.

    ---
    updated-dependencies:
    - dependency-name: "@sap/xssec"
      dependency-version: 4.11.2
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit d0cb667
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Wed Nov 12 00:30:15 2025 +0000

    chore(deps-dev): Bump @types/node from 22.19.0 to 22.19.1 (#1273)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.19.0 to 22.19.1.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-version: 22.19.1
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit e2c34f3
Author: David Knaack <[email protected]>
Date:   Tue Nov 11 11:32:24 2025 +0100

    feat: Update document-grounding specification (#1269)

    * Update document-grounding based on main

    * Update document-grounding based on main

    * Update document-grounding based on main

    * chore: add changeset

    * chore: split up changeset

    ---------

    Co-authored-by: SAP Cloud SDK Bot <[email protected]>

commit 4c4d283
Author: BrigittaK307 <[email protected]>
Date:   Mon Nov 10 14:40:00 2025 +0200

    chore: Update to new orchestration release (#1262)

    * Update to new orchestration release

    * Ran postgenerate script adapted to windows

    * Minor changes

    * Reverted translation.ts and targetLanguage

    * fix: Changes from lint

    * Solved failing test case

    * Removed applyTo selector

    * Apply suggestion from @ZhongpinWang

    * Apply suggestion from @ZhongpinWang

    ---------

    Co-authored-by: Zhongpin Wang <[email protected]>
    Co-authored-by: cloud-sdk-js <[email protected]>

commit 58464e9
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Mon Nov 10 13:31:17 2025 +0100

    feat: Update ai-api specification (#1189)

    * Update ai-api based on main

    * Add changeset

    * Add release version to changeset

    ---------

    Co-authored-by: SAP Cloud SDK Bot <[email protected]>
    Co-authored-by: Zhongpin Wang <[email protected]>

commit 6100bca
Author: David Knaack <[email protected]>
Date:   Mon Nov 10 11:17:55 2025 +0100

    chore: Update available model list & remove compatibility handling (#1264)

    * chore: Update available model list

    * chore: Remove deprecated `withStructuredOutput`-handling in langchain/openai

    * chore: fix typo

    Co-authored-by: Zhongpin Wang <[email protected]>

    * Apply suggestion from @ZhongpinWang

    ---------

    Co-authored-by: Zhongpin Wang <[email protected]>

commit 49d1a44
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Nov 10 00:38:42 2025 +0000

    chore(deps): Bump @modelcontextprotocol/sdk from 1.20.2 to 1.21.1 (#1268)

    Bumps [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk) from 1.20.2 to 1.21.1.
    - [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases)
    - [Commits](modelcontextprotocol/typescript-sdk@1.20.2...1.21.1)

    ---
    updated-dependencies:
    - dependency-name: "@modelcontextprotocol/sdk"
      dependency-version: 1.21.1
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit f692377
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Nov 10 00:38:15 2025 +0000

    chore(deps): Bump @sap/xssec from 4.11.0 to 4.11.1 (#1265)

    Bumps @sap/xssec from 4.11.0 to 4.11.1.

    ---
    updated-dependencies:
    - dependency-name: "@sap/xssec"
      dependency-version: 4.11.1
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@davidkna-sap
Copy link
Member Author

@KavithaSiva SAP/ai-sdk#299 makes the docs use versioned zod imports. The SDK does not seem to have many direct dependencies on zod, and none for the langchain package itself.

Regarding compatibility of toJsonSchema from langchain:

  • zod/v3: zod v4 and zod v3 always produce the same output
  • zod/v4: If the package version (npm) of the zod peer dependency used by @langchain/core does not much the package that defined the schema properties like description are dropped (e.g.@langchain/core uses zod@4/v4 and receives a zod@3/v4 schema)

I don't have experience with this, but I also noticed that the listed overloads for withStructuredOutput< do not match upstream.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this to ensure there is a notification for future major updates, and added grouping because the packages are tightly coupled.

@ZhongpinWang
Copy link
Contributor

Only thing that we need to update is the @modelcontextprotocol/sdk, but let's do this later once anthropic release a stable 1.23.0

@ZhongpinWang ZhongpinWang merged commit 7c9605d into main Nov 25, 2025
13 checks passed
@ZhongpinWang ZhongpinWang deleted the push-toqoormrvxpy branch November 25, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants