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]

Fixes to reviewer

Kilian Lieretf37c27752716
diff --git a/sweagent/agent/reviewer.py b/sweagent/agent/reviewer.py
index 2dc9a8fd..e055c9a3 100644
--- a/sweagent/agent/reviewer.py
+++ b/sweagent/agent/reviewer.py
@@ -179,7 +179,7 @@ class ReviewerConfig(BaseModel):
class ChooserRetryLoopConfig(BaseModel):
type: Literal["chooser"] = "chooser"
- chooser_config: ChooserConfig
+ chooser: ChooserConfig
max_attempts: int
min_budget_for_new_attempt: float = 0.0
@@ -234,7 +234,7 @@ class ScoreRetryLoopConfig(BaseModel):
return ScoreRetryLoop(self, problem_statement)
-RetryLoopConfig = ScoreRetryLoopConfig
+RetryLoopConfig = ScoreRetryLoopConfig | ChooserRetryLoopConfig
# --- IMPLEMENTATIONS ---