(answer: str = None, ground_truth: Any = None)
| 181 | return args |
| 182 | |
| 183 | async def reward_fn(answer: str = None, ground_truth: Any = None): |
| 184 | _, answer = parse_agent_result(answer) |
| 185 | score = 1.0 if answer == ground_truth else 0.0 |
| 186 | print(f'answer: {answer}, ground_truth: {ground_truth}') |
| 187 | return score |
| 188 | |
| 189 | def parse_agent_result(agent_result: Any) -> Tuple[str, Any]: |
| 190 | """ |
nothing calls this directly
no test coverage detected