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
                    
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.8.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.8.0" />
                    
Directory.Packages.props
<PackageReference Include="Sylin.Koan.Core.Adapters" />
                    
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 Sylin.Koan.Core.Adapters --version 0.8.0
                    
#r "nuget: Sylin.Koan.Core.Adapters, 0.8.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.8.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.8.0
                    
Install as a Cake Addin
#tool nuget:?package=Sylin.Koan.Core.Adapters&version=0.8.0
                    
Install as a Cake Tool

Koan.Core.Adapters

✅ Validated against BaseKoanAdapter and readiness services on 2025-09-29. See TECHNICAL.md for 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 through IKoanAdapter, 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 BaseKoanAdapter to get capability reporting, orchestration hooks, and configuration helpers.
  • Register adapters via IKoanAutoRegistrar so they participate in Koan’s bootstrap discovery without manual program wiring.

Configuration

  • Provide strongly-typed options by calling ConfigureOptions<TOptions>() inside your adapter.
  • Use MissingTypes helpers to validate required services and emit actionable error messages.
  • Surface readiness information by overriding BuildReadiness and contributing data through ReadinessReport.

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.ThrowIfMissing to guard against trimming.
  • Adapters running outside orchestration contexts can bypass OrchestrationRuntimeBridge; ensure your code checks IsOrchestrationAware first.
  • 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 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.

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