important-garden-60239
03/27/2025, 3:22 PMtall-airline-16756
03/27/2025, 3:22 PMtall-airline-16756
03/27/2025, 3:22 PMallow_interruptions
property of the speech object to False
. This ensures that the system will ignore user input while the agent is speaking. For example:
if not self._playing_speech.allow_interruptions:
should_ignore_input = True
logger.debug(
"skipping validation, agent is speaking and does not allow interruptions",
extra={"speech_id": self._playing_speech.id},
)
When interruptions are not allowed, the system sets should_ignore_input
to True
, clears any transcribed text from the user, and returns without processing the input.
Sources: livekit.agents.pipeline.pipeline_agent API documentationimportant-garden-60239
03/27/2025, 3:32 PMtall-airline-16756
03/27/2025, 3:32 PMallow_interruptions
property works for the realtime model as well. It is a boolean parameter that determines whether the user is allowed to interrupt the assistant during its operation.
Sources: VPAOptions | LiveKit Agentsimportant-garden-60239
03/27/2025, 3:33 PMtall-airline-16756
03/27/2025, 3:33 PM