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]
Doc improvement (tools)
Kilian Liereta6c51ee4d745
diff --git a/sweagent/tools/commands.py b/sweagent/tools/commands.pyindex b4c29e4d..d5033daa 100644--- a/sweagent/tools/commands.py+++ b/sweagent/tools/commands.py@@ -47,10 +47,10 @@ def _extract_keys(format_string: str) -> set[str]:class Argument(BaseModel):- """Defines an argument that can be passed to a command.+ f"""Defines an argument that can be passed to a command.Attributes:- name: The argument name, must match ARGUMENT_NAME_PATTERN+ name: The argument name, must match {ARGUMENT_NAME_PATTERN!r}type: The argument type (e.g. "string", "integer")description: Human readable description of the argumentrequired: Whether this argument must be provided@@ -63,7 +63,8 @@ class Argument(BaseModel):description: strrequired: boolenum: list[str] | None = None- argument_format: str = "{value}" # how to invoke the argument in the command+ argument_format: str = "{value}"+ """How to invoke the argument in the command"""class Command(BaseModel):