Skip to content

Conversation

daymxn
Copy link
Member

@daymxn daymxn commented Sep 9, 2025

Adds support for the Live API through a new LiveSession struct, which is facilitate through a new liveModel method on FirebaseAI. This included support for the realtime api, as well as the incremental api.

This PR also adds support for the id field in FunctionCallPart.

TODO: Needs a changelog entry, possibly some tests, and some todo comments need cleaning up. I also need to surface a stop and possible restart method(s) for LiveSession.

@daymxn daymxn self-assigned this Sep 9, 2025
@google-oss-bot
Copy link

2 Warnings
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)
⚠️ New public headers were added, did you remember to add them to the umbrella header?

Generated by 🚫 Danger

/// The live session was closed, but not for a reason the SDK expected.
///
/// Check the `NSUnderlyingErrorKey` entry in ``errorUserInfo`` for the error that caused this.
// TODO: two common causes I can think of are api limits and network issues. I wonder if we can catch these somehow, as they seem common enough to surface as actual errors.
Copy link
Member Author

Choose a reason for hiding this comment

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

Not blocking, but I wanna investigate this at some point.

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.

3 participants