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

Allow to reuse KM service Builder and config extensions #901

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

dluc
Copy link
Collaborator

@dluc dluc commented Nov 19, 2024

Allow to reuse KM configuration utilities in apps.

  • IConfigurationBuilder.AddKernelMemoryConfigurationSources(...): adds to .NET ConfigurationBuilder the sources used by KM service, such as appsettings.json, appsettings.<ENV>.json (not case sensitive), user secrets and env vars. Extension available in Microsoft.KernelMemory.Core nuget.
  • IKernelMemoryBuilder.ConfigureDependencies(...): configures and wires up all .NET dependencies accordingly to the given configuration. Extension available in Microsoft.KernelMemory nuget.

@dluc dluc merged commit 6173e9b into microsoft:main Nov 19, 2024
6 checks passed
@dluc dluc deleted the servext branch November 19, 2024 02:11
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