Hi, is there any way to keep a user's session aliv...
# agents
a
Hi, is there any way to keep a user's session alive for ~20 seconds perhaps through an argument when creating a session with
AgentSession
in Python? I have a specific use case where I want to keep the user's messages with the agent persistent in the session temporarily in case the user closes the application/tab on their browser.
j
you can prevent session close via
RoomInputOptions.close_on_disconnect=False
and
RoomInputOptions.delete_room_on_close=False
, the session will be alive for 20s after user left
but there is no option to adjust the timeout right now
a
Awesome, thanks!