```session = AgentSession( min_interruption_du...
# ask-ai
h
Copy code
session = AgentSession(
    min_interruption_duration=0.3,
    # resume_false_interruption=True,
    llm=google.beta.realtime.RealtimeModel(
        model="gemini-2.5-flash-native-audio-preview-09-2025",#"gemini-2.0-flash-live-001", #"gemini-2.5-flash-live-preview",
        proactivity=True,
when the proactivity is set to True, the
Copy code
session.generate_reply(
    instructions="The call is now connected. Greet the caller warmly and proceed with the conversation.",
    allow_interruptions=False,
)
is not working. throwing an error: ERROR asyncio - Task exception was never retrieved future: <Task finished name='AgentActivity.realtime_reply' coro=<AgentActivity._create_speech_task.<locals>._context_aware_coro() done, defined at /home/manish/Desktop/Natvoiz/aivb_poc/.venv/lib/python3.12/site-packages/livekit/agents/voice/agent_activity.py:367> exception=RealtimeError('generate_reply timed out waiting for generation_created event.')> Traceback (most recent call last): File "/home/manish/Desktop/Natvoiz/aivb_poc/.venv/lib/python3.12/site-packages/livekit/agents/voice/agent_activity.py", line 371, in _context_aware_coro return await coro ^^^^^^^^^^ File "/home/manish/Desktop/Natvoiz/aivb_poc/.venv/lib/python3.12/site-packages/livekit/agents/utils/log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/manish/Desktop/Natvoiz/aivb_poc/.venv/lib/python3.12/site-packages/livekit/agents/voice/agent_activity.py", line 1936, in _realtime_reply_task generation_ev = await self._rt_session.generate_reply( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ livekit.agents.llm.realtime.RealtimeError: generate_reply timed out waiting for generation_created event.
t
Thanks for reaching out, manish. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!