(gemini live 3.1): fix tool responses#5413
Merged
tinalenguyen merged 6 commits intomainfrom Apr 11, 2026
Merged
Conversation
|
Hey @tinalenguyen, reviewed #5413 β much better approach. Keeping the fix scoped to the plugin instead of touching core makes sense, especially with multiple providers depending on a stable base. The mutable_chat_context gate is clean. Happy to close my PR in favor of this one. |
davidzhao
approved these changes
Apr 11, 2026
| ) | ||
| if turns: | ||
| self._send_client_event(types.LiveClientContent(turns=turns, turn_complete=False)) | ||
| if self._realtime_model.capabilities.mutable_chat_context: |
Member
There was a problem hiding this comment.
should we log a warning if it's not mutable?
Member
Author
There was a problem hiding this comment.
i added a warning here in the init, could be kinda noisy in update_chat_ctx
russellmartin-livekit
pushed a commit
that referenced
this pull request
Apr 13, 2026
leonobitech
pushed a commit
to leonobitech/backend
that referenced
this pull request
Apr 14, 2026
π Update livekit-agents dependency from @fix/gemini-3.1-tool-response to @main π Update livekit-plugins-google dependency from @fix/gemini-3.1-tool-response to @main β Fix merged upstream via livekit/agents#5413 π Powered by Claude Opus 4.6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
send tool results without touching
send_client_contentfor gemini 3.1 viacapabiltiies.mutable_*guards. also remove shutdown model (source)verified via survey agent and these models:
"gemini-live-2.5-flash-native-audio""gemini-3.1-flash-live-preview""gemini-2.5-flash-native-audio-preview-12-2025"thank you to @leonobitech and @FMFigueroa for providing the context to this issue π