Skip to content
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

fix(smolagents): use correct smolagents tool schema extraction function #1236

Merged
merged 3 commits into from
Jan 29, 2025

Conversation

andstor
Copy link
Contributor

@andstor andstor commented Jan 29, 2025

huggingface/smolagents#280 renamed get_json_schema to get_tool_json_schema.
#1229 got confused with a helper function get_json_schema added in huggingface/smolagents#253.
This causes an issue in ToolCallingAgent, although it coincidentally works in CodeAgent.

This PR uses the correct function for proper tool schema extraction.

@andstor andstor requested a review from a team as a code owner January 29, 2025 05:27
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 29, 2025
Copy link
Contributor

github-actions bot commented Jan 29, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@andstor
Copy link
Contributor Author

andstor commented Jan 29, 2025

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jan 29, 2025
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jan 29, 2025
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Jan 29, 2025
@axiomofjoy
Copy link
Contributor

Thanks @andstor! CI is red, but will fix on your final PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants