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]
Update InstantEmptySubmitTestModel example actions format
carlosejimenez7d7760311861
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.pyindex d0de80ba..0b3f1bae 100644--- a/sweagent/agent/models.py+++ b/sweagent/agent/models.py@@ -301,10 +301,18 @@ class InstantEmptySubmitTestModel(AbstractModel):# Need to at least do _something_ to submitif self._action_idx == 0:self._action_idx = 1- action = "DISCUSSION\nLet's reproduce the bug by creating a `reproduce.py` file.\n\n```\ncreate reproduce.py\n```\n"+ action = (+ "DISCUSSION\n"+ "Let's reproduce the bug by creating a `reproduce.py` file.\n\n"+ "```\n"+ "create reproduce.py\n"+ "```\n"+ )elif self._action_idx == 1:self._action_idx = 0- action = "DISCUSSION\nThe task should be resolved, so let's submit the patch.\n\n```\nsubmit\n```\n"+ action = (+ "DISCUSSION\n" "The task should be resolved, so let's submit the patch.\n\n" "```\n" "submit\n" "```\n"+ )self.stats.api_calls += 1return {"message": action}