Hi! I need guidance on interrupt control in liveki...
# ask-ai
l
Hi! I need guidance on interrupt control in livekit-agents for my deployed environment. Locally I am using livekit-agents 1.2.15 and can import: from livekit.agents.voice import InterruptConfig session.interrupt_config = InterruptConfig(stop_audio=True, stop_llm=False) This works perfectly locally. However, when deploying, I get this error: ImportError: cannot import name 'InterruptConfig' from 'livekit.agents.voice' So my deployment runtime seems to be using a different livekit-agents version, even though my code expects 1.2.15. Can you please confirm: 1) What exact version of
livekit-agents
is available in the deployment environment? 2) For that version, what is the correct API + import path for configuring barge-in behavior (stop_audio only, do not stop LLM)?
t
Thanks for reaching out, Computer. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
l
from livekit.agents.voice import InterruptConfig does livekit provide one such import?