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]: Support for Function Calling or Tools #707

Open
dcostea opened this issue Apr 28, 2024 · 4 comments
Open

[Feature]: Support for Function Calling or Tools #707

dcostea opened this issue Apr 28, 2024 · 4 comments
Assignees

Comments

@dcostea
Copy link

dcostea commented Apr 28, 2024

Background & Description

Function calling is a feature supported by many open source models, like Mistral.

Function calling feature would allow developers to use LlamaSharp in a more dynamic way, enabling them to perform complex tasks directly within the LlamaSharp environment.

Are there plans to include function calling / tools in LLamaSharp?

API & Usage

No response

How to implement

No response

@AsakusaRinne
Copy link
Collaborator

Yes, it is important for using LLM to handling complex works. I'll start making this feature after about 1 month. :)

@abhiaagarwal
Copy link

It's pretty easy to hack together your own function calling. I used Hermes-2-Theta-LLama-3-8B and got acceptable results. What would be nice is C# native annotations that translate functions into OpenAI JSON, which the "function calling method" meta seems to have standardized around. Semantic Kernel also provides this feature if you really need it with their "planner" functionality, I chose to roll my own for resource constraint reasons

@AsakusaRinne
Copy link
Collaborator

It's pretty easy to hack together your own function calling. I used Hermes-2-Theta-LLama-3-8B and got acceptable results. What would be nice is C# native annotations that translate functions into OpenAI JSON, which the "function calling method" meta seems to have standardized around.

That's inspiring! May I ask whether you work is open-source? I wonder if I can take a look of your implementation if it's possible. :)

@abhiaagarwal
Copy link

Not yet! I'm currently working out kinks, but I hope to get it done ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants