Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve interruption handling, avoid agent from getting stuck #1290

Merged
merged 5 commits into from
Dec 24, 2024

Conversation

davidzhao
Copy link
Member

there are a couple of conditions that could cause the agent to be stuck. This is because the current speech could be interrupted first (because it's acting on VAD events), but the handling of that event only comes in later during validations.

this change ensures that if we ever get to the validation stage, and the agent is not currently speaking, we would always generate a new thread, even if the incoming transcript is empty. If interrupted with a cough (as an example), it will allow the agent to pick up from where it'd left off.

fixes #1229

Copy link

changeset-bot bot commented Dec 24, 2024

🦋 Changeset detected

Latest commit: fda801b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-agents Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@davidzhao davidzhao requested a review from a team December 24, 2024 07:01
@davidzhao davidzhao merged commit c899608 into main Dec 24, 2024
14 checks passed
@davidzhao davidzhao deleted the dz-fix-interruptions branch December 24, 2024 18:34
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.

agent doesn't recover from a false positive interruption, if the interruption happened before agent responds
2 participants