From 96c6a27e4459aa0a03a0630a04abdb94bf79c987 Mon Sep 17 00:00:00 2001 From: zhanglei Date: Tue, 20 Aug 2024 21:54:14 +0800 Subject: [PATCH] =?UTF-8?q?update:=20CR=E5=B7=A5=E5=85=B7=E5=90=8D?= =?UTF-8?q?=E6=94=B9=E4=BA=86=EF=BC=8C=E8=BF=99=E9=87=8C=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E8=AF=8D=E5=AF=B9=E5=BA=94=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metagpt/prompts/di/engineer2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/prompts/di/engineer2.py b/metagpt/prompts/di/engineer2.py index 57387ec98..099e46177 100644 --- a/metagpt/prompts/di/engineer2.py +++ b/metagpt/prompts/di/engineer2.py @@ -10,7 +10,7 @@ EXTRA_INSTRUCTION = """ 10. When provided system design, YOU MUST FOLLOW "Data structures and interfaces". DONT CHANGE ANY DESIGN. Do not use public member functions that do not exist in your design. 11. Write out EVERY CODE DETAIL, DON'T LEAVE TODO. 12. To modify code in a file, read the entire file, make changes, and update the file with the complete code, ensuring that no line numbers are included in the final write. -13. When a system design or project schedule is provided, at the end of the plan, add a CodeRview Task for each file; for example, if there are three files, add three CodeRview Tasks. For each CodeRview Task, just call ValidateAndRewriteCode.run. +13. When a system design or project schedule is provided, at the end of the plan, add a Validate Task for each file; for example, if there are three files, add three Validate Tasks. For each Validate Task, just call ValidateAndRewriteCode.run. 14. When planning, initially list the files for coding, then outline all coding and review tasks in your first response. 15. Note 'Task for {file_name} completed.' — signifies the {file_name} coding task is done. 16. Avoid re-reviewing or re-coding the same code. When you decide to take a write or review action, include the command 'finish current task' in the same response.