LevelUp.Strategos 4.0.0

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

Strategos

Fluent DSL for building durable agentic workflows with Wolverine sagas and Marten event sourcing.

Installation

dotnet add package LevelUp.Strategos
dotnet add package LevelUp.Strategos.Generators

Quick Start

using Strategos.Builders;
using Strategos.Attributes;

// Define your workflow state
public record OrderState : IWorkflowState
{
    public Guid WorkflowId { get; init; }
    public OrderStatus Status { get; init; }
    public decimal Total { get; init; }
}

// Define workflow steps
public class ValidateOrder : IWorkflowStep<OrderState> { /* ... */ }
public class ProcessPayment : IWorkflowStep<OrderState> { /* ... */ }
public class FulfillOrder : IWorkflowStep<OrderState> { /* ... */ }

// Build the workflow with fluent DSL
[Workflow("process-order")]
public static partial class ProcessOrderWorkflow
{
    public static WorkflowDefinition<OrderState> Definition => Workflow<OrderState>
        .Create("process-order")
        .StartWith<ValidateOrder>()
        .Then<ProcessPayment>()
        .Finally<FulfillOrder>();
}

Features

  • Fluent DSL: Intuitive builder pattern for workflow definition
  • Source Generation: Wolverine sagas, phase enums, and commands generated at compile time
  • Branching: Conditional paths with .Branch() and .Case()
  • Loops: Iterative refinement with .RepeatUntil() and .While()
  • Parallelism: Fork/join patterns with .Fork() and .Join()
  • Approvals: Human-in-the-loop with .AwaitApproval() and escalation
  • Failure Handling: Recovery paths with .OnFailure()
  • Validation: Guard clauses with .Validate()

Documentation

License

MIT

Local schedule fault recovery

A local host can register a LocalScheduleRestartPolicy singleton for its compiled schedule delivery loop. The first fault within a window retries immediately. Later faults use the configured backoff. A zero backoff uses the normal polling interval after the first restart. When the restart budget is exhausted, the schedule loop stops and writes an error. The loaded schedule cursor and delivery receipts remain available for inspection in the journal.

A compiled local schedule host can opt in to AddStrategosLocalScheduleRetention for exact service, tenant and schedule scopes. The background sweep moves a bounded batch of confirmed deliveries out of the mutable dispatch index after their admission deadlines. It keeps the configured number of newest automatic records and honors a separate manual retention period. The immutable archive preserves occurrence IDs, work receipts and manual replay markers for the life of the process. Archive storage grows with retained evidence.

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 (6)

Showing the top 5 NuGet packages that depend on LevelUp.Strategos:

Package Downloads
LevelUp.Bifrost

Typed service authoring, generated roles, and local execution.

LevelUp.Strategos.Agents

Microsoft Agent Framework integration for Strategos. Provides abstractions for LLM-powered workflow steps with conversation continuity, streaming responses, and agent selection.

LevelUp.Strategos.Infrastructure

Infrastructure implementations for Strategos including Thompson Sampling agent selection, loop detection (repetition, semantic, oscillation, no-progress), and budget enforcement with scarcity levels.

LevelUp.Bifrost.Durable

Durable Strategos workflow execution and PostgreSQL allocation.

LevelUp.Bifrost.Testing

Deterministic time, transaction barriers, and controlled redelivery for testing Strategos workflows.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.0 37 12/5/2026
3.0.0 565 9/11/2026
3.0.0-rc.1 133 9/10/2026
2.10.0 240 8/7/2026
2.9.1 1,518 6/23/2026
2.9.0 265 6/19/2026
2.8.0 469 5/25/2026
2.7.0 208 5/24/2026
2.6.0 164 5/17/2026
2.5.0 190 5/16/2026
2.4.2 219 4/13/2026
2.4.1 246 4/10/2026
2.4.0 173 4/7/2026
2.3.0 194 4/5/2026
2.2.1 219 3/15/2026
2.2.0 343 3/3/2026