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

Function load_tool_model

src/webwright/tools/_model_config.py:67–77  ·  view source on GitHub ↗
(
    *,
    model_config_arg: str,
    workspace_dir: str,
    timeout_seconds: int,
)

Source from the content-addressed store, hash-verified

65
66
67def 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)

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls 4

get_modelFunction · 0.90
_load_structured_configFunction · 0.85
_extract_model_blockFunction · 0.85

Tested by

no test coverage detected