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]

Fix: Dictionary iteration

Kilian Lieretd2aeaf2f177c
diff --git a/sweagent/types.py b/sweagent/types.py
index ee789e5b..87bd43af 100644
--- a/sweagent/types.py
+++ b/sweagent/types.py
@@ -69,7 +69,7 @@ class ReviewSubmission:
# Observed that not all exit_cost lead to autosubmission
# so sometimes this might be missing.
info["submission"] = ""
- for k, v in info:
+ for k, v in info.items():
if isinstance(v, str):
out[f"{k}{suffix}"] = v
elif isinstance(v, dict):