I wanted to report an inaccuracy in the Google Gen AI Go SDK documentation.
I implemented a function call in an application that uses the gemini-live-2.5-flash-preview model.
The model called the function correctly, but when I returned the function result, the model didn’t continue with the response.
The Google Gen AI Go SDK documentation states that the ID field is Optional for the FunctionResponse structure. However, this isn’t the case, at least for the gemini-live-2.5-flash-preview model.
Adding the ID field in the FunctionResponse structure solved the problem.
So, at least for the gemini-live-2.5-flash-preview model, the ID field is Required.