Skip to content

Feature/interrupt handler ishan#495

Open
ishanb18 wants to merge 4 commits intoDark-Sys-Jenkins:mainfrom
ishanb18:feature/interrupt-handler-ishan
Open

Feature/interrupt handler ishan#495
ishanb18 wants to merge 4 commits intoDark-Sys-Jenkins:mainfrom
ishanb18:feature/interrupt-handler-ishan

Conversation

@ishanb18
Copy link

@ishanb18 ishanb18 commented Feb 2, 2026

Context-Aware Interruption Handling & Mistral AI Support
Features

  1. Smart Interruption Filtering

Passive words ("yeah", "ok", "hmm") don't interrupt agent speech
Interrupt commands ("stop", "wait") immediately stop the agent
Uses manual turn detection for precise control
2. Mistral AI Integration

Switch between OpenAI and Mistral AI via LLM_PROVIDER environment variable
Supports mistral-small model
Demo
🎥https://drive.google.com/file/d/1ozRln0bgHcpPTLEAdiY0QrymoabQald8/view?usp=sharing

Files Changed
basic_agent.py
requirements.txt

Testing
Test scenarios:

Say "yeah" while agent speaks → Agent continues
Say "stop" while agent speaks → Agent interrupts
Say "yeah" while agent silent → Agent responds

- Implement passive word filtering (yeah, ok, hmm) that doesn't interrupt agent speech
- Add active interrupt words (stop, wait, hold on) that immediately stop agent
- Add LLM provider selection via LLM_PROVIDER env variable (openai/mistral)
- Use manual turn detection to control when user input reaches LLM
- Track agent speaking state to determine interruption behavior
Features:
- Implement passive word filtering (yeah, ok, hmm) that doesn't interrupt agent speech
- Add active interrupt words (stop, wait, hold on) for immediate interruption
- Add LLM provider selection via LLM_PROVIDER env variable (openai/mistral)
- Use manual turn detection to control when user input reaches LLM
- Track agent speaking state to determine interruption behavior
- Update requirements.txt with Mistral AI plugin dependency
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