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

Method get_depth

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

Source from the content-addressed store, hash-verified

64 return max_depth + 1
65
66 def get_depth(self):
67 if self.father == None:
68 return 0
69 return self.father.get_depth() + 1
70
71 def get_size(self):
72 '''

Callers 4

to_jsonMethod · 0.95
DFSMethod · 0.80
do_chainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected