Gemini Live API Tool Calling Issues – Inconsistent Behavior and Empty Tool Responses

Hi everyone,

I’m facing issues with the Gemini Live API related to tool (function) calling:

Main Issues:

  1. Incorrect Execution: Sometimes, despite declaring tools correctly for function calling, the model treats them as executable code instead of calling the tool.
  2. Empty Responses: Even when a tool is called and returns data, the model sometimes responds with nothing, as if the output was ignored.
  3. Tool Outputs Field: In some responses, it just shows "tool_outputs" without integrating the result naturally into the conversation.

What I’ve Done:

  • Validated the tool schema.
  • Logged tool responses on the backend.
  • Tested with multiple prompt variations.

Is this a known issue, or is there a workaround to ensure consistent tool behavior?