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

Add method to manually interrupt the agent. #1179

Open
martin-purplefish opened this issue Dec 5, 2024 · 0 comments
Open

Add method to manually interrupt the agent. #1179

martin-purplefish opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@martin-purplefish
Copy link
Contributor

martin-purplefish commented Dec 5, 2024

It would be nice to have more control over the agent from the outside.

One use case I have: The user hangs up while the agent is speaking. I would like to be able to manually interrupt the agent, so that I can log what the agent had already said on my backend.

Basically, in my participant_disconnected handler, I'd like to be able to say agent.interrupt() - which should interrupt uninterruptable speech - and then flush the final events so I can send them to my backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant