microsoft / microsoft/ai-dev-gallery

[SAMPLE] Microsoft.Extensions.AI function calling Sample

Open
#254 0 comments 0 reactions 2 assignees View on GitHub

@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 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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.