Question on _find_agent_to_run #3733
Replies: 1 comment
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: The Hello! That's a great question that gets to the core of how the ADK orchestrates tasks. Let me break down the logic for you. The Agent Development Kit (ADK) operates on an event-driven "Reason-Act" loop. [5, 12] In this loop, an agent:
When a tool is called, the following happens:
This is where your question comes in. The orchestrator, in functions like Why is this useful? This mechanism allows for powerful, multi-step agent behaviors:
So, while it seems counterintuitive at first, treating a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to go through and understand the code of adk-python to help in contribution. I am having difficulty in understanding the logic of _find_agent_to_run function - [https://github.com/google/adk-python/blob/0094eea3cadf5fe2e960cc558e467dd2131de1b7/src/google/adk/runners.py#L891](code link)
Specifically the qualified agent doc string, how can the "last user message" be a function response to a function call
Beta Was this translation helpful? Give feedback.
All reactions