Repository navigation
chore!: declare pydantic>=2.11 as the minimum supported version - #13286
Conversation
pydantic was unbounded. On 2.5 through 2.10 the JSON schemas that Tool/ComponentTool generate for dataclass parameters differ from what the code and tests expect (allOf wrappers around $ref, missing required lists on older releases); test/tools/test_parameters_schema_utils.py and test_component_tool.py only pass from 2.11 on.
|
@hazelxue is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
pydantic 2.11 requires pydantic-core 2.33, which ships no cp314/cp315 wheels, so the declared floor could not be installed on Python 3.14 and 3.15. 2.12 is the first release with cp314 wheels and 2.14 the first with cp315 wheels. Also file the release note under upgrade and name the APIs that build tool parameter schemas. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Thank you @hazelxue and congratulations on your first merged PR in haystack! |
pydantic>=2.11 as the minimum supported versionpydantic>=2.11 as the minimum supported version
|
Hi @hazelxue, thanks a lot for your contribution! 🙏 We noticed that the Contributor License Agreement (CLA) check ( To get your PR reviewed, please sign the CLA via the link in the |
Pull request was converted to draft
|
Thanks for signing the CLA, @hazelxue! 🎉 This PR is now ready for review again and the reviewer has been re-assigned. |
Related Issues
Proposed Changes:
pydanticis listed without a lower bound. Resolving the project at the lowest allowed versions (Python 3.12,uv pip install --resolution lowest-direct) gives pydantic 2.5.0, and on every pydantic before 2.11 the JSON schemas thatTool/ComponentToolbuild for dataclass parameters come out differently from what the code and tests expect:test/tools/test_parameters_schema_utils.py+test_component_tool.pyThe differences are
allOfwrappers around$refwhen a description is attached and, on the older releases, missingrequiredlists in$defs, so an environment that resolved to an old pydantic silently produced different tool schemas. This declares the floor the code already needs and adds a release note. No code change.Rest of the unit suite at pydantic 2.11.0 (
-m "not integration", Windows, no torch/jq installed): 6759 passed; the remaining failures are torch- and jq-dependent tests plus two Windows mime/notebook ones, unrelated to this change.How did you test it?
Notes for the reviewer
If you would rather pin a different floor (e.g. the version your CI matrix actually installs), happy to adjust.
Checklist
chore:releasenotes/notes/