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]

Enh: run_batch report serialization issues

Kilian Lieretf3a33afac0ba
diff --git a/sweagent/run/_progress.py b/sweagent/run/_progress.py
index cc6b4701..7f7d2138 100644
--- a/sweagent/run/_progress.py
+++ b/sweagent/run/_progress.py
@@ -139,7 +139,8 @@ class RunBatchProgressManager:
def _get_overview_data(self) -> dict:
"""Get data like exit statuses, total costs, etc."""
return {
- "instances_by_exit_status": self._instances_by_exit_status,
+ # convert defaultdict to dict because of serialization
+ "instances_by_exit_status": dict(self._instances_by_exit_status),
"total_cost": GLOBAL_STATS.total_cost,
}