SWE-bench Single
minisweagent.run.extra.swebench_single
Run on a single SWE-Bench instance.
app
module-attribute
app = Typer(add_completion=False)
DEFAULT_OUTPUT
module-attribute
DEFAULT_OUTPUT = (
global_config_dir / "last_swebench_single_run.traj.json"
)
main
main(
subset: str = Option(
"lite",
"--subset",
help="SWEBench subset to use or path to a dataset",
rich_help_panel="Data selection",
),
split: str = Option(
"dev",
"--split",
help="Dataset split",
rich_help_panel="Data selection",
),
instance_spec: str = Option(
0,
"-i",
"--instance",
help="SWE-Bench instance ID or index",
rich_help_panel="Data selection",
),
model_name: str | None = Option(
None,
"-m",
"--model",
help="Model to use",
rich_help_panel="Basic",
),
model_class: str | None = Option(
None,
"-c",
"--model-class",
help="Model class to use (e.g., 'anthropic' or 'minisweagent.models.anthropic.AnthropicModel')",
rich_help_panel="Advanced",
),
config_path: Path = Option(
builtin_config_dir / "extra" / "swebench.yaml",
"-c",
"--config",
help="Path to a config file",
rich_help_panel="Basic",
),
environment_class: str | None = Option(
None,
"--environment-class",
rich_help_panel="Advanced",
),
exit_immediately: bool = Option(
False,
"--exit-immediately",
help="Exit immediately when the agent wants to finish instead of prompting.",
rich_help_panel="Basic",
),
output: Path = Option(
DEFAULT_OUTPUT,
"-o",
"--output",
help="Output trajectory file",
rich_help_panel="Basic",
),
) -> None
Run on a single SWE-Bench instance.
Source code in src/minisweagent/run/extra/swebench_single.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|