config.turn_handling controls the edges of a turn: whether the caller can cut the agent
off, what happens after a false interruption, and whether the agent drafts a reply before
the caller has certainly finished. Voice and video only; a text agent resets the block.
Which end-of-turn detector runs is not configured here — it follows from the
speech-to-text model and config.language. See
speech and turn detection before tuning
endpointing.
Interruption
min_wordsneeds interim transcripts. On a batch speech-to-text model it is a warning: the agent notices the interruption only once the caller stops speaking.false_interruption_timeout: nulldisables false-interruption detection, so nothing is ever resumed.- A video agent always runs with
resume_false_interruptionoff — the avatar cannot pause mid-sentence. discard_audio_if_uninterruptible: falsekeeps what the caller said while the agent could not be interrupted and delivers it afterwards.
greeting_interruptible (top level, default true) controls the greeting. false makes
the agent finish its opening line; it is refused on a realtime model. A greeting that speaks
the recording notice is never interruptible.
Preemptive generation
The language model (and withpreemptive_tts, the voice) starts on a reply before the turn
is confirmed. It shortens the pause; a wrong guess is discarded and still billed on your
provider key. On by default. It saves the most on a batch speech-to-text model, whose turns
the VAD ends; a streaming model ends turns itself, leaving it little to overlap.
It is forced off on a realtime agent (the model detects turns itself) and on an agent
with vision_input.screenshare enabled (the context changes every turn, so every
draft would be discarded).
Endpointing
min_silence_duration is how long the caller must stay silent before the agent takes the
turn. max_silence_duration is the longer wait used when the turn detector judges the
caller is mid-thought — only a batch speech-to-text model in one of the turn detector’s
languages gets that judgement; elsewhere it is ignored. Must be ≥ min_silence_duration.
Symptom to setting
Reference
Next
Speech and turn detection
What ends a caller’s turn.
Debugging agents
When a call sounds wrong.