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

Method restart

toolbench/inference/Algorithms/DFS.py:28–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 self.callbacks = callbacks if callbacks is not None else []
27
28 def restart(self):
29 self.status = 0
30 self.terminal_node = []
31 self.give_up_node = []
32 self.now_expand_num = 0
33 self.query_count = 0
34 self.total_tokens = 0
35
36 def send_agent_chain_end(self, depth, agent_block_ids, chain_block_ids):
37 for i in range(len(self.callbacks)):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected