session = AgentSession(
llm=google.realtime.RealtimeModel(
model="gemini-2.5-flash-native-audio-preview-09-2025",
_gemini_tools=[types.GoogleSearch()],
),
vad=silero.VAD.load(),
# Explicitly disable the turn detection to stop the SDK from loading a default
turn_detection=None,
allow_interruptions=False,
)
ValueError: the RealtimeModel uses a server-side turn detection, allow_interruptions cannot be False, disable turn_detection in the RealtimeModel and use VAD on the AgentSession instead