I mostly see some set the allow_interruption=True....
# ask-ai
p
I mostly see some set the allow_interruption=True. When is a False usually recommended
t
Thanks for reaching out, Bryner. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Setting
allow_interruptions=False
is a great idea when it’s really important that the information gets through without any interruptions. Here are some examples where this can be super helpful: • Critical Information Delivery: Think legal disclaimers, safety instructions, or any essential details that need to be heard from start to finish. • Long Responses: When you’re sharing detailed explanations, step-by-step instructions, or even storytelling. • Preventing Overlap: To keep things clear and avoid any confusing overlapping speech, especially in sensitive situations. • Specific Use Cases: Situations like non-interruptible announcements or educational content where full attention is key. For example, legal disclaimers or complex instructions really benefit from this setting. And don’t worry—developers can still interrupt the agent programmatically if needed using
session.interrupt()
. Sources: Agent speech and audio | LiveKit Docs
p
In debt collection?
t
When dealing with debt collection, it’s a good idea to set
allow_interruptions=False
if you want to make sure the agent’s message gets through without any interruptions. This comes in handy especially for: • Legal Notices: Making sure all the important legal info is shared clearly and completely. • Payment Instructions: Giving straightforward, step-by-step payment details without any breaks. This helps keep things clear and compliant during sensitive conversations. If you want, I’m here to share more details or examples—just let me know! Sources: Agent speech and audio | LiveKit Docs | Agent speech and audio | LiveKit Docs | livekit-agents/livekit/agents/voice/agent_activity.py | Agent speech | LiveKit Docs | VPAOptions | LiveKit Agents