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: if rloop is None
Kilian Lieret58c1cc665bcb
diff --git a/sweagent/agent/agents.py b/sweagent/agent/agents.pyindex e8a8f806..ffd34287 100644--- a/sweagent/agent/agents.py+++ b/sweagent/agent/agents.py@@ -693,7 +693,8 @@ class Agent:step = StepOutput()try:# Forward model and get actions- self._rloop.on_model_query(attempt_stats=self.attempt_model_stats)+ if self._rloop is not None:+ self._rloop.on_model_query(attempt_stats=self.attempt_model_stats)self._chook.on_model_query(messages=history, agent=self.name)output = self.model.query(history) # type: ignorestep.output = output["message"]