-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[BUG] Error when using ToolCallingAgent as manager #606
Comments
I managed to track the line triggering the exception to: https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L298: And the reason is that https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L700
So obviously this has to be related to the prompt, and once I checked inside https://github.com/huggingface/smolagents/blob/main/src/smolagents/prompts/toolcalling_agent.yaml the easiest way to fix this by simple changing the argument's name in the |
…ent.yaml states that the argument to be given in the call is called 'request' and not 'task'. Name also changed on agent test
…ent.yaml states that the argument to be given in the call is called 'request' and not 'task'. Name also changed on agent test
Hi everyone, I’ve just submitted a PR #618 that addresses this bug. Looking forward to any feedback or suggestions |
…ent.yaml states that the argument to be given in the call is called 'request' and not 'task'. Name also changed on agent test
…ent.yaml states that the argument to be given in the call is called 'request' and not 'task'. Name also changed on agent test
Describe the bug
Error in calling team member
Code to reproduce the error
Error logs (if any)
Expected behavior
A clear and concise description of what you expected to happen.
Packages version:
1.8
Additional context
I am trying to create a manger agent of type ToolCallingAgent, by simply modifying the multi-agents example available on the docs, but instead of a CodeAgent I use the ToolCallingAgent as the manager agent.
The text was updated successfully, but these errors were encountered: