Skip to content

Commit 3cce7ba

Browse files
anticomputerCopilot
andcommitted
Document --model-config / -m CLI flag in README
- Add -m to architecture diagram CLI flags listing - Document model config persistence in session recovery section - Add CLI override subsection under Model configs with usage example Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c5289a4 commit 3cce7ba

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can find a detailed overview of the taskflow grammar [here](doc/GRAMMAR.md)
2424
```
2525
┌─────────────────────────────────────────────────────┐
2626
│ CLI (cli.py) │
27-
│ Typer-based entry point: -p, -t, -l, -g, --resume
27+
│ Typer-based entry point: -p, -t, -l, -g, -m, --resume│
2828
└─────────────────────┬───────────────────────────────┘
2929
3030
┌─────────────────────▼───────────────────────────────┐
@@ -132,6 +132,14 @@ Resume from the last successful checkpoint:
132132
python -m seclab_taskflow_agent --resume abc123def456
133133
```
134134

135+
The session checkpoint persists the CLI-provided `--model-config` value (if
136+
any), so resumes use the same model configuration by default. To override the
137+
model config on resume, pass `--model-config` / `-m` explicitly:
138+
139+
```bash
140+
python -m seclab_taskflow_agent --resume abc123def456 -m examples.model_configs.responses_api
141+
```
142+
135143
Failed tasks are automatically retried up to 3 times with increasing backoff
136144
before the session is saved. Session checkpoints are stored in the
137145
platform-specific application data directory.
@@ -611,6 +619,19 @@ taskflow:
611619

612620
The model version can then be updated by changing `gpt_latest` in the `model_config` file and applied across all taskflows that use the config.
613621

622+
#### CLI override
623+
624+
The `model_config` can also be specified (or overridden) from the command line
625+
with `--model-config` / `-m`. This takes precedence over any `model_config`
626+
value defined in the taskflow YAML:
627+
628+
```bash
629+
python -m seclab_taskflow_agent -t examples.taskflows.echo -m examples.model_configs.responses_api
630+
```
631+
632+
The CLI-provided model config is persisted in the session checkpoint, so
633+
resumed runs automatically use the same configuration.
634+
614635
In addition, model specific parameters can be provided via `model_config`. To do so, define a `model_settings` section in the `model_config` file. This section has to be a dictionary with the model names as keys:
615636

616637
```yaml

0 commit comments

Comments
 (0)