Sylin.Koan.AI.Orchestration 0.8.0

dotnet add package Sylin.Koan.AI.Orchestration --version 0.8.0
                    
NuGet\Install-Package Sylin.Koan.AI.Orchestration -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.AI.Orchestration" 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.AI.Orchestration" Version="0.8.0" />
                    
Directory.Packages.props
<PackageReference Include="Sylin.Koan.AI.Orchestration" />
                    
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.AI.Orchestration --version 0.8.0
                    
#r "nuget: Sylin.Koan.AI.Orchestration, 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.AI.Orchestration@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.AI.Orchestration&version=0.8.0
                    
Install as a Cake Addin
#tool nuget:?package=Sylin.Koan.AI.Orchestration&version=0.8.0
                    
Install as a Cake Tool

Koan.AI.Orchestration

Typed, immutable chain composition for Koan: RAG pipelines, branching, parallel execution, structured output, compression, moderation, and streaming — all in a fluent builder.

  • Target framework: net10.0
  • License: Apache-2.0
  • Version: 0.6.3

Install

dotnet add package Sylin.Koan.AI.Orchestration

Quick Start

// Simple RAG chain
var result = await Chain.Create()
    .System("Answer questions using only the provided context.")
    .Retrieve<KnowledgeArticle>()    // Semantic retrieval from entity store
    .Rerank()                        // Re-rank retrieved chunks by relevance
    .Compress()                      // Compress context to fit token budget
    .Chat("What is Koan Framework?")
    .Run(ct);

Console.WriteLine(result.Text);

Fluent Builder API

Chain.Create()
    .System(string systemPrompt)               // Persona / instructions
    .Chat(string message)                      // Add a chat turn
    .Retrieve<TEntity>()                       // Semantic retrieval step
    .Parse<TOutput>()                          // Structured output extraction
    .Classify(string[] labels)                 // Classification step
    .Branch(condition, thenChain, elseChain)   // Conditional branching
    .Parallel(Chain a, Chain b, ...)           // Parallel execution
    .Rerank()                                  // Re-rank retrieval results
    .Compress()                                // Compress context
    .Moderate()                                // Content moderation gate
    .WithTools(Tool[] tools)                   // Function calling
    .WithMemory()                              // Conversation history
    .Scope(IAiPipeline pipeline)               // Target specific pipeline
    .Run(CancellationToken ct)                 // → ChainResult
    .Stream(CancellationToken ct)              // → IAsyncEnumerable<ChainChunk>

Structured Output

public record ProductReview(string Sentiment, int Score, string Summary);

var result = await Chain.Create()
    .System("Extract structured review information.")
    .Chat(rawReviewText)
    .Parse<ProductReview>()
    .Run(ct);

var review = result.As<ProductReview>();

Branching

var chain = Chain.Create()
    .Chat(userMessage)
    .Classify(["technical", "billing", "general"])
    .Branch(
        condition: r => r.ClassifiedAs == "technical",
        then: Chain.Create().WithTools(technicalTools),
        @else: Chain.Create().System("Route to billing team")
    );

Streaming

await foreach (var chunk in Chain.Create()
    .Retrieve<Article>()
    .Chat(question)
    .Stream(ct))
{
    Console.Write(chunk.Content);
}

Reference

  • ADR: docs/decisions/AI-0021-category-driven-ai-with-convention-defaults.md
  • Related: Koan.AI (pipeline facade), Koan.AI.Agents (agentic patterns), Koan.AI.Prompt
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 (2)

Showing the top 2 NuGet packages that depend on Sylin.Koan.AI.Orchestration:

Package Downloads
Sylin.Koan.AI.Agents

Entity-aware autonomous agents for Koan AI: auto-generated tools from Entity<T> with ReAct reasoning.

Sylin.Koan.Rag

Koan RAG module: entity-native corpora, agentic retrieval, emergent concept graphs, contextual chunking.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.8.0 114 5/16/2026