You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agent Config : Sub Agents not working on Windows 11 #3062
I am on Windows 11 and trying out Agent Config feature but I am not able run adk web with sub agents.
The below code from root_agent.yaml from the examples given work only if the sub agents lines are commented.
Without commenting them , I will get the below error.
Any idea ?
TIA
"ValueError: No root_agent found for 'my_agent2'. Searched in 'my_agent2.agent.root_agent', 'my_agent2.root_agent' and 'my_agent2/root_agent.yaml'. Ensure 'D:<folder path>\my_agent2' is structured correctly, an .env file can be loaded if present, and a root_agent is exposed."
# yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json
name: root_agent
description: A helpful tutor for math and coding questions.
instruction: |
follow these steps:
1. If the user asks about programming or coding, delegate to the code_tutor_agent.
2. If the user asks about math concepts or problems, delegate to the math_tutor_agent.
3. If neither, respond that you can only help with coding or math questions.
# sub_agents:
# - config_path: code_tutor_agent.yaml
# - config_path: math_tutor_agent.yaml
model: gemini-2.5-flash
Activity
hangfei commentedon Oct 27, 2025
merge to main issue and closing this one.