Unable to update gemini live session configuration without closing the existing session

Hi there

Reading throught the API docs for gemini live, it says that you can update the session parameters live without having the restart the session

You can change the configuration parameters except the model during the session.

I want to use this to edit the system prompt and available tools without having to restart the session

However looking through the JS and Python SDK docs, I can’t figure out how to do this. It looks like LiveConnectConfig is only ever used inside the connect method?
I see that I have access to the websocket connection under the conn property, but I’m struggling to understand via the docs what I’m supposed to send

The docs say that BidiGenerateContentClientMessage should be the first and only in the first message so I don’t understand how and where to do this. It is also not possible to do this in the studio web UI

Hi @Wazbat , Welcome to the forum.

Currently, this means that you can change the config parameters when resuming a session. You can’t update them mid-session.

Ah thank you!
So does this mean that using the session resumption token I can .stop() the previous session, then use the token to resume the session with a modified system prompt?

You currently cannot update system instructions during an active session because of websocket infrastructure limitations. The only way to update them is by resuming a session after approximately 10 minutes of inactivity. While the team is working on enabling real-time changes, this functionality isn’t available yet.

Thank you