(config: dict[str, Any])
| 31 | |
| 32 | |
| 33 | def _extract_model_block(config: dict[str, Any]) -> dict[str, Any]: |
| 34 | model_block = config.get("model") |
| 35 | if not isinstance(model_block, dict): |
| 36 | raise ValueError( |
| 37 | "Model config is missing a top-level `model:` block; " |
| 38 | "stack a model_*.yaml (e.g. model_claude.yaml) or pass --model-config <path>." |
| 39 | ) |
| 40 | return model_block |
| 41 | |
| 42 | |
| 43 | def resolve_model_config_path(model_config_arg: str, *, workspace_dir: str) -> Path: |
no outgoing calls