Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google Gemini does not support Function Calling and Strucutured Outputs together?

I have a usecase where in my AI app I need to have Strucutured Outputs and Function Calling together. But when I try it in Google AI Studio, I cannot select both at the same time. Does Google not support Strucutured Outputs and Function Calling in single api hit? 

I was able to use both these in OpenAI but not in Gemini.

Solved Solved
0 3 114
1 ACCEPTED SOLUTION

@Kamalt Yes, these two features are not yet supported together. You will need to have two separate calls at the moment. 

View solution in original post

3 REPLIES 3

@Kamalt Yes, these two features are not yet supported together. You will need to have two separate calls at the moment. 

Hi @ericdong Thank you so much for this information. Just wanted to know if this is something in your roadmap for Gemini? In that way I can keep the code open for future implmentation of SO + FC. 

@Kamalt no problem. I am glad that the information helped. The feedback has been actively evaluated.