microsoft / microsoft/ai-dev-gallery
[SAMPLE] Microsoft.Extensions.AI function calling Sample
Open
@Jaylyn-Barbee is already working on this.
Since Feb 28, 2025.
sample
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 223
- PR merge metrics
- No merged PRs in 30d
Description
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
FunctionInvokingChatClientextension 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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.