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

Class SampleMethod

toolbench/tooleval/automatic_eval_sample.py:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33## !!define your method here !!
34class SampleMethod(BaseToolMethod):
35 def __init__(self):
36 super().__init__()
37 def forward(self,query:str,tools:List[Dict],tool_func:Callable)->Dict:
38 return {}
39 def convert_result_to_dict(self,result):
40 return {
41 'method': 'sample',
42 'total_steps': 0,
43 'final_answer': '',
44 'answer_details': []
45 }
46
47if __name__=='__main__':
48 args = parse_args()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected