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

Support of IEmbeddingGeneration<TValue, TEmbedding> interface by Kernel.GetService method #1693

Merged

Conversation

SergeyMenshykh
Copy link
Member

Motivation and Context

This change is required for backward compatibility of the Kernel.GetService method, allowing it to return services registered as instances of classes that implement the IEmbeddingGeneration<TValue, TEmbedding> interface.

Contribution Checklist

… used as a type parameter of the ketnel.GetService method.
@SergeyMenshykh SergeyMenshykh requested a review from a team as a code owner June 23, 2023 10:28
@github-actions github-actions bot added .NET Issue or Pull requests regarding .NET code kernel.core labels Jun 23, 2023
@dmytrostruk dmytrostruk added the PR: ready to merge PR has been approved by all reviewers, and is ready to merge. label Jun 23, 2023
@shawncal shawncal added this pull request to the merge queue Jun 23, 2023
Merged via the queue into microsoft:main with commit b344fa0 Jun 23, 2023
10 checks passed
@evchaki evchaki added this to the Sprint 34 milestone Jun 30, 2023
shawncal pushed a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
…el.GetService method (microsoft#1693)

### Motivation and Context
This change is required for backward compatibility of the
`Kernel.GetService` method, allowing it to return services registered as
instances of classes that implement the `IEmbeddingGeneration<TValue,
TEmbedding>` interface.

### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [x] The code builds clean without any errors or warnings
- [x] The PR follows SK Contribution Guidelines
(https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
- [x] The code follows the .NET coding conventions
(https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions)
verified with `dotnet format`
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code PR: ready to merge PR has been approved by all reviewers, and is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants