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: Update status on installing tools

Kilian Lieret98ac2a28f807
diff --git a/sweagent/agent/agents.py b/sweagent/agent/agents.py
index c51d552f..d397438e 100644
--- a/sweagent/agent/agents.py
+++ b/sweagent/agent/agents.py
@@ -240,6 +240,7 @@ class Agent:
self._forwarded_vars = {}
# if self._rloop is not None:
# self._forwarded_vars = self._rloop.get_forwarded_vars()
+ self._chook.on_tools_installation_started()
self.tools.install(self._env)
self.setup_attempt()
diff --git a/sweagent/agent/hooks/status.py b/sweagent/agent/hooks/status.py
index 75b18751..52b14fa3 100644
--- a/sweagent/agent/hooks/status.py
+++ b/sweagent/agent/hooks/status.py
@@ -22,4 +22,4 @@ class SetStatusAgentHook(AbstractAgentHook):
self._cost = info["model_stats"]["instance_cost"] # type: ignore
def on_tools_installation_started(self):
- self._update("Installing tools...")
+ self._update("Installing tools")