Gemini 3.x live sessions now preserve chat roles; SDK upgraded to 2.x
@livekit/agents-plugin-google@1.6.1
Patch Changes
-
Upgrade
@google/genaito 2.x and seed the initial chat context of Gemini 3.x live sessions with its original roles. - #2162 (@toubatbrian)Models whose chat context cannot be updated mid-session (the 3.x live models) close the socket on a prefill containing
modelturns, so an initial context had to be flattened intouserturns to survive. Those sessions now sendhistoryConfig.initialHistoryInClientContent, which tells the server the leadingclientContentis history, and the prefill keeps itsuser/assistantroles.Per the
HistoryConfigreference the seeded history never triggers a model call and the conversation then starts throughrealtimeInput, so a context ending on a user question is seeded as the completed exchanges followed by that question as realtime text. Left inside the history it would be filed away unanswered.Also report when a user turn began on the final input transcript. Gemini withholds that transcript until its reply has finished generating, which had every reply landing ahead of the question it answered in the Cloud transcript.
-
Updated dependencies [
5010952,db3263b,37eda82,6b6ba2b,67620fb,fd46904,d4edb58,2446c9e,262a602,d5d8d04,0daf8d6,9d38c3e,238a58c,f7e9c0c,16c30ca]:- @livekit/agents@1.6.1
Fetched July 31, 2026
