langsmith-sdk icon indicating copy to clipboard operation
langsmith-sdk copied to clipboard

chore: upgrade python sdk to pydantic v2

Open darinkishore opened this issue 3 months ago • 3 comments

Summary

  • bump the runtime requirement to Pydantic v2
  • migrate schemas, validators, and helpers off v1-only APIs
  • update client utilities and tests so evaluation results still serialize cleanly

Testing

  • make format
  • make lint
  • make tests

Notes

  • Warnings about pydantic v2 old .dict() / .json() helpers are there; they don't impact functionality .

Fixes #2029 .

darinkishore avatar Sep 18 '25 20:09 darinkishore

@codex fix comments

darinkishore avatar Sep 18 '25 21:09 darinkishore

requesting reviewers please. also currently running this PR in prod, no issues yet.

darinkishore avatar Sep 19 '25 20:09 darinkishore