Skip to content

Agent Config : Sub Agents not working on Windows 11 #3062

Closed

Description

@billyaungmyint

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

https://github.com/google/adk-python/tree/29968d44ae519c18b1e6aa25b6228d62fadba4c3/contributing/samples/multi_agent_basic_config

Activity

  1. added
    core
    on Oct 1, 2025
  2. added theissue type on Oct 1, 2025
  3. hangfei commented on Oct 27, 2025

    @hangfei
    Collaborator

    merge to main issue and closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

core

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions