update: SWE Agent

This commit is contained in:
seeker 2024-07-04 16:12:49 +08:00
parent 816a6eadde
commit 51bba81415

View file

@ -29,14 +29,14 @@ class SWEAgent(RoleZero):
run_eval: bool = False
async def _think(self) -> bool:
self._set_system_msg()
self._update_system_msg()
self._format_instruction()
res = await super()._think()
if self.run_eval:
await self._parse_commands_for_eval()
return res
def _set_system_msg(self):
def _update_system_msg(self):
"""
Sets the system message for the SWE agent.