LevelUp.Strategos
4.0.0
dotnet add package LevelUp.Strategos --version 4.0.0
NuGet\Install-Package LevelUp.Strategos -Version 4.0.0
<PackageReference Include="LevelUp.Strategos" Version="4.0.0" />
<PackageVersion Include="LevelUp.Strategos" Version="4.0.0" />
<PackageReference Include="LevelUp.Strategos" />
paket add LevelUp.Strategos --version 4.0.0
#r "nuget: LevelUp.Strategos, 4.0.0"
#:package LevelUp.Strategos@4.0.0
#addin nuget:?package=LevelUp.Strategos&version=4.0.0
#tool nuget:?package=LevelUp.Strategos&version=4.0.0
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
- Getting Started Guide - Installation and first workflow
- Workflow API Reference - Complete API documentation
- Examples - Real-world workflow patterns
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 | 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
- Cronos (>= 0.13.0)
- LevelUp.Bifrost.Contracts (>= 0.1.0)
- LevelUp.Strategos.Contracts (>= 0.19.0)
- LevelUp.Strategos.Identity.Abstractions (>= 4.0.0)
- MemoryPack (>= 1.21.3)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.8)
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 |