-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
File Name
gemini/function-calling/function_calling_data_structures.ipynb
What happened?
Hi!
I am experiencing function calling with Gemini. On this document, it says Gemini support multi-turn function calling: https://ai.google.dev/gemini-api/docs/function-calling?_gl=1*5vmwdb*_up*MQ..*_ga*MTk5OTQ2NDQ4Ni4xNzI0OTYzMDg1*_ga_P1DBVKWT6V*MTcyNDk2MzA4NS4xLjAuMTcyNDk2MzA4OS4wLjAuMTI0MjY5MDE1Ng..#function-calling-one-and-a-half-turn-curl-sample. However, in my experience, it doesn't support the following scenario:
- I have two simple functions: one that doesn't take any parameter and just returns the current location of the user (
getLocation); another one that take a location and return the weather of that location (getWeather). - I ask the following question: "What is the weather in my location?".
The model is unable to first return a function call togetLocationthen wait for the result of the call and finally issue a second turn that asks forgetWeather.
Is this something that the model supports?
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
No labels