From deb8bb6b2910332fc017923eeb1712db84dd16d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BC=9F=E9=9F=AC?= Date: Thu, 19 Sep 2024 19:25:27 +0800 Subject: [PATCH] fix:command exists in the code file --- metagpt/roles/di/engineer2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/roles/di/engineer2.py b/metagpt/roles/di/engineer2.py index 6313c5b33..3d80e6a26 100644 --- a/metagpt/roles/di/engineer2.py +++ b/metagpt/roles/di/engineer2.py @@ -113,7 +113,7 @@ class Engineer2(RoleZero): command_output += await super()._run_special_command(cmd) return command_output - async def write_new_code(self, path: str, instruction: str = "") -> str: + async def write_new_code(self, path: str, instruction: str = "Write code for the current file.") -> str: """Write a new code file. Args: