Skip to content

.Net: Add ONNX ChatClient Extensions + UT #12477

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

Merged

Conversation

rogerbarreto
Copy link
Member

Add IChatClient Extensions for ONNX Connector

Summary

This PR implements missing AddOnnxChatClient extension methods for the ONNX Connector, providing support for the new IChatClient interface alongside the existing IChatCompletionService extensions.

Changes Made

  • New Extension Methods
  • IServiceCollection Extensions: Added AddOnnxRuntimeGenAIChatClient method in a dedicated ServiceCollectionExtensions.DependencyInjection.cs file following the same pattern as other connectors like OpenAI
  • IKernelBuilder Extensions: Added AddOnnxRuntimeGenAIChatClient method in OnnxKernelBuilderExtensions.ChatClient.cs for seamless kernel configuration

@rogerbarreto rogerbarreto self-assigned this Jun 14, 2025
@rogerbarreto rogerbarreto requested a review from a team as a code owner June 14, 2025 15:31
@rogerbarreto rogerbarreto moved this to Sprint: In Review in Semantic Kernel Jun 14, 2025
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Jun 14, 2025
@rogerbarreto rogerbarreto added this pull request to the merge queue Jun 24, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jun 24, 2025
# Add IChatClient Extensions for ONNX Connector

## Summary
This PR implements missing AddOnnxChatClient extension methods for the
ONNX Connector, providing support for the new IChatClient interface
alongside the existing IChatCompletionService extensions.

## Changes Made
- New Extension Methods
- IServiceCollection Extensions: Added AddOnnxRuntimeGenAIChatClient
method in a dedicated ServiceCollectionExtensions.DependencyInjection.cs
file following the same pattern as other connectors like OpenAI
- IKernelBuilder Extensions: Added AddOnnxRuntimeGenAIChatClient method
in OnnxKernelBuilderExtensions.ChatClient.cs for seamless kernel
configuration
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 24, 2025
@rogerbarreto rogerbarreto added this pull request to the merge queue Jun 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 24, 2025
@markwallace-microsoft markwallace-microsoft added this pull request to the merge queue Jun 25, 2025
Merged via the queue into microsoft:main with commit 76f7da9 Jun 25, 2025
19 checks passed
@github-project-automation github-project-automation bot moved this from Sprint: In Review to Sprint: Done in Semantic Kernel Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code
Projects
Status: Sprint: Done
Development

Successfully merging this pull request may close these issues.

3 participants