gunpal5 / Google_GenerativeAI

Unofficial C# Google Generative AI SDK (Google Gemini) with function calls support
MIT License
34 stars 4 forks source link

More control for Functions #6

Closed techjb closed 3 months ago

techjb commented 3 months ago

After calling function, the library automatically calls gemini to format the function result into text. I just want to skip this step, and recover the execution control after the function is called.

gunpal5 commented 3 months ago

You can disable the the auto function calling by setting model.AutoCallFunction = false then you can manually execute the function and pass the result to Gemini.