Turn handling options
Status: implemented.
Use this page to look up turn detection, endpointing, and interruption controls.
Turn detection modes
| Mode | Constant |
|---|---|
stt | agent.TurnDetectionModeSTT |
vad | agent.TurnDetectionModeVAD |
realtime_llm | agent.TurnDetectionModeRealtimeLLM |
manual | agent.TurnDetectionModeManual |
The active mode can come from Agent.TurnDetection, AgentSessionOptions.TurnDetection, or AgentSessionUpdateOptions.TurnDetection, depending on where the session is being configured.
Session options
Turn-related fields live in AgentSessionOptions, including:
AllowInterruptionsDiscardAudioIfUninterruptibleMinInterruptionDurationMinInterruptionWordsMinEndpointingDelayMaxEndpointingDelayEndpointingModeEndpointingAlphaEndpointingFalseInterruptionTimeoutResumeFalseInterruptionMinConsecutiveSpeechDelayTurnDetection
Provider-specific endpointing and turn detector options are configured through app/provider fields only when the selected adapter consumes them.
Evidence:
core/agent/agent.gocore/agent/agent_session.gocore/agent/endpointing.goadapter/livekit/turn_detector.goadapter/pipecat/smart_turn.go