langchain
75776e4a - core[patch]: In unit tests, use `_schema()` instead of BaseModel.schema() (#24930)

Commit
1 year ago
core[patch]: In unit tests, use `_schema()` instead of BaseModel.schema() (#24930) This PR introduces a module with some helper utilities for the pydantic 1 -> 2 migration. They're meant to be used in the following way: 1) Use the utility code to get unit tests pass without requiring modification to the unit tests 2) (If desired) upgrade the unit tests to match pydantic 2 output 3) (If desired) stop using the utility code Currently, this module contains a way to map `schema()` generated by pydantic 2 to (mostly) match the output from pydantic v1.
Author
Parents
Loading