Skip to content

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]

Important fix: Setting submission

Kilian Lieretec1f0a7f856a
diff --git a/sweagent/agent/agents.py b/sweagent/agent/agents.py
index 78f57068..8fb3ce6b 100644
--- a/sweagent/agent/agents.py
+++ b/sweagent/agent/agents.py
@@ -519,7 +519,7 @@ class Agent:
if submission.strip() != "":
step.submission = None
else:
- step.submission = None
+ step.submission = submission
step.observation = submission
if not step.exit_status:
step.exit_status = "submitted"