Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
''
&
#x27;
Callers
4
to_json
Method · 0.95
DFS
Method · 0.80
do_chain
Method · 0.80
find_ancestor_intersection
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected