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
feat: refactor ADK CLI server to support nested agents in dev mode and simplify API
This change introduces `NestedAgentLoader` for the `adk web` command, enabling recursive discovery of agents within subdirectories and using dot-separated names (e.g., `folder.app`). The production `adk api_server` continues to use the flat `AgentLoader`
Co-authored-by: Yifan Wang <wanyif@google.com>
PiperOrigin-RevId: 938188643
In the local development server (`adk web` / `dev_server`), ADK supports deeply nested agent directories (e.g., sub-packages or structured folders).
51
+
52
+
-**Recursive Discovery**: The loader recursively walks directories to discover all valid agent applications containing an `agent.py`, `root_agent.yaml`, or `__init__.py` file.
53
+
-**Dot Naming Convention**: Nested agents are represented in the system and referenced inside the Web UI using a standard dot-separated namespace notation (e.g., `agent_samples.empty_agent` or `workflow_samples.fan_out_fan_in`).
54
+
-**Isolation**: Production environments (`adk api_server`) only support flat single-level agent directories for maximum security and isolation.
55
+
48
56
## Local Development & Debugging
49
57
50
58
Interactive UI (adk web): This is our primary debugging tool. It's a decoupled system:
0 commit comments