#Function calling in python Google.generativeai
1 messages · Page 1 of 1 (latest)
I have to learn how to have function calling in python. I could then add real-time information and much more to the gemini bot
Yep, I mean to ask the same question
Just ask the gemini model to produce the schema for you when you need it, use 1 to 3 shot learning.
then use the requests and wrap the rest api around it, this also you can ask the model.
sorry, don't understand. Can you rephrase for a newbie?
looks like they have an example here: https://ai.google.dev/docs/function_calling#function-calling-curl-samples
Yeah. But how can we use it in python
Can you please elaborate
try this
But does the library contain the feature?
doesn't seem like it. One would have to use vertex. Another question is, how do you feed the result of the function call back to the model.