MCPcopy Create free account
hub / github.com/microsoft/Webwright / _extract_model_block

Function _extract_model_block

src/webwright/tools/_model_config.py:33–40  ·  view source on GitHub ↗
(config: dict[str, Any])

Source from the content-addressed store, hash-verified

31
32
33def _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
43def resolve_model_config_path(model_config_arg: str, *, workspace_dir: str) -> Path:

Calls

no outgoing calls