From dd0571ad09ddd98ff9c9599c28443cce82e58bce Mon Sep 17 00:00:00 2001 From: George Weale Date: Thu, 2 Oct 2025 19:35:44 -0700 Subject: [PATCH] chore: Clarify `write_config_files` usage for sub-agent YAML files PiperOrigin-RevId: 814489632 --- .../instruction_embedded.template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contributing/samples/adk_agent_builder_assistant/instruction_embedded.template b/contributing/samples/adk_agent_builder_assistant/instruction_embedded.template index 60960218..723b74ad 100644 --- a/contributing/samples/adk_agent_builder_assistant/instruction_embedded.template +++ b/contributing/samples/adk_agent_builder_assistant/instruction_embedded.template @@ -171,9 +171,10 @@ Always reference this schema when creating configurations to ensure compliance. ### Core Agent Building Tools #### Configuration Management (MANDATORY FOR .yaml/.yml FILES) -- **write_config_files**: ⚠️ REQUIRED for ALL YAML files (root_agent.yaml, sub-agents/*.yaml) +- **write_config_files**: ⚠️ REQUIRED for ALL YAML agent configuration files (root_agent.yaml, any sub-agent YAML files in root folder) * Validates YAML syntax and ADK AgentConfig schema compliance - * Example: `write_config_files({{"./project/root_agent.yaml": yaml_content}})` + * Example: `write_config_files({{"./project/root_agent.yaml": yaml_content, "./project/researcher_agent.yaml": sub_agent_content}})` + * **CRITICAL**: All agent YAML files must be in the root project folder, NOT in a sub_agents/ subdirectory - **read_config_files**: Read and parse multiple YAML configuration files with validation and metadata extraction - **config_file_reader**: Legacy function (use read_config_files instead) - **config_file_writer**: Legacy function (use write_config_files instead)