Implement a code-evaluation harness that runs unit tests against generated solutions and r

Agents, Tool Use & Product Post-Training4 / 7

Chapter 194 / 7

Agents, Tool Use & Product Post-Training

Implement a code-evaluation harness that runs unit tests against generated solutions and r

Medium

Implement a code-evaluation harness that runs unit tests against generated solutions and returns pass/fail.

Target interface
evaluate_solution(solution_code, test_code, timeout_s=5.0)

Implement the function/class skeleton in the editor. Any correct approach is accepted.

Hints0 / 2
Reference solution
Your own code stays in the editor.