-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Dotnet: Add modelServiceId support to SemanticKernelAgent #5422
base: main
Are you sure you want to change the base?
Dotnet: Add modelServiceId support to SemanticKernelAgent #5422
Conversation
The `SemanticKernelAgent` class has been updated to include an optional `modelServiceId` parameter, allowing the specification of a service ID for the model.
@lokitoth I don't know if ou ported this into agent chat or not but if you did you may want to take this up. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5422 +/- ##
=======================================
Coverage 75.66% 75.66%
=======================================
Files 171 171
Lines 10576 10576
=======================================
Hits 8002 8002
Misses 2574 2574
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…class to include an optional `string? modelServiceId` parameter.
…/cedricmendelin/autogen into dotnet-sk-support-keyed-instance
@cedricmendelin could you run |
The
SemanticKernelAgent
class has been updated to include an optionalmodelServiceId
parameter, allowing the specification of a service ID for the model.Why are these changes needed?
Currently,
SemanticKernelAgent
uses the parameterless method for resolvingIChatCompletionSerivce
. This will fail, when multiple models are registered in the Kernel.To support different models registered in the Kernel, I adopted the resolving of the
IChatCompletionSerivce
within theSemanticKernelAgent
with an optional parameter. When it is not set, I resolve the default instance, otherwise, I use the optional parameter as a servide id for resolving theIChatCompletionSerivce
service.Related issue number
Checks