Function
case_function
(task_description, case_generator)
Source from the content-addressed store, hash-verified
| 9 | return task_description |
| 10 | |
| 11 | def case_function(task_description, case_generator): |
| 12 | prompt = f"Please understand the {task_description} task and write the python code to generate a case for {task_description} according to the {case_generator} case generator as an example." |
| 13 | case = query(prompt) |
| 14 | return case |
| 15 | |
| 16 | def prompt_function(case, prompt_function): |
| 17 | prompt = f"Please understand the {case} case and write the python code to generate a prompt for {case} according to the {prompt_function} prompt function as an example." |
Tested by
no test coverage detected