How to modify turn_handling.interruption while Session is running?

Hi, I’d like to know if I can modify initial configuration of turn_handling.interruption ( to set enabled: True|False) at any point of a running session?

Or if there’s another strategy to, globally, disable/enable interruptions?

Thanks in advance for any help!

Hi Kevin,

There isn’t a single switch to flip turn_handling.interruption.enabled globally on a live session — update_options() doesn’t expose an interruption toggle, and Agent.allow_interruptions is read-only, so changing it in place isn’t directly supported.

The straightforward way to get the same effect is to set allow_interruptions on each reply and drive it from your own state:

# keep a flag in your own session state
allow = False

await session.generate_reply(..., allow_interruptions=allow)
# or
session.say("Please hold while I check that.", allow_interruptions=allow)

Interruptibility is resolved when each reply starts, so flipping your flag takes effect on the very next turn — effectively a global enable/disable you control.

One thing worth checking first: if you’re reaching for this because interruptions are firing on background noise or short acknowledgments (“mm-hm”, “yeah”), the “adaptive” interruption mode usually fixes that without turning interruptions off at all. A couple of references:

Hope that helps!