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: Remove mock state
Kilian Lieretb4d90f569fc9
diff --git a/sweagent/tools/tools.py b/sweagent/tools/tools.pyindex 3ec9ccad..f5390090 100644--- a/sweagent/tools/tools.py+++ b/sweagent/tools/tools.py@@ -173,7 +173,7 @@ class ToolHandler:self._command_patterns = self._get_command_patterns()self.logger = get_logger("swea-tools", emoji="🧰")# For testing: Return this state instead of querying the environment- self.mock_state: dict[str, str] | None = {"open_file": "", "working_dir": ""}+ self.mock_state: dict[str, str] | None = None@classmethoddef from_config(cls, config: ToolConfig) -> Self: