mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-10 16:22:37 +02:00
修改合并swe-agent系统提示词后的代码错误
This commit is contained in:
parent
d788722bc2
commit
812d6a825d
2 changed files with 3 additions and 3 deletions
|
|
@ -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})
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue