store possible answer in entry 'answer' field

This commit is contained in:
Andreas Koepf 2025-02-20 22:47:21 +01:00
parent 9068e1d1b1
commit c236bcf1b6

View file

@ -279,8 +279,8 @@ Reply as a JSON-parsable list of moves which result in any of the jugs being fil
return {
"question": question,
"answer": None,
"metadata": {"possible_answer": solution, "puzzle": puzzle},
"answer": json.dumps(solution), # one possible solution
"metadata": {"puzzle": puzzle},
}
def score_answer(self, answer: Optional[str], entry: Dict[str, any]) -> float: