Replies: 1 comment
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: Yes, the ADK supports parallel tool calls for sub-agents. To enable this, you must ensure your sub-agents are implemented as asynchronous tools. Hello! That's an excellent question about architecting multi-agent systems with ADK. ADK is designed to improve performance by automatically running multiple tool calls in parallel whenever the model requests them in a single turn. This applies to any The key requirement to unlock this parallel execution is to build your tools for asynchronous operation [1]. Here’s how you can apply this to your scenario:
Example The ADK includes a sample agent specifically to demonstrate and test parallel function execution. This sample is a great reference for seeing how to structure You can find this sample and detailed explanations in the ADK repository [2]. It shows the performance difference between parallel and sequential execution and provides a clear pattern for implementation. By ensuring your sub-agent tools are fully asynchronous, you should be able to achieve the parallel execution you're looking for. [1] https://google.github.io/adk-docs/tools/performance/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have built a multi-agent system where there's a root agent and it has sub-agents with generator and reviewer.
The root agent to use these subagents as FunctionTool, now i want my root agent to call these tools in parallelly.
since these are not just python logic functions/ API functions....rather it's a agent as a function to the root agent.
So for this case how can i implement the tool call parallelly?
Beta Was this translation helpful? Give feedback.
All reactions