-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
core[Component] This issue is related to the core interface and implementation[Component] This issue is related to the core interface and implementation
Description
Hi Everyone ,
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
Metadata
Metadata
Assignees
Labels
core[Component] This issue is related to the core interface and implementation[Component] This issue is related to the core interface and implementation