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

Function tools_class

verl/agentic_workflow/main.py:46–49  ·  view source on GitHub ↗
(task_description,tool_class)

Source from the content-addressed store, hash-verified

44 return reward_class
45
46def tools_class(task_description,tool_class):
47 prompt = f"Please understand the {task_description} task and write the python code to generate a tools class for {task_description} according to the {tool_class} tools class as an example."
48 tools_class = query(prompt)
49 return tools_class
50
51def interaction_class(task_description,interaction_class):
52 prompt = f"Please understand the {task_description} task and write the python code to generate a interaction class for {task_description} according to the {interaction_class} interaction class as an example."

Callers 1

main.pyFile · 0.85

Calls 1

queryFunction · 0.90

Tested by

no test coverage detected