🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
修改合并swe-agent系统提示词后的代码错误
黄伟韬812d6a825d21
diff --git a/metagpt/prompts/di/swe_agent.py b/metagpt/prompts/di/swe_agent.pyindex a737d4a72..7151199ad 100644--- a/metagpt/prompts/di/swe_agent.py+++ b/metagpt/prompts/di/swe_agent.py@@ -239,6 +239,6 @@ Avoid repeating the same command. Instead, please think about the current situatCURRENT_BASH_STATE = """# Output Next StepThe current bash state is:-(Open file: {{open_file}})-(Current directory: {{working_dir}})+(Open file: {open_file})+(Current directory: {working_dir})"""diff --git a/metagpt/roles/di/swe_agent.py b/metagpt/roles/di/swe_agent.pyindex 13fc87c60..e1d2c9613 100644--- a/metagpt/roles/di/swe_agent.py+++ b/metagpt/roles/di/swe_agent.py@@ -53,7 +53,7 @@ class SWEAgent(RoleZero):"""state_output = await self.terminal.run("state")bash_state = json.loads(state_output)- self.cmd_prompt_current_state = CURRENT_BASH_STATE.formate(**bash_state).strip()+ self.cmd_prompt_current_state = CURRENT_BASH_STATE.format(**bash_state).strip()async def _parse_commands_for_eval(self):"""