MCPcopy Create free account
hub / github.com/InternLM/InternBootcamp / prompt_function

Function prompt_function

verl/agentic_workflow/main.py:16–19  ·  view source on GitHub ↗
(case, prompt_function)

Source from the content-addressed store, hash-verified

14 return case
15
16def 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
21def 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."

Callers 1

main.pyFile · 0.85

Calls 1

queryFunction · 0.90

Tested by

no test coverage detected