-
Notifications
You must be signed in to change notification settings - Fork 30
feat: Add LangChain Provider for AI SDK #941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@launchdarkly/browser size report |
@launchdarkly/js-sdk-common size report |
@launchdarkly/js-client-sdk-common size report |
@launchdarkly/js-client-sdk size report |
packages/ai-providers/server-ai-langchain/src/LangChainTrackedChat.ts
Outdated
Show resolved
Hide resolved
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.
🤖 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>
🤖 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 <[email protected]>
Note
Introduces
packages/ai-providers/server-ai-langchain
with aLangChainProvider
integrating 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.yml
to add output andrelease-server-ai-langchain
job..release-please-manifest.json
andrelease-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.