修改合并swe-agent系统提示词后的代码错误

This commit is contained in:
黄伟韬 2024-08-09 20:47:41 +08:00
parent d788722bc2
commit 812d6a825d
2 changed files with 3 additions and 3 deletions

View file

@ -239,6 +239,6 @@ Avoid repeating the same command. Instead, please think about the current situat
CURRENT_BASH_STATE = """
# Output Next Step
The current bash state is:
(Open file: {{open_file}})
(Current directory: {{working_dir}})
(Open file: {open_file})
(Current directory: {working_dir})
"""

View file

@ -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):
"""