interrupt method

Future<void> interrupt()

Stop the agent mid-utterance. Awaitable: resolves once the interrupted response, its tools, and its playout have all settled.

Implementation

Future<void> interrupt() async {
  await _tts.stop();
  _events.add(const VoiceAgentStateChanged(AgentState.listening));
}