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]

Save last observation in history / trajectory

carlosejimenez436ec464dae4
diff --git a/sweagent/agent/agents.py b/sweagent/agent/agents.py
index 28e5955a..af4cf90d 100644
--- a/sweagent/agent/agents.py
+++ b/sweagent/agent/agents.py
@@ -440,8 +440,6 @@ class Agent:
"message_type": "action",
},
)
- if step.done:
- return
if step.observation is None or step.observation.strip() == "":
# Show no output template if observation content was empty