Harmony.SemanticKernel.Core 1.0.1

dotnet add package Harmony.SemanticKernel.Core --version 1.0.1
                    
NuGet\Install-Package Harmony.SemanticKernel.Core -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Harmony.SemanticKernel.Core" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Harmony.SemanticKernel.Core" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Harmony.SemanticKernel.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Harmony.SemanticKernel.Core --version 1.0.1
                    
#r "nuget: Harmony.SemanticKernel.Core, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Harmony.SemanticKernel.Core@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Harmony.SemanticKernel.Core&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Harmony.SemanticKernel.Core&version=1.0.1
                    
Install as a Cake Tool

Harmony.SemanticKernel.Core

Harmony.SemanticKernel.Core is the core library for integrating with the Semantic Kernel ecosystem. It provides kernel hosting, provider configuration primitives, kernel I/O helpers, and storage configuration used across higher-level packages and sample applications in this repository.

Supported:

  • Target framework: .NET 9
  • Language: C# 13

Contents

  • Kernel host and lifecycle management (KernelHost)
  • Provider configuration types (ProviderConfig, ChatModelConfig)
  • Storage configuration (StoreConfig)
  • Kernel I/O helpers (KernelIO)
  • Integration patterns for model providers and persistence backends

Installation

From source:

  1. Add a project reference to src/Harmony.SemanticKernel.Core/Harmony.SemanticKernel.Core.csproj.
  2. Restore and build with:

From package feed:

  • Reference the NuGet package (if published) by package ID in your consuming project.

Quick start

  1. Reference the project or package in your application.
  2. Configure providers and storage, then construct the kernel host.

Example:

Refer to the samples/ folder for complete, runnable samples. The sample in this repo is located at:

  • samples/SK_HarmonyFormat_Sample/Program.cs

Run a sample:

Or from Visual Studio: open the solution and run via Debug > Start Without Debugging.

Configuration notes

  • ProviderConfig: contains provider identity, credentials and optional metadata. Required properties should be explicitly set.
  • ChatModelConfig: includes ModelId, Endpoint, and per-model options. Validate Endpoint before use.
  • StoreConfig: holds storage endpoint and options. Decide whether properties are required or nullable based on your deployment.

Nullability & runtime guidance

This library uses nullable reference types. To avoid runtime issues:

  • Mark required configuration properties with required where appropriate.
  • Validate inputs with ArgumentNullException.ThrowIfNull or ArgumentException.ThrowIfNullOrEmpty.
  • Ensure methods that declare non-nullable return types do not return null; throw or return a safe default instead.

Testing

  • Target tests to .NET 9.
  • Add unit tests for any new behavior and integration tests for provider and storage scenarios.
  • Run tests with:

Contributing

Please follow repository guidelines in CONTRIBUTING.md and respect the project .editorconfig. Key expectations:

  • Adhere to coding standards and formatting rules.
  • Add unit tests for new behavior.
  • Keep public API changes backward compatible where possible.
  • Open a pull request and include a clear description of changes.

Before committing:

  • Run static analyzers and fix nullable warnings.
  • Ensure builds succeed: dotnet build

Troubleshooting

  • CS86xx nullable warnings: confirm required properties are initialized or intentionally nullable.
  • Connection failures: verify provider endpoints, keys, and network access.
  • If you see ambiguous runtime nulls, add explicit argument and state validation.

License

See the repository LICENSE file for license terms.

Contact

Open an issue in the repository for bugs or feature requests. Provide reproduction steps and relevant configuration snippets.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Harmony.SemanticKernel.Core:

Package Downloads
Harmony.Mcp

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 242 12/19/2025
1.0.0 264 12/18/2025