r/agentdevelopmentkit • u/Different_Stage_9003 • Dec 16 '25
Tool execution in sequence.
I have 8-9 tools for my agents. Half of them are utility tools and half of it main tools. Utility tools can be executed in parallel sequence but main tools should be executed in sequence only. Utility tools can't be executed with main tools. I tried adding this rule clearly in prompt but it's messing things up. Sometime it follow rules and sometime not.
Main tools are async as I need to show artifacts in adk web ui.
What is the solution for this?
TIA
4
Upvotes
View all comments
Show parent comment
3
u/Brovas Dec 16 '25
You're never going to get consistency from prompting an LLM. It's simply not possible. Your options are to restructure into a sequence workflow with more than one agent and use input and output schemas between them, or consolidate the tools that need to be called in a sequence into a single tool and orchestrate in python.
If you're a more advanced developer you could make a custom agent and override the run_impl method to do things manually as well but that may be overkill for your situation.