MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / handle_inspect

Function handle_inspect

cli/main.py:392–406  ·  view source on GitHub ↗
(
    benchmark_file: str,
    benchmark_name: str,
    model_identifier: str | None = None,
    config_file: str | None = None,
)

Source from the content-addressed store, hash-verified

390
391
392def handle_inspect(
393 benchmark_file: str,
394 benchmark_name: str,
395 model_identifier: str | None = None,
396 config_file: str | None = None,
397) -> int:
398 config = _resolve_config(config_file)
399 benchmark = find_benchmark_by_name(Path(benchmark_file), benchmark_name)
400 model = _resolve_model_spec(model_identifier, config)
401 payload = {
402 "benchmark": benchmark.to_dict(),
403 "model": model.to_dict(),
404 }
405 print(json.dumps(payload, ensure_ascii=False, indent=2))
406 return 0
407
408
409def handle_run(

Callers 1

mainFunction · 0.85

Calls 4

find_benchmark_by_nameFunction · 0.90
_resolve_configFunction · 0.85
_resolve_model_specFunction · 0.85
to_dictMethod · 0.45

Tested by

no test coverage detected