-
|
Hi, |
Beta Was this translation helpful? Give feedback.
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.
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
FunctionTool, including a sub-agent wrapped as a tool.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:
Asyn…