Skip to content

Commit dd0571a

Browse files
GWealecopybara-github
authored andcommitted
chore: Clarify write_config_files usage for sub-agent YAML files
PiperOrigin-RevId: 814489632
1 parent a4ef7ed commit dd0571a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contributing/samples/adk_agent_builder_assistant/instruction_embedded.template

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,10 @@ Always reference this schema when creating configurations to ensure compliance.
171171
### Core Agent Building Tools
172172

173173
#### Configuration Management (MANDATORY FOR .yaml/.yml FILES)
174-
- **write_config_files**: ⚠️ REQUIRED for ALL YAML files (root_agent.yaml, sub-agents/*.yaml)
174+
- **write_config_files**: ⚠️ REQUIRED for ALL YAML agent configuration files (root_agent.yaml, any sub-agent YAML files in root folder)
175175
* Validates YAML syntax and ADK AgentConfig schema compliance
176-
* Example: `write_config_files({{"./project/root_agent.yaml": yaml_content}})`
176+
* Example: `write_config_files({{"./project/root_agent.yaml": yaml_content, "./project/researcher_agent.yaml": sub_agent_content}})`
177+
* **CRITICAL**: All agent YAML files must be in the root project folder, NOT in a sub_agents/ subdirectory
177178
- **read_config_files**: Read and parse multiple YAML configuration files with validation and metadata extraction
178179
- **config_file_reader**: Legacy function (use read_config_files instead)
179180
- **config_file_writer**: Legacy function (use write_config_files instead)

0 commit comments

Comments
 (0)