Skip to content
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

Feature suggestion: create a Tool object from a C# method #23

Open
doggy8088 opened this issue Mar 30, 2024 · 1 comment
Open

Feature suggestion: create a Tool object from a C# method #23

doggy8088 opened this issue Mar 30, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@doggy8088
Copy link
Contributor

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.

@jochenkirstaetter jochenkirstaetter added enhancement New feature or request help wanted Extra attention is needed labels Mar 30, 2024
@jochenkirstaetter
Copy link
Contributor

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.

Thanks for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants