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]
Code quality: Improve inference of return type
Kilian Lieretb21e9a4a1c67
diff --git a/sweagent/agent/agents.py b/sweagent/agent/agents.pyindex de099f9e..3dde9343 100644--- a/sweagent/agent/agents.py+++ b/sweagent/agent/agents.py@@ -679,5 +679,4 @@ class Agent:return infoif return_type == "info_trajectory":return info, trajectory- if return_type != "info":- return trajectory[-1][return_type]+ return trajectory[-1][return_type]