Function
verify_correction_function
(task_description,reward_function,verify_correction_function)
Source from the content-addressed store, hash-verified
| 29 | return cal_function |
| 30 | |
| 31 | def verify_correction_function(task_description,reward_function,verify_correction_function): |
| 32 | prompt = f"Please understand the {task_description} task and {reward_function} reward function and generate a python code to verify correction function according to the {verify_correction_function} verify correction function as an example." |
| 33 | verify_correction_function = query(prompt) |
| 34 | return verify_correction_function |
| 35 | |
| 36 | def extract_output_function(task_description,extract_output_function): |
| 37 | prompt = f"Please understand the {task_description} task and write the python code to generate a extract output function for {task_description} according to the {extract_output_function} extract output function as an example." |
Tested by
no test coverage detected