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

[SAMPLE] Microsoft.Extensions.AI function calling Sample #254

Open
zateutsch opened this issue Feb 28, 2025 · 0 comments
Open

[SAMPLE] Microsoft.Extensions.AI function calling Sample #254

zateutsch opened this issue Feb 28, 2025 · 0 comments
Assignees

Comments

@zateutsch
Copy link
Contributor

Couple things that need to happen for this to work:

  • Update ORTChatClient to support generic function calling, similar to the Ollama client. The client just needs to know function call messages exist and how to add them to the history and only return message output, but the FunctionInvokingChatClient extension should handle function invocation automatically.
  • Update prompt formatter to handle function calling cases. This will probably require per-model templates to make sure each model is getting available functions in the format it expects.

@Jaylyn-Barbee will support me on this since this should help enable Agent samples.

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

2 participants