feat: Add LangChain Provider for AI SDK#941
Merged
Merged
Conversation
Contributor
|
@launchdarkly/browser size report |
Contributor
|
@launchdarkly/js-sdk-common size report |
Contributor
|
@launchdarkly/js-client-sdk-common size report |
Contributor
|
@launchdarkly/js-client-sdk size report |
jsonbailey
commented
Oct 3, 2025
keelerm84
approved these changes
Oct 6, 2025
andrewklatzke
approved these changes
Oct 9, 2025
We may include these in the future but they don't need to be added now and not in the langchain PR.
This is debatable since the model did produce a result. Returning not success allows users to rollback an invalid config that generates an unsupported response so we are taking a more cautious approach.
Merged
jsonbailey
pushed a commit
that referenced
this pull request
Oct 13, 2025
🤖 I have created a release *beep* *boop* --- <details><summary>server-sdk-ai-langchain: 0.1.0</summary> ## 0.1.0 (2025-10-13) ### Features * Add LangChain Provider for AI SDK ([#941](#941)) ([9cbfb87](9cbfb87)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Release `@launchdarkly/server-sdk-ai-langchain` 0.1.0, adding the LangChain Provider and updating versions/manifest. > > - **AI Providers**: > - **`packages/ai-providers/server-ai-langchain`**: > - Version bump to `0.1.0` in `package.json` and `.release-please-manifest.json`. > - Add `CHANGELOG.md` documenting the new LangChain Provider feature. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 51a8a32. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Merged
jsonbailey
added a commit
that referenced
this pull request
Oct 14, 2025
🤖 I have created a release *beep* *boop* --- <details><summary>server-sdk-ai-langchain: 0.1.0</summary> ## [0.1.0](server-sdk-ai-langchain-v0.1.0...server-sdk-ai-langchain-v0.1.0) (2025-10-14) ### Features * Add LangChain Provider for AI SDK ([#941](#941)) ([9cbfb87](9cbfb87)) ### Bug Fixes * Make unit test less brittle and add CI ([#953](#953)) ([a2236a9](a2236a9)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Updates `packages/ai-providers/server-ai-langchain/CHANGELOG.md` to add the 0.1.0 entry with a bug fixes section and adjusted date. > > - **Changelog updates** (`packages/ai-providers/server-ai-langchain/CHANGELOG.md`): > - Add `0.1.0 (2025-10-13)` entry. > - Add **Bug Fixes** section noting unit test stability and CI addition. > - Retain feature entry for LangChain Provider. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 1937cb9. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jason Bailey <jbailey@launchdarkly.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Introduces
packages/ai-providers/server-ai-langchainwith aLangChainProviderintegrating LaunchDarkly AI SDK with LangChain, plus CI/release wiring.packages/ai-providers/server-ai-langchain:LangChainProvider(src/LangChainProvider.ts) withinvokeModel,convertMessagesToLangChain,createAIMetrics,mapProvider, andcreateLangChainModel(viainitChatModel).src/index.ts.__tests__/LangChainProvider.test.ts), Jest config, TS configs, and package metadata..github/workflows/release-please.ymlto add output andrelease-server-ai-langchainjob..release-please-manifest.jsonandrelease-please-config.json(pre-release, bump-minor-pre-major).package.json.Written by Cursor Bugbot for commit ea659d4. This will update automatically on new commits. Configure here.