Repository navigation
Conversation
|
@skulitom is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @skulitom, 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 |
|
Thanks for signing the CLA, @skulitom! 🎉 This PR is now ready for review again and the reviewer has been re-assigned. |
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
anakin87
left a comment
There was a problem hiding this comment.
Thanks for the contribution.
See #13411 (comment)
|
See #13411 (comment) Thanks again |
Related Issues
Fixes #13411
Proposed Changes
Toolcurrently rejectsinputs_from_state={"tenant_id": "tenant"}for a function such assearch(query, **context)unlesstenantis also in the JSON schema. The function accepts that keyword, but construction fails before an agent can invoke it.Treat signatures with
VAR_KEYWORDas accepting unrestricted keyword names. This allows state-only arguments to stay out of the model-facing schema. Validation for explicit signatures and non-string mapping values remains in place. Update the helper docstring and include a release note.How did you test it?
Using Hatch on WSL Ubuntu 22.04 / Python 3.12.15:
ValueError, then pass with the fix. They cover sync/native async functions with empty/partial schemas and successful invocation.hatch run test:unit test/tools test/components/agents test/utils/test_callable_serialization.py --cov-report= --tb=short -q: 670 passed, 2 skipped, 18 deselected. The skips require Python 3.15; provider integration tests are deselected.hatch run test:types haystack/tools/tool.py test/tools/test_tool.py: passed.hatch run fmt-check haystack/tools/tool.py test/tools/test_tool.py: passed.hatch run reno lint .: passed.Notes for the reviewer
The existing preference for the synchronous callable when both callables are provided is unchanged.
ComponentToolcontinues to validate against component input sockets through its override.AI disclosure: Codex generated the implementation, regression tests, release note, and this description, and ran the local validation above.
Checklist