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

Method __init__

toolbench/inference/Algorithms/single_chain.py:10–19  ·  view source on GitHub ↗

extra_prefix and start_message_list is used in Reflection Algo

(self,llm,io_func,extra_prefix="",process_id=0,start_message_list=None)

Source from the content-addressed store, hash-verified

8 """Implement of CoT method
9 """
10 def __init__(self,llm,io_func,extra_prefix="",process_id=0,start_message_list=None):
11 """extra_prefix and start_message_list is used in Reflection Algo"""
12 super(single_chain, self).__init__(llm,io_func, process_id, callbacks=None)
13 self.io_func = io_func
14 self.llm = llm
15 self.extra_prefix = extra_prefix
16 self.start_message_list = start_message_list
17 self.process_id = process_id
18
19 self.restart()
20 def restart(self):
21 self.status = 0
22 self.try_list = []

Callers

nothing calls this directly

Calls 1

restartMethod · 0.95

Tested by

no test coverage detected