-
-
Notifications
You must be signed in to change notification settings - Fork 102
[Agent] Passing filtered tools option for internal agent calls #701
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
base: main
Are you sure you want to change the base?
[Agent] Passing filtered tools option for internal agent calls #701
Conversation
Hey, okay, sounds fishy, are you referring to an agent using a different agent as a tool or what is an "internal agent"? |
No, just regular tool calling. Once, one model does not successfully run, the inner agent->call is triggered and at this time, the tools are already resolved. |
@chr-hertel I think this only happens, if we have an event without an result. In this case, the AgentProcessor will call the agent again: |
…anzwilding/symfony-ai into fix/agent-tool-option-passing
# Conflicts: # src/agent/src/Toolbox/AgentProcessor.php
…anzwilding/symfony-ai into fix/agent-tool-option-passing
Do you have a way how I could reproduce this? |
When passing agent options to an internal agent call, the tools array is already resolved and is no longer just an array of strings. As a result, the input processor no longer filters the available agent tools. I’m not sure if this behavior is intentional, but in my case it causes issues: with each internal call, all tools suddenly become available, which confuses the model.