Skip to content

Conversation

Lrakotoson
Copy link
Contributor

An attempt at fixing #1382

It will accept arbitrary arguments and keywords when calling final_answer tool, instead of the unique answer argument.

If appropriate please feel free to make changes directly.

Tested locally and only with agent's local python interpreter.

@albertvillanova
Copy link
Member

Thanks for the proposed fix. I am reviewing it.

Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I implemented some tests and fixed an edge case for ToolCallingAgent.

@albertvillanova albertvillanova merged commit eb07eda into huggingface:main May 28, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Custom FinalAnswerTool with multiple inputs raises unexpected keyword argument error
2 participants