| 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." |
| 18 | prompt = query(prompt) |
| 19 | return prompt |
| 20 | |
| 21 | def prompt_class(task_description,case,prompt,prompt_class): |
| 22 | prompt = f"Please understand the {task_description} task, {case} case generator and {prompt} prompt function and write the python code to generate a prompt class for {task_description} according to the {prompt_class} prompt class as an example." |