Skip to content

Added intelligent interruption handler#501

Open
bhavana9381 wants to merge 1 commit into
Dark-Sys-Jenkins:mainfrom
bhavana9381:feature/interrupt-handler-bhavana
Open

Added intelligent interruption handler#501
bhavana9381 wants to merge 1 commit into
Dark-Sys-Jenkins:mainfrom
bhavana9381:feature/interrupt-handler-bhavana

Conversation

@bhavana9381
Copy link
Copy Markdown

@bhavana9381 bhavana9381 commented Apr 15, 2026

Intelligent Interruption Handler

This PR implements a context-aware interruption handling system for the LiveKit AI agent.

##Features Implemented

  • Ignore filler words ("yeah", "ok", "hmm") when the agent is speaking
  • Interrupt immediately on command words ("stop", "wait", "no")
  • Respond normally when the agent is silent
  • Handle mixed inputs like "yeah wait" correctly

Approach

  • Created a modular InterruptionHandler class
  • Used configurable ignore and interrupt word lists
  • Implemented state-based logic (speaking vs silent)
  • Added normalization for consistent text processing

Demo

The demo.py file demonstrates:

  • Ignoring passive acknowledgements during speech
  • Interrupting on command inputs
  • Responding when the agent is idle

Demo Video

Google Drive Link:
https://drive.google.com/file/d/1iwZsAR12ygVc2SN-7Ts5igoOG3-lHm-4/view?usp=sharing

About Me

Google Drive Link:
https://drive.google.com/file/d/1p06cjjF1-10HASRpJCxhLSXUe50ZRFr0/view?usp=sharing

Note

This solution focuses on logic-layer implementation as required, without modifying the underlying VAD system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant