-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is Function Calling possible? #81
Comments
Badly needed |
It's already supported. |
That'd be dope! I'll try that next week! |
|
What's the code you are configuring the function / tool with, and then calling Gemini? |
Sorry, if I set model as 'gemini-1.5-flash' it works! |
No problem but I'm still highly interested in the source code |
Actually now I'm at the point that I'm trying function calling and it doesn't seem to be working. I was providing a function to retrieve weather data. I tried both |
Do you add function_calling_config parameter? Try to delete this. |
No, do you have some code by any chance? @adamglin0 How did you solve the problem? |
I tested explicitly specifying |
Let me find my old code, this will take some time. |
@MrCsabaToth I can no longer reproduce the issue. But I can tell you how I resolved it.
But still not successful.
|
Reporting back about what I've found out: @adamglin0 was exactly right here #81 (comment) If I go with Since https://github.com/google-gemini/generative-ai-dart/blob/main/samples/dart/bin/function_calling.dart demonstrates a function call chain possibility, I expect the model to figure out the two step of first calling the location function for the lat long GPS, and then use those as parameters to call the weather function. |
I'm dealing with a problem with multiple tools: #194 |
I've looked into the samples a bit and the available params but I'm not seeing anything about function calling/tools. Is this already possible and I'm missing it or is it planned to be supported? It would be awesome to be able to call local Dart functions through Gemini similar to how it appears to be possible with Python or a REST API
The text was updated successfully, but these errors were encountered: