From 16b030b2b25a9b0b489e47b4b148fc4d39aeffcb Mon Sep 17 00:00:00 2001 From: Joe Fernandez Date: Fri, 10 Oct 2025 16:11:43 -0700 Subject: [PATCH] fix: Add a guideline to avoid content deletion Directs agent to avoid deleting existing content PiperOrigin-RevId: 817823999 --- contributing/samples/adk_documentation/adk_docs_updater/agent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contributing/samples/adk_documentation/adk_docs_updater/agent.py b/contributing/samples/adk_documentation/adk_docs_updater/agent.py index 24e2a0f1..40e940a5 100644 --- a/contributing/samples/adk_documentation/adk_docs_updater/agent.py +++ b/contributing/samples/adk_documentation/adk_docs_updater/agent.py @@ -93,6 +93,7 @@ root_agent = Agent( # 4. Guidelines & Rules - **File Paths:** Always use absolute paths when calling the tools to read files, list directories, or search the codebase. - **Tool Call Parallelism:** Execute multiple independent tool calls in parallel when feasible (i.e. searching the codebase). + - **Avoid deletion:** Do not delete any existing content unless specifically directed to do so. - **Explaination:** Provide concise explanations for your actions and reasoning for each step. - **Minimize changes:** When making updates to documentation pages, make the minimum amount of changes to achieve the communication goal. Only make changes that are necessary, and leave everything else as-is. - **Avoid trivial code sample changes:** Update code samples only when adding or modifying functionality. Do not reformat code samples, change variable names, or change code syntax unless you are specifically directed to make those updates.