Skip to content
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

feat(js): Expose light interface for tracing client #1266

Merged
merged 4 commits into from
Nov 27, 2024
Merged

Conversation

jacoblee93
Copy link
Collaborator

@jacoblee93 jacoblee93 commented Nov 27, 2024

Allows for interoperability in LangChain when initializing tracer with clients if different LangSmith versions are resolved:

import { Client } from "langsmith";
// `@langchain/core` may have a different internal version of `langsmith`
import { LangChainTracer } from "@langchain/core/tracers";

const client = new Client();

const tracer = new LangChainTracer({
  client, // Will type error if resolutions are bad
});

@jacoblee93 jacoblee93 requested a review from hinthornw November 27, 2024 15:54
@jacoblee93 jacoblee93 merged commit 6f71cb7 into main Nov 27, 2024
11 checks passed
@jacoblee93 jacoblee93 deleted the jacob/interface branch November 27, 2024 19:09
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.

2 participants