MCPcopy Create free account
hub / github.com/NVIDIA/SOL-ExecBench / parse_eval_result

Function parse_eval_result

tests/sol_execbench/driver/test_eval_driver.py:50–57  ·  view source on GitHub ↗

Parse JSONL Trace dicts from eval_driver stdout.

(stdout: str, stderr: str)

Source from the content-addressed store, hash-verified

48
49
50def parse_eval_result(stdout: str, stderr: str) -> list[dict]:
51 """Parse JSONL Trace dicts from eval_driver stdout."""
52 traces = []
53 for line in stdout.splitlines():
54 line = line.strip()
55 if line.startswith("{"):
56 traces.append(json.loads(line))
57 return traces
58
59
60# ---------------------------------------------------------------------------

Callers 1

_run_eval_driverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected