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: Ensure absolute paths for bundles
Kilian Lieret8758a1c89e49
diff --git a/sweagent/tools/tools.py b/sweagent/tools/tools.pyindex 7cc96a6f..3ec9ccad 100644--- a/sweagent/tools/tools.py+++ b/sweagent/tools/tools.py@@ -15,6 +15,7 @@ from sweagent.environment.swe_env import SWEEnvfrom sweagent.tools.commands import BASH_COMMAND, Command, ParseCommand, ParseCommandBashfrom sweagent.tools.parsing import FunctionCallingParser, JsonParser, ParseFunctionfrom sweagent.tools.utils import _guard_multiline_input+from sweagent.utils.config import _convert_paths_to_abspathfrom sweagent.utils.log import get_logger@@ -126,6 +127,8 @@ class ToolConfig(BaseModel):# todo: can some of these be moved to ToolHandler?def model_post_init(self, __context):+ self.bundles = _convert_paths_to_abspath(self.bundles)+# for caching:commands = self.commandsmulti_line_command_endings = {