You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question: Use N parallel tools/AgentTools deterministicly, determined at runtime #1351
Does anyone know what is the recommended strategy to run N parallel web searches without knowing N in advance ? I want to maintain the standard Google ADK agent structure (root_agent) so I can use it in the Web UI. I need the parallelism because latency is critical.
Example: the user gives a list of N names. The agent (or deterministic workflow) runs N parallel web searches, one per person.
Not yet 😓 A native feature or guide for it would be great.
I found this tutorial on the OpenAI cookbook. I will give it a shot next time I work on this and report back if it works. Otherwise, I'm still open to suggestions
Activity
kanlanc commentedon Jun 13, 2025
Were you able to figure this out?
rayanehmi commentedon Jun 16, 2025
Not yet 😓 A native feature or guide for it would be great.
I found this tutorial on the OpenAI cookbook. I will give it a shot next time I work on this and report back if it works. Otherwise, I'm still open to suggestions
surfiniaburger commentedon Jun 18, 2025
use a custom agent and add the parallel agent in the custom agent. in the run async method you can define a python script to run for N times.
surfiniaburger commentedon Jun 18, 2025
Or preferable define the N condition in a python function and add it to a custom agent. No parallel agent explicitly required.