Replies: 1 comment
-
Our approach to this is to have each subagent in a separate folder, so the structure is like this:
To debug the subagents, you can run /subagents/subagent1/agent.py subagent1 = LlmAgent(...)
root_agent = subagent1 But when we import the subagents into our root agent, we would import it by their names for better readability: /agent.py from subagent1.agent import subagent1
root_agent = LlmAgent(
....,
subagents=[subagent1]
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At the end of the agent.py file, the root_agent is the one which has the workflow - sequential , parallel etc . But these workflows have a group of agents where each agent might have sub_agents and tools to them. In most ocassions we want to tune or run agents independently without the workflow( of course , ensuring dependencies are resolved like output_key, state , session etc) . I am not ware if such a mode exits because the output of individual agents is very crucial to make the final output deterministic , is there any approach to do it or can we have some tooling around it.
Could not ask the question in the ADK community call - hence posting it here
Beta Was this translation helpful? Give feedback.
All reactions