Skip to content

Conversation

jsonbailey
Copy link
Contributor

@jsonbailey jsonbailey commented Oct 3, 2025

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.

  • AI Providers:
    • New package packages/ai-providers/server-ai-langchain (@launchdarkly/server-sdk-ai-langchain):
      • LangChainProvider implements AIProvider with invokeModel, createAIMetrics, convertMessagesToLangChain, mapProvider, and createLangChainModel (via initChatModel).
      • Public export in src/index.ts; TS/Jest config and tests for message conversion, metrics, and provider mapping.
  • Repo config:
    • Add workspace entry in root package.json for packages/ai-providers/server-ai-langchain.
    • Update release-please:
      • .release-please-manifest.json entries added for the new package (and reordered others).
      • release-please-config.json adds prerelease config for packages/ai-providers/server-ai-langchain.

Written by Cursor Bugbot for commit e2ab19a. This will update automatically on new commits. Configure here.

Copy link
Contributor

github-actions bot commented Oct 3, 2025

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 169118 bytes
Compressed size limit: 200000
Uncompressed size: 789399 bytes

Copy link
Contributor

github-actions bot commented Oct 3, 2025

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 24988 bytes
Compressed size limit: 26000
Uncompressed size: 122411 bytes

Copy link
Contributor

github-actions bot commented Oct 3, 2025

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 17636 bytes
Compressed size limit: 20000
Uncompressed size: 90259 bytes

Copy link
Contributor

github-actions bot commented Oct 3, 2025

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 21721 bytes
Compressed size limit: 25000
Uncompressed size: 74698 bytes

"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",
Copy link
Contributor Author

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 '';
Copy link
Member

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?

@jsonbailey jsonbailey marked this pull request as ready for review October 7, 2025 17:37
@jsonbailey jsonbailey requested a review from a team as a code owner October 7, 2025 17:37
cursor[bot]

This comment was marked as outdated.

@jsonbailey jsonbailey requested a review from ctawiah October 7, 2025 20:55
cursor[bot]

This comment was marked as outdated.

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.

3 participants