Ananke.Design 0.1.0

dotnet add package Ananke.Design --version 0.1.0
                    
NuGet\Install-Package Ananke.Design -Version 0.1.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="Ananke.Design" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ananke.Design" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Ananke.Design" />
                    
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 Ananke.Design --version 0.1.0
                    
#r "nuget: Ananke.Design, 0.1.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 Ananke.Design@0.1.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=Ananke.Design&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Ananke.Design&version=0.1.0
                    
Install as a Cake Tool

Ananke.Design

NuGet License

Design-time tooling for Ananke — YAML manifest import, workflow topology DSL, model resolution, and Mermaid diagram export. Define pipeline structure declaratively; bind job implementations in code.

Install

dotnet add package Ananke.Design

What it does

Ananke.Design separates what the workflow looks like (graph structure, model aliases, system prompts) from what each job does (C# code). This enables design-first workflows, LLM-generated topologies, and external configuration — while keeping job implementations type-safe and testable.

Quick start — DSL scaffold

Parse a topology from text, bind implementations, build a runnable workflow:

using Ananke.Design;

var scaffold = WorkflowScaffold.Parse<MyState>("etl-pipeline", """
    plan -> fork(fetch_a, fetch_b)
    fetch_a -> transform_a
    fetch_b -> transform_b
    join(transform_a, transform_b) -> combine
    combine -> End
    """);

var workflow = scaffold
    .Bind("plan", async (state, ct) => state with { Step = "planned" })
    .Bind("fetch_a", fetchAJob)
    .Bind("fetch_b", fetchBJob)
    .Bind("transform_a", async (state, ct) => state)
    .Bind("transform_b", async (state, ct) => state)
    .Bind("combine", async (state, ct) => state)
    .BindMerge("combine", branches => branches[0])
    .Build();

var result = await workflow.RunAsync(initialState);

Quick start — YAML manifest

Load a full manifest with model definitions, agent jobs, and connections from an .ananke.yml file:

name: research-pipeline

models:
  fast:
    provider: openai
    model: gpt-4.1-mini
  local:
    provider: openai
    model: llama3.2
    endpoint: http://localhost:11434/v1

jobs:
  plan:
    type: agent
    model: fast
    system_prompt: You are a research planner.
  search:
    type: agent
    model: local
  synthesize:
    type: code

connections:
  - plan -> fork(search_web, search_db)
  - join(search_web, search_db) -> synthesize
  - synthesize -> End
var manifest = WorkflowManifest.Load("pipeline.ananke.yml");

var models = new ModelResolver()
    .Register("openai", "OpenAI", OpenAIChatAgentModel.Create)
    .Resolve(manifest, key => config[key]);

DSL syntax

Pattern Example Equivalent fluent API
Direct a -> b .Then("a", "b")
Terminal a -> End .Then("a", Workflow.End)
Fork a -> fork(b, c) .Then("a", Workflow.Fork("b", "c"))
Fork (best-effort) a -> fork(b, c, mode: best-effort) .Then("a", Workflow.Fork("b", "c", ForkMode.BestEffort))
Join join(a, b) -> c .Join(["a", "b"], "c", merge)
Router a -> router(b, c, End) .Then("a", Workflow.Decide(...))

Full syntax reference: docs/workflow-dsl.md

What is included

Type Description
WorkflowScaffold<TState> Parse DSL topology, bind jobs/merges/routers, build a Workflow<TState>
WorkflowManifest Parse .ananke.yml files — models, jobs, connections
ModelResolver Resolve manifest model aliases to live IAgentModel instances via registered provider factories
WorkflowDiagramExtensions .ToMermaid() export for any validated workflow graph
AgentTextResponse Default structured response type for agent jobs that return plain text
WorkflowDslParser Internal DSL parser — direct, fork, join, router connection lines

Mermaid diagram export

var definition = workflow.Validate();
var mermaid = definition.ToMermaid();
Console.WriteLine(mermaid);

Outputs:

graph TD
    _plan["▶ plan"]
    _fetch_a["fetch_a"]
    _fetch_b["fetch_b"]
    _combine["combine"]
    _end(["End"])

    _plan -->|fork| _fetch_a
    _plan -->|fork| _fetch_b
    _fetch_a --> _combine
    _fetch_b --> _combine
    _combine --> _end
Package What it adds
Ananke.Orchestration Workflow engine, agent jobs, tool calling, streaming
Ananke.Orchestration.OpenAI OpenAI / Ollama / Azure OpenAI IStreamingAgentModel provider
Ananke.Orchestration.Anthropic Anthropic / Claude IStreamingAgentModel provider
Ananke.MCP Expose workflows and tools as MCP server capabilities
Ananke Meta-package — includes Orchestration + StateMachine + Bridge

Documentation

Full docs, demos, and architecture: github.com/sevensamurai/Ananke

License

Apache 2.0

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 36 3/3/2026