Follow-up from PR #1635 (Gemini Phase 3 tool use).
When converting a tool with no parameters, convert_tool_definitions() produces parameters: {type: OBJECT, properties: {}}. The Gemini API accepts this, but it is cleaner to omit the parameters field entirely for no-parameter tools.
Evaluate whether omitting parameters is correct per the Gemini function calling spec and update the conversion logic if so.
Part of #1592.
Follow-up from PR #1635 (Gemini Phase 3 tool use).
When converting a tool with no parameters,
convert_tool_definitions()producesparameters: {type: OBJECT, properties: {}}. The Gemini API accepts this, but it is cleaner to omit theparametersfield entirely for no-parameter tools.Evaluate whether omitting
parametersis correct per the Gemini function calling spec and update the conversion logic if so.Part of #1592.