AskCallback typedef

AskCallback = Future<List<AskAnswer>?> Function(List<AskQuestion> questions)

Answers questions on behalf of the user — the host UI surface (CLI menu, Flutter sheet). Returns one AskAnswer per question, or null when the user cancels (dismiss/escape): the tool then resolves with an "ask cancelled by user" result so the model continues gracefully.

Implementation

typedef AskCallback =
    Future<List<AskAnswer>?> Function(List<AskQuestion> questions);