Calculates the depth of a subagent based on its namespace. Counts the number of "tools:" segments in the namespace.
The namespace array
The depth (0 for main agent, 1+ for subagents)
Calculates the depth of a subagent based on its namespace. Counts the number of "tools:" segments in the namespace.