Skip to content

Conversation

@lottielin
Copy link

This PR closes #2103 by exposing the BidiGenerateContentSetupComplete signal from Gemini Live API.

Currently, clients using run_live have no definitive way to know when the initial model setup is finished and the WebSocket is ready to receive user input.

This change:

  • updates gemini_llm_connection.py to detect the setup_complete (see API)
  • adds a setup_complete boolean field to the LlmResponse model
  • modified _postprocess_live in base_llm_flow.py to allow setup_complete responses to pass through the event filter

Testing Plan

Unit Tests:

  • added unit test test_receive_setup_complete: verify setup_complete messages are correctly adapted to LlmResponse
  • added unit test test_live_streaming_setup_complete in test_streaming.py: verify run_live yields an event with setup_complete
  • all unit tests pass locally

@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@adk-bot adk-bot added the live [Component] This issue is related to live, voice and video chat label Feb 13, 2026
@ryanaiagent ryanaiagent self-assigned this Feb 13, 2026
@ryanaiagent ryanaiagent added request clarification [Status] The maintainer need clarification or more information from the author needs review [Status] The PR/issue is awaiting review from the maintainer and removed request clarification [Status] The maintainer need clarification or more information from the author labels Feb 13, 2026
@ryanaiagent
Copy link
Collaborator

Hi @lottielin , Thank you for your contribution! We appreciate you taking the time to submit this pull request. Your PR has been received by the team and is currently under review. We will provide feedback as soon as we have an update to share.

@ryanaiagent
Copy link
Collaborator

Hi @wyf7107 , can you please review this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

live [Component] This issue is related to live, voice and video chat needs review [Status] The PR/issue is awaiting review from the maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In live api, we need a "setup_complete" event

3 participants