ReqLLM.Providers.Google.ResponseBuilder (ReqLLM v1.13.0)

View Source

Google/Gemini-specific ResponseBuilder implementation.

Handles Google's specific requirements:

  • Detects functionCall in parts to set correct finish_reason
  • Google returns "STOP" even when function calls are made
  • Extracts reasoning_details with thought signatures from thinking chunks

This fixes bug #271 where streaming responses with tool calls had :stop finish_reason instead of :tool_calls.