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 facilitated 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.

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

google-oss-bot commented Sep 9, 2025

1 Warning
⚠️ New public headers were added, did you remember to add them to the umbrella header?

Generated by 🚫 Danger

@paulb777
Copy link
Member

@daymxn Please resolve conflicts to enable CI to run

}
}

struct BidiAudioTranscriptionConfig: Encodable {}
Copy link
Member

Choose a reason for hiding this comment

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

What is the purpose of this struct? It doesn't have an implementation.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is for enabling transcriptions. On the backend, it's an empty struct, but they note that they intend to add configurations in the future (and there are currently pending internal ones too). But from the public API standpoint, it's an empty config. But sending the config implicitly enabled transcripts.

The public API mapping for this is AudioTranscriptionConfig, see the docs on that struct as well (as it mentions this).


/// Sent in response to a `BidiGenerateContentSetup` message from the client.
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
struct BidiGenerateContentSetupComplete: Decodable, Sendable {}
Copy link
Member

Choose a reason for hiding this comment

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

What is the purpose of this struct? It doesn't have an implementation.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a message the backend sends when setup is complete. It's an empty struct, but maps to setupComplete on BidiGenerateContentServerMessage.

@andrewheard andrewheard added this to the 12.4.0 - M171 milestone Sep 26, 2025
@daymxn daymxn marked this pull request as ready for review September 26, 2025 21:28
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.

5 participants