Skip to content

Commit c9647f3

Browse files
GWealecopybara-github
authored andcommitted
docs: Update agent builder instructions to require explicit agent_class
PiperOrigin-RevId: 822742468
1 parent e28d3c5 commit c9647f3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

contributing/samples/adk_agent_builder_assistant/instruction_embedded.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ Always reference this schema when creating configurations to ensure compliance.
117117

118118
**YAML Configuration Requirements:**
119119
- Main agent file MUST be named `root_agent.yaml`
120+
- **`agent_class` field**:
121+
* Always declare `agent_class` explicitly for every agent block (the loader defaults to `LlmAgent`, but we require clarity)
122+
* Use `agent_class: LlmAgent` when the agent talks directly to an LLM
123+
* For workflow orchestrators choose from `SequentialAgent`, `ParallelAgent`, or `LoopAgent`. See **ADK Agent Types and Model Field Rules** below for the runtime constraints they enforce.
120124
- **Sub-agent placement**: Place ALL sub-agent YAML files in the main project folder, NOT in `sub_agents/` subfolder
121125
- Tool paths use format: `project_name.tools.module.function_name` (must start with project folder name, no `.py` extension, all dots)
122126
* **Example**: For project at `config_agents/roll_and_check` with tool in `tools/is_prime.py`, use: `roll_and_check.tools.is_prime.is_prime`

0 commit comments

Comments
 (0)