Local
minisweagent.run.mini
Run mini-SWE-agent in your local environment. This is the default executable mini
.
DEFAULT_CONFIG
module-attribute
DEFAULT_CONFIG = Path(
getenv(
"MSWEA_MINI_CONFIG_PATH",
builtin_config_dir / "mini.yaml",
)
)
DEFAULT_OUTPUT
module-attribute
DEFAULT_OUTPUT = (
global_config_dir / "last_mini_run.traj.json"
)
console
module-attribute
console = Console(highlight=False)
app
module-attribute
app = Typer(rich_markup_mode='rich')
prompt_session
module-attribute
prompt_session = PromptSession(
history=FileHistory(
global_config_dir / "mini_task_history.txt"
)
)
main
main(
visual: bool = Option(
False,
"-v",
"--visual",
help="Toggle (pager-style) UI (Textual) depending on the MSWEA_VISUAL_MODE_DEFAULT environment setting",
),
model_name: str | None = Option(
None, "-m", "--model", help="Model to use"
),
model_class: str | None = Option(
None,
"--model-class",
help="Model class to use (e.g., 'anthropic' or 'minisweagent.models.anthropic.AnthropicModel')",
rich_help_panel="Advanced",
),
task: str | None = Option(
None,
"-t",
"--task",
help="Task/problem statement",
show_default=False,
),
yolo: bool = Option(
False,
"-y",
"--yolo",
help="Run without confirmation",
),
cost_limit: float | None = Option(
None,
"-l",
"--cost-limit",
help="Cost limit. Set to 0 to disable.",
),
config_spec: Path = Option(
DEFAULT_CONFIG,
"-c",
"--config",
help="Path to config file",
),
output: Path | None = Option(
DEFAULT_OUTPUT,
"-o",
"--output",
help="Output trajectory file",
),
exit_immediately: bool = Option(
False,
"--exit-immediately",
help="Exit immediately when the agent wants to finish instead of prompting.",
rich_help_panel="Advanced",
),
) -> Any
Source code in src/minisweagent/run/mini.py
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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|