Sylin.Koan.Core.Adapters
0.8.0
dotnet add package Sylin.Koan.Core.Adapters --version 0.8.0
NuGet\Install-Package Sylin.Koan.Core.Adapters -Version 0.8.0
<PackageReference Include="Sylin.Koan.Core.Adapters" Version="0.8.0" />
<PackageVersion Include="Sylin.Koan.Core.Adapters" Version="0.8.0" />
<PackageReference Include="Sylin.Koan.Core.Adapters" />
paket add Sylin.Koan.Core.Adapters --version 0.8.0
#r "nuget: Sylin.Koan.Core.Adapters, 0.8.0"
#:package Sylin.Koan.Core.Adapters@0.8.0
#addin nuget:?package=Sylin.Koan.Core.Adapters&version=0.8.0
#tool nuget:?package=Sylin.Koan.Core.Adapters&version=0.8.0
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. |
-
net10.0
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging (>= 10.0.0)
- Microsoft.Extensions.Options (>= 10.0.0)
- Sylin.Koan.Core (>= 0.8.0)
- Sylin.Koan.Data.Abstractions (>= 0.8.0)
- Sylin.Koan.Orchestration.Abstractions (>= 0.8.0)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on Sylin.Koan.Core.Adapters:
| Package | Downloads |
|---|---|
|
Sylin.Koan.Data.Core
Data core for Koan: repository primitives, options, and shared helpers for relational and document providers. |
|
|
Sylin.Koan.Data.Connector.Mongo
MongoDB data provider for Koan: options binding and repository integration for document databases. |
|
|
Sylin.Koan.AI.Connector.Ollama
Ollama provider for Koan AI (chat, streaming, embeddings) with Dev auto-discovery. |
|
|
Sylin.Koan.AI.Connector.ZenGarden
Zen Garden AI Orchestrator connector — routes all AI capabilities through the unified orchestrator. |
|
|
Sylin.Koan.Data.Connector.Couchbase
Couchbase data provider for Koan: options binding and repository integration for document databases. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.8.0 | 779 | 5/16/2026 |
See release notes: https://github.com/sylin-labs/Koan-framework/releases