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

Dotnet: Add modelServiceId support to SemanticKernelAgent #5422

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cedricmendelin
Copy link

The SemanticKernelAgent class has been updated to include an optional modelServiceId parameter, allowing the specification of a service ID for the model.

Why are these changes needed?

Currently, SemanticKernelAgent uses the parameterless method for resolving IChatCompletionSerivce. 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 the SemanticKernelAgent 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 the IChatCompletionSerivce service.

Related issue number

Checks

The `SemanticKernelAgent` class has been updated to include an optional `modelServiceId` parameter, allowing the specification of a service ID for the model.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant