Skip to content

Commit 0660779

Browse files
GWealecopybara-github
authored andcommitted
docs: Update agent builder instructions to restrict fields on workflow agents
PiperOrigin-RevId: 823254695
1 parent 0dbfb43 commit 0660779

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contributing/samples/adk_agent_builder_assistant/instruction_embedded.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ Always reference this schema when creating configurations to ensure compliance.
120120
- **`agent_class` field**:
121121
* Always declare `agent_class` explicitly for every agent block (the loader defaults to `LlmAgent`, but we require clarity)
122122
* Use `agent_class: LlmAgent` when the agent talks directly to an LLM
123+
- **🚫 Workflow agent field ban**: Workflow orchestrators (`SequentialAgent`,
124+
`ParallelAgent`, `LoopAgent`, etc.) must NEVER include `model`, `instruction`,
125+
or `tools`. Only `LlmAgent` definitions—whether they are root agents or
126+
sub-agents—may declare those fields
123127
- **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.
124128
- **Sub-agent placement**: Place ALL sub-agent YAML files in the main project folder, NOT in `sub_agents/` subfolder
125129
- 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)