(
*,
model_config_arg: str,
workspace_dir: str,
timeout_seconds: int,
)
| 65 | |
| 66 | |
| 67 | def load_tool_model( |
| 68 | *, |
| 69 | model_config_arg: str, |
| 70 | workspace_dir: str, |
| 71 | timeout_seconds: int, |
| 72 | ) -> Any: |
| 73 | config_path = resolve_model_config_path(model_config_arg, workspace_dir=workspace_dir) |
| 74 | config = _load_structured_config(config_path) |
| 75 | model_block = dict(_extract_model_block(config)) |
| 76 | model_block["request_timeout_seconds"] = timeout_seconds |
| 77 | return get_model(model_block) |
no test coverage detected