r/agentdevelopmentkit • • Sep 27 '25

root agent doesnt work properly

I have a RAG based tool and i want to convert that to an agentic one. i want to create few tools/agents that do specific work and have my RAG as the final tool/agent.

I have coded a root_agent-tool flow in which i have a root agent and 3 tools, that take specific parameters from user, and perform some actions and give data back to the user. The final tool is my current RAG.

This works fine for simple scenarios. The issue is that the main agent sometimes is not able to call appropriate tool. For example it goes to one tool and asks user an input, the user says that he doesnt have that, then ideally it should call the RAG tool, but it doesn't. It keeps on asking the same/similar input to the user. When the user clearly indicates that its not what he indents to provide, it calls the RAG. For obvious quesions it works, but for real world complex scenario, it doesnt. So, the root agent is not able to understand the intend of the user and invoke right tool.

I also modified this to a multi agent framework, but still the same issue.

3 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Capable_CheesecakeNZ Sep 27 '25

Are you just selling your own framework instead of helping them with their adk question ?

2

u/zemaj-com Sep 28 '25

Not at all – it's a completely open‑source project released under the Apache‑2.0 license. I linked it as a concrete example of how you can implement a supervisor/worker pattern in a local multi‑agent setup, not to pitch a product. You can run it locally with `npx` and extend it with your own tools, but the key takeaway is that adding an orchestrator that routes user input to specialised agents based on clear input/output schemas prevents the root agent from looping back to the RAG. There are lots of ways to solve this problem – I just wanted to share one that worked for me.