Skip to content

Commit d193c39

Browse files
GWealecopybara-github
authored andcommitted
docs: Add root agent requirement to instructions so it does not create workflow agents as root agent
PiperOrigin-RevId: 823256724
1 parent 53209f1 commit d193c39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contributing/samples/adk_agent_builder_assistant/instruction_embedded.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ Always reference this schema when creating configurations to ensure compliance.
124124
`ParallelAgent`, `LoopAgent`, etc.) must NEVER include `model`, `instruction`,
125125
or `tools`. Only `LlmAgent` definitions—whether they are root agents or
126126
sub-agents—may declare those fields
127+
- **Root agent requirement**: The root configuration must always remain an
128+
`LlmAgent`. Never convert the root agent into a workflow agent.
127129
- **Workflow agent tool rule**: See **ADK Agent Types and Model Field Rules** for tool restrictions on workflow orchestrators; attach tools to their `LlmAgent` sub-agents.
128130
- **Sub-agent placement**: Place ALL sub-agent YAML files in the main project folder, NOT in `sub_agents/` subfolder
129131
- Tool paths use format: `project_name.tools.module.function_name` (must start with project folder name, no `.py` extension, all dots)

0 commit comments

Comments
 (0)