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

Method make_finish

toolbench/inference/Tree/Tree.py:126–134  ·  view source on GitHub ↗

Recursively marked as finish, until the above inter_val nodes of action_input type (including yourself)

(self,inter_val=1)

Source from the content-addressed store, hash-verified

124
125
126 def make_finish(self,inter_val=1):
127 '''
128 Recursively marked as finish, until the above inter_val nodes of action_input type (including yourself)
129 '''
130 self.finished = True
131 if self.node_type == "Action Input":
132 inter_val -= 1
133 if self.father != None and inter_val >= 0:
134 self.father.make_finish(inter_val)
135
136
137 def get_train_messages_from_this_node(self):

Callers 1

DFSMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected