-
Notifications
You must be signed in to change notification settings - Fork 20.3k
chore(core): Update LangChainTracer to use Pydantic v2 methods #34541
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: master
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #34541 will not alter performanceComparing
|
| res.key, | ||
| score=res.score, | ||
| value=res.value, | ||
| value=res.value, # type: ignore[arg-type] |
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.
is this related to pydantic migration or masking a separate issue?
| if hasattr(get_env_var, "cache_clear"): | ||
| get_env_var.cache_clear() # type: ignore[attr-defined] |
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.
is this a separate langsmith API change?
Description
In LangSmith 0.6.0, we update the Run and RunTree object to use pydantic v2. This PR adds support for this change by using the correct method for langsmith >= 0.6.0 pydantic >= v2. It has backwards compatibility for older sdk versions as well with deprecated methods