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]

Doc: Document settings

Kilian Lieret46ecbd03b595
diff --git a/sweagent/agent/reviewer.py b/sweagent/agent/reviewer.py
index bd3cf114..aa040d28 100644
--- a/sweagent/agent/reviewer.py
+++ b/sweagent/agent/reviewer.py
@@ -157,11 +157,16 @@ class ScoreRetryLoopConfig(BaseModel):
max_accepts: int = 1
max_attempts: int
- #: Minimal $ that need to be left in order for us to start a new attempt
min_budget_for_new_attempt: float = 0.0
- #: Override model temperature for first len(list) attempts
+ """Minimal $ that need to be left in order for us to start a new attempt.
+ If set to 0: Always.
+ """
cost_limit: float
+ """The maximum cost to spend on all attempts and reviews except the last review.
+ The last review is not included in the cost limit, because we would waste the last
+ attempt if we couldn't score it.
+ """
model: ModelConfig