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

Function cal_function

verl/agentic_workflow/main.py:26–29  ·  view source on GitHub ↗
(task_description,cal_function)

Source from the content-addressed store, hash-verified

24 return prompt
25
26def cal_function(task_description,cal_function):
27 prompt = f"Please understand the {task_description} task and write the python code to generate a reward calculation function for {task_description} according to the {cal_function} reward function as an example."
28 cal_function = query(prompt)
29 return cal_function
30
31def 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."

Callers 1

main.pyFile · 0.85

Calls 1

queryFunction · 0.90

Tested by

no test coverage detected