Replies: 1 comment 1 reply
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: Agent hierarchy in ADK is a foundational concept for structuring your system and guiding the primary, LLM-driven delegation from parent to child. However, it's not a strict limitation. A custom tool can explicitly transfer control to any named agent (including peers), which is likely the behavior you're observing. The hierarchy's main purposes are to define scope, enable orchestration, and provide clear paths for escalating control back to a parent. Hello! That's an excellent set of questions about how agent hierarchy and control flow work in ADK. Here’s a breakdown based on the documentation. Can each agent hand-off to every other agent?Not by default, but it is possible. ADK provides several mechanisms for transferring control, each with different rules:
What's the purpose of the hierarchy?While the
Is hand-off restricted to peers and maybe parents?To summarize the points above, the restrictions depend on how the hand-off is initiated:
So, your observation is correct. The hierarchy provides the main structure, but ADK offers the flexibility to bypass it for specific use cases through tool-driven actions. [1] https://google.github.io/adk-docs/agents/multi-agents/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Assume I have a hierarchy with a conductor agent that is the parent of multiple sub-agents. All agents are of type
LlmAgent. I have noticed that the sub-agents can hand-off control between themselves. I always assumed that control is handed back to the conductor agent, but as it turns out that's not the case.This raised the following questions:
Thanks a lot for your inputs!
Beta Was this translation helpful? Give feedback.
All reactions