Skip to content

feat(gemini): SSE streaming path silently drops functionCall chunks #1639

@bug-ops

Description

@bug-ops

Follow-up from PR #1635 (Gemini Phase 3 tool use).

GeminiStreamPart in sse.rs does not have a function_call field. When Gemini streams a tool call response via SSE, the functionCall chunks are silently dropped.

Today chat_with_tools() uses the non-streaming endpoint, so this is safe. But if streaming tool use is added in the future, the SSE parser must be extended.

Add a TODO comment in the SSE streaming code noting this limitation, and create a tracking issue for Phase 4 (streaming tool use) of epic #1592.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions