Skip to content

feat(ai): add live session resumption - #15904

Merged
daymxn merged 18 commits into
mainfrom
origin/cj/ai-live-session-resumption
Apr 28, 2026
Merged

feat(ai): add live session resumption#15904
daymxn merged 18 commits into
mainfrom
origin/cj/ai-live-session-resumption

Conversation

@cynthiajoan

@cynthiajoan cynthiajoan commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

Per b/445716402,

This PR adds support for session resumption in the Live API. More specifically, this PR adds the new type SessionResumptionConfig, the server message LiveSessionResumptionUpdate, and the resumeSession method on LiveSession.

This PR also adds support for context window compression via the new type ContextWindowCompressionConfig, with the matching field contextWindowCompression on LiveGenerationConfig.

@gemini-code-assist

Copy link
Copy Markdown
Contributor
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

@danger-firebase-ios

danger-firebase-ios Bot commented Mar 5, 2026

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

Generated by 🚫 Danger

@daymxn
daymxn requested a review from andrewheard March 13, 2026 17:04

@andrewheard andrewheard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Please investigate the one minor API question about compressionWindow.

Comment thread FirebaseAI/Tests/TestApp/Tests/Integration/LiveSessionTests.swift Outdated
Comment thread FirebaseAI/Sources/Types/Internal/Live/BidiContextWindowCompressionConfig.swift Outdated
@daymxn daymxn changed the title [AI] Add live session resumption feat(ai): add live session resumption Mar 17, 2026
@daymxn
daymxn marked this pull request as ready for review April 22, 2026 15:51
@daymxn
daymxn requested a review from a team as a code owner April 22, 2026 15:51
@daymxn
daymxn requested a review from andrewheard April 22, 2026 15:51
@daymxn daymxn added this to the 12.13.0 - M180 milestone Apr 28, 2026
@daymxn
daymxn enabled auto-merge (squash) April 28, 2026 19:21
@daymxn
daymxn merged commit c4a15f1 into main Apr 28, 2026
47 of 49 checks passed
@daymxn
daymxn deleted the origin/cj/ai-live-session-resumption branch April 28, 2026 19:22
leojaygoogle pushed a commit that referenced this pull request Jun 29, 2026
Co-authored-by: Daymon <daymxn@google.com>
Co-authored-by: Daymon <17409137+daymxn@users.noreply.github.com>
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.

4 participants