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

Method __init__

toolbench/inference/Tree/Tree.py:25–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23class tree_node:
24
25 def __init__(self):
26 self.is_terminal = False
27 self.pruned = False
28 self.finished = False
29
30 self.node_type = None
31 self.description = ""
32 self.observation = ""
33 self.observation_code = None
34 self.children = []
35
36 self.father = None
37
38
39 self.io_state = None
40
41
42
43 self.expand_num = 0 # The number of visits to the node, 0 means it has not been visited
44
45
46 self.Elo = 1000.0
47
48 # openai-messages of this node
49 self.messages = []
50
51 def compute_weight(self):
52 '''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected