pickAgentAction method

Future<void> pickAgentAction(
  1. String key
)

Picker routing for the child action picker.

Implementation

Future<void> pickAgentAction(String key) async {
  if (key == 'back') return _agentsTreePanel();
  if (key.startsWith('send:')) {
    return _askAndSendSubagent(key.substring(5));
  }
  return _openSubagentSession(key.substring(5));
}