autogen/dotnet/samples
cedricmendelin b37c192424
Dotnet: Add modelServiceId support to SemanticKernelAgent (#5422)
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

- [x] I've included any doc changes needed for
https://microsoft.github.io/autogen/. See
https://microsoft.github.io/autogen/docs/Contribute#documentation to
build and test documentation locally.
- [x] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [x] I've made sure all auto checks have passed.

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2025-02-25 20:39:45 +00:00
..
AgentChat Dotnet: Add modelServiceId support to SemanticKernelAgent (#5422) 2025-02-25 20:39:45 +00:00
GettingStarted Create and publish documentation site for 0.4 dotnet (#5275) 2025-01-30 19:04:26 -05:00
GettingStartedGrpc Dotnet Grpc worker implementation (#5245) 2025-02-05 08:34:02 -08:00
Hello fix: Unhandled Messages should not error when no deserializer is found (#5549) 2025-02-14 10:27:29 -05:00
dev-team feat: Release pre-requisites for Microsoft.AutoGen.Core NuGet (#5270) 2025-01-30 17:08:39 -05:00
Directory.Build.props Dotnet package cleanup and reconciliation of dirs 2024-10-02 12:57:50 -04:00