MCPcopy Create free account
hub / github.com/OpenBMB/ToolBench / __call__

Method __call__

toolbench/tooleval/evaluation/methodcls.py:37–39  ·  view source on GitHub ↗
(self,query:str,tools:List[Dict],tool_func:Callable)

Source from the content-addressed store, hash-verified

35 pass
36
37 def __call__(self,query:str,tools:List[Dict],tool_func:Callable)->Dict:
38 result = self.forward(query,tools,tool_func)
39 return self.convert_result_to_dict(result)
40

Callers

nothing calls this directly

Calls 2

forwardMethod · 0.95

Tested by

no test coverage detected