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]

Fix signature of ParseCommandDetailed (#177)

Kilian Lieret7a5c8de7bd3a
diff --git a/sweagent/agent/commands.py b/sweagent/agent/commands.py
index 494aac4b..311ee534 100644
--- a/sweagent/agent/commands.py
+++ b/sweagent/agent/commands.py
@@ -204,6 +204,7 @@ class ParseCommandDetailed(ParseCommandBash):
# arg1 (type) [required]: "description"
# arg2 (type) [optional]: "description"
"""
+ @staticmethod
def get_signature(cmd):
signature = cmd.name
if "arguments" in cmd.__dict__ and cmd.arguments is not None: