validate and update 'final_decision' before init CosTeerFeedback (#691)

This commit is contained in:
XianBW
2025-03-17 19:53:09 +08:00
committed by GitHub
parent 1184be76bc
commit 699984fe1e
7 changed files with 58 additions and 6 deletions
@@ -121,7 +121,10 @@ class WorkflowGeneralCaseSpecEvaluator(CoSTEEREvaluator):
code=implementation.file_dict["main.py"],
)
wfb = build_cls_from_json_with_retry(
WorkflowSingleFeedback, system_prompt=system_prompt, user_prompt=user_prompt
WorkflowSingleFeedback,
system_prompt=system_prompt,
user_prompt=user_prompt,
init_kwargs_update_func=WorkflowSingleFeedback.val_and_update_init_dict,
)
if score_ret_code != 0:
wfb.final_decision = False