You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using function calling feature for Gemini API, the Tool must be used.
Here is a thought of mine. Is it possible just simple pass a C# method or lambda or it's method type to the GenerateContent method's tools argument. Your library might be able to convert the method into a Tool object. That will be extremely useful.
Furthermore, it's possibly call that method directly when the Gemini API response with that method calls.
The text was updated successfully, but these errors were encountered:
Hi @doggy8088
That sounds like a great idea. I've seen something like this in one of the other .NET-based SDKs where the developer used one or more Attribute marker to handle function calling. I'll put it in the backlog.
When using function calling feature for Gemini API, the Tool must be used.
Here is a thought of mine. Is it possible just simple pass a C# method or lambda or it's method type to the
GenerateContent
method'stools
argument. Your library might be able to convert the method into aTool
object. That will be extremely useful.Furthermore, it's possibly call that method directly when the Gemini API response with that method calls.
The text was updated successfully, but these errors were encountered: