Hi, I’m currently working on testing out using the Gemini Function Calling in a UX workflow.
The issue that I’m having however is that the model is having a hard time differentiating from previously successful requests and the current user request. Because of this, previous function call requests are being executed more than once.
For example, if I start a conversation with “add a box in the center”, the model will usually call the appropriate createRenderable
function. If I then ask for the box to be moved or the color changed, the model sometimes will respond. But sometimes the model just creates another box in the center. The model doesn’t realize that function request was in the past.
Has anyone else run up against this with function calling? Or does anyone have any links to documentation/blogs/videos related to this, or just thoughts in general? It occurs with both Flash 1.5, Flash 2.0, and Pro 1.5. I have tried various system prompt instructions to try to ameliorate this with only varying success. And I have more ideas to “fix” it (I can update the original text, marking it as “complete”, maybe that will work). It just seems like a fundamental issue that the Gemini team would have run across.
Thank you!