pickAgentFromTree method

Future<void> pickAgentFromTree(
  1. String key
)

Picker routing for the agents tree (main → info, child → observe view, noop → nothing).

Implementation

Future<void> pickAgentFromTree(String key) async {
  if (key == 'main') return _printMainInfo();
  if (key.startsWith('child:')) return _observeSubagent(key.substring(6));
}