-
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
base: main
Are you sure you want to change the base?
Conversation
@launchdarkly/browser size report |
@launchdarkly/js-sdk-common size report |
@launchdarkly/js-client-sdk-common size report |
@launchdarkly/js-client-sdk size report |
.release-please-manifest.json
Outdated
"packages/shared/common": "2.19.0", | ||
"packages/shared/sdk-server": "2.16.2", | ||
"packages/sdk/server-node": "9.10.2", | ||
"packages/ai-providers/server-ai-langchain": "0.1.0-alpha.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package is new, the rest were sorted alphabetically as there was no order to them.
.map((item: any) => { | ||
if (typeof item === 'string') return item; | ||
if (item.type === 'text') return item.text; | ||
return ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should consider logging the fall through case so someone is at least aware of the type of data that was blanked?
Note
Introduces a new LangChain provider integrating LangChain chat models with the LaunchDarkly AI SDK, including message conversion, metrics extraction, and provider mapping, plus workspace and release config updates.
packages/ai-providers/server-ai-langchain
(@launchdarkly/server-sdk-ai-langchain
):LangChainProvider
implementsAIProvider
withinvokeModel
,createAIMetrics
,convertMessagesToLangChain
,mapProvider
, andcreateLangChainModel
(viainitChatModel
).src/index.ts
; TS/Jest config and tests for message conversion, metrics, and provider mapping.package.json
forpackages/ai-providers/server-ai-langchain
.release-please
:.release-please-manifest.json
entries added for the new package (and reordered others).release-please-config.json
adds prerelease config forpackages/ai-providers/server-ai-langchain
.Written by Cursor Bugbot for commit e2ab19a. This will update automatically on new commits. Configure here.