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]
Better messages for InstantEmptySubmitTestModel
Kilian Lieret30489f6fa4a3
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.pyindex f633cb5d..6c84dde9 100644--- a/sweagent/agent/models.py+++ b/sweagent/agent/models.py@@ -820,10 +820,10 @@ class InstantEmptySubmitTestModel(BaseModel):# Need to at least do _something_ to submitif self._action_idx == 0:self._action_idx = 1- action = "DISCUSSION\nblah blah\n\n```\ncreate reproduce.py\n```\n"+ action = "DISCUSSION\nLet's reproduce the bug by creating a `reproduce.py` file.\n\n```\ncreate reproduce.py\n```\n"elif self._action_idx == 1:self._action_idx = 0- action = "DISCUSSION\nblargh glargh\n\n```\nsubmit\n```\n"+ action = "DISCUSSION\nThe task should be resolved, so let's submit the patch.\n\n```\nsubmit\n```\n"return actiondiff --git a/sweagent/frontend/src/components/controls/LRunControl.js b/sweagent/frontend/src/components/controls/LRunControl.jsindex ec04e6e5..21588fb0 100644--- a/sweagent/frontend/src/components/controls/LRunControl.js+++ b/sweagent/frontend/src/components/controls/LRunControl.js@@ -77,7 +77,7 @@ function LRunControl({isComputing, isConnected, handleStop, handleSubmit, setDat<Form.Checktype="switch"id="custom-switch"- label="Test run (no LM queries)"+ label="Test run (dummy agent without LM queries)"checked={testRun}onChange={(e) => setTestRun(e.target.checked)}/>