Skip to content

Conversation

andrewheard
Copy link
Contributor

Replaced the LiveServerMessage struct containing the MessageType enum with a protocol. This avoids potential breaking changes if new message types need to be added.

#no-changelog

daymxn and others added 25 commits September 30, 2025 15:13
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors LiveServerMessage from a struct with an enum to a protocol. This is an excellent change that improves the extensibility of the API, allowing for new message types to be added without causing breaking changes. The implementation is solid and consistently applied across all relevant files. The related changes, such as improving error handling during session setup and adding a new API test, are also valuable. I have a couple of minor suggestions to improve code style consistency and make the new test more robust. Overall, great work on this refactoring!

@andrewheard andrewheard mentioned this pull request Oct 1, 2025
Base automatically changed from dlr/firebaseai-live-api to main October 1, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants