Skip to content

Response streaming broken after migration to Gemini Interactions API #4384

@remygendron

Description

@remygendron

🔴 Required Information

Describe the Bug:

  • is_final_response() reports True event if turn_complete == False.
  • Response is now spread over multiple event.content.parts, even if turn_complete == True. The 'generate content' API would bundle a final response into parts[0], even for very large responses.
  • The final response is duplicated in the same event. Weirder still, the duplication starts in the same part, making deduplication difficult to implement.

Expected Behavior:

  • is_final_response() semantics are respected.
  • Can live with Interactions API spreading the response over multiple parts.
  • Can't live with response duplication, more so if duplication starts in the same part/string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    live[Component] This issue is related to live, voice and video chat

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions