Feature/interrupt handler ishan#495
Open
ishanb18 wants to merge 4 commits intoDark-Sys-Jenkins:mainfrom
Open
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context-Aware Interruption Handling & Mistral AI Support
Features
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