How to check where interruption was
# support
a
Hello, I have an interesting question. We want to check where user interrupted the agent (while using custom llm), to cutoff the part in messages history that agent didn't manage to pronounce. Is there a way to do that with VAPI?
v
@ArtemHorik Absolutely, VAPI can assist with that. To track where a user interrupts the agent, you would typically need to monitor the audio stream and detect when the user starts speaking. VAPI provides events that can help you understand when the agent starts and stops speaking, as well as when the user starts speaking. However, to provide you with a precise solution, I would need to know more about the specific capabilities and events that VAPI supports for this use case. If VAPI has an event that notifies when the user interrupts the agent, you could use that event to determine the cutoff point in the message history. If you can provide more details or if there's a specific function in VAPI that you think might help with this, I can guide you further on how to implement it. If this functionality is not directly supported, you might need to implement custom logic to handle the audio stream and detect interruptions.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
a
maybe you guys know how to implement this?
In vapi docs there is a "It also keeps track of where the assistant was cut off, so the LLM knows what it wasn’t able to say." how to get this info?
4 Views