Sylin.Koan.Core.Adapters
0.17.0
dotnet add package Sylin.Koan.Core.Adapters --version 0.17.0
NuGet\Install-Package Sylin.Koan.Core.Adapters -Version 0.17.0
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="Sylin.Koan.Core.Adapters" Version="0.17.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sylin.Koan.Core.Adapters" Version="0.17.0" />
<PackageReference Include="Sylin.Koan.Core.Adapters" />
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 Sylin.Koan.Core.Adapters --version 0.17.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sylin.Koan.Core.Adapters, 0.17.0"
#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 Sylin.Koan.Core.Adapters@0.17.0
#: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=Sylin.Koan.Core.Adapters&version=0.17.0
#tool nuget:?package=Sylin.Koan.Core.Adapters&version=0.17.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Koan.Core.Adapters
✅ Validated against
BaseKoanAdapterand readiness services on 2025-09-29. SeeTECHNICAL.mdfor the deep dive.
Contract
- Purpose: Provide the unified adapter foundation for Koan modules (storage, messaging, orchestration) with capability negotiation and bootstrap reporting.
- Primary inputs: Implementations of
BaseKoanAdapter, adapters registered throughIKoanAdapter, configuration snapshots, and capability manifests. - Outputs: Adapter registration with Koan auto-registrars, capability metadata surfaced via
AdapterCapabilities, and readiness diagnostics. - Failure modes: Missing capability declarations, adapters not registered through
KoanAutoRegistrar, or template scaffolds left unimplemented. - Success criteria: Adapters self-describe capabilities, integrate with orchestration bridges, and participate in readiness/reporting pipelines out of the box.
Quick start
using Koan.Core.Adapters;
using Koan.Core;
public sealed class MySearchAdapter : BaseKoanAdapter
{
public override string Name => "search";
protected override void Describe(AdapterCapabilities caps)
{
caps.WithCategory("search")
.Supports("index:create")
.Supports("query:vector");
}
}
public sealed class KoanAutoRegistrar : IKoanAutoRegistrar
{
public string ModuleName => "Search";
public void Initialize(IServiceCollection services)
=> services.AddKoanAdapter<MySearchAdapter>();
public void Describe(BootReport report, IConfiguration cfg, IHostEnvironment env)
=> report.AddNote("Search adapter registered");
}
- Derive from
BaseKoanAdapterto get capability reporting, orchestration hooks, and configuration helpers. - Register adapters via
IKoanAutoRegistrarso they participate in Koan’s bootstrap discovery without manual program wiring.
Configuration
- Provide strongly-typed options by calling
ConfigureOptions<TOptions>()inside your adapter. - Use
MissingTypeshelpers to validate required services and emit actionable error messages. - Surface readiness information by overriding
BuildReadinessand contributing data throughReadinessReport.
Edge cases
- Multiple adapters with the same name will override one another; use unique identifiers per module.
- Long-running readiness checks should stream using
ReadinessProbeContext.WriteAsync(...)instead of blocking. - If an adapter depends on optional assemblies, wrap reflection calls with
MissingTypes.ThrowIfMissingto guard against trimming. - Adapters running outside orchestration contexts can bypass
OrchestrationRuntimeBridge; ensure your code checksIsOrchestrationAwarefirst.
Related packages
Koan.Core– shared configuration/environment facilities used for adapter discovery.Koan.Orchestration.Abstractions– orchestration bridge interfaces consumed by adapter scaffolding.Koan.Data.Abstractions– provides base entity contracts for data adapters.
Documentation
TECHNICAL.md– lifecycle, readiness pipeline, and capability DSL reference.
Reference
BaseKoanAdapter– base class implementing capability negotiation.AdapterCapabilities– fluent DSL for declaring support matrix.BootstrapReport– adapter reporting surface.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- Microsoft.Extensions.Configuration (>= 10.0.8)
- Microsoft.Extensions.DependencyInjection (>= 10.0.8)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Logging (>= 10.0.8)
- Microsoft.Extensions.Options (>= 10.0.8)
- Sylin.Koan.Core (>= 0.17.0 && < 0.18.0)
- Sylin.Koan.Data.Abstractions (>= 0.17.0 && < 0.18.0)
- Sylin.Koan.Orchestration.Abstractions (>= 0.17.0 && < 0.18.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sylin.Koan.Core.Adapters:
| Package | Downloads |
|---|---|
|
Sylin.Koan.AI.Connector.ZenGarden
Zen Garden AI Orchestrator connector — routes all AI capabilities through the unified orchestrator. |
GitHub repositories
This package is not used by any popular GitHub repositories.
See release notes: https://github.com/sylin-labs/Koan-framework/releases