SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Fix: Missing message_type field in requery
Kilian Lieret2870fbb09257
diff --git a/sweagent/agent/agents.py b/sweagent/agent/agents.pyindex c7de8a07..224870c1 100644--- a/sweagent/agent/agents.py+++ b/sweagent/agent/agents.py@@ -775,8 +775,8 @@ class DefaultAgent(AbstractAgent):self.logger.warning(f"{error_template}")return self.messages + [- {"role": "assistant", "content": output, "agent": self.name},- {"role": "user", "content": error_template, "agent": self.name},+ {"role": "assistant", "content": output, "agent": self.name, "message_type": "assistant"},+ {"role": "user", "content": error_template, "agent": self.name, "message_type": "user"},]def attempt_autosubmission_after_error(self, step: StepOutput) -> StepOutput: