-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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[langsmith]: transparent handoff between @traceable HOF and LangChain #5339
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
b651f41
to
a648854
Compare
- Traceable to LangChain: add the entire tree of RunTrees into the BaseTracer `runMap`, assign the `_parentRunId` to the callback manager - LangChain to Traceable: the `RunnableTraceable` invokes the function without calling `*WithConfig`, avoiding unwanted callback invocation **Verifying package manager behaviour** Exposed the LangChain utilities + added `@langchain/core` as an optional dependency to allow supporting older versions of LangChain. - [x] Yarn 1.x: does not install the `@langchain/core`, not included in package-lock.json - [X] PNPM: does not install `@langchain/core`, included in package-lock.json - [X] NPM: does not install `@langchain/core`, included in package-lock.json - [X] Bun: does not install `@langchain/core`, included in package-lock.json - [X] Deno: does not install `@langchain/core` Upstream PR which implements similar functionality can be seen in langchain-ai/langchainjs#5339 Closes #598
b5d4410
to
0abfa3c
Compare
@@ -57,6 +60,40 @@ export class LangChainTracer | |||
getEnvironmentVariable("LANGCHAIN_SESSION"); |
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.
Hey there! I noticed that the recent code changes in tracer_langchain.ts
explicitly access an environment variable using the getEnvironmentVariable
function. I've flagged this for your review to ensure it aligns with our environment variable usage guidelines. Keep up the great work!
d81ea39
to
b849f2d
Compare
@traceable
and LangChain