LevelUp.Strategos
2.2.1
dotnet add package LevelUp.Strategos --version 2.2.1
NuGet\Install-Package LevelUp.Strategos -Version 2.2.1
<PackageReference Include="LevelUp.Strategos" Version="2.2.1" />
<PackageVersion Include="LevelUp.Strategos" Version="2.2.1" />
<PackageReference Include="LevelUp.Strategos" />
paket add LevelUp.Strategos --version 2.2.1
#r "nuget: LevelUp.Strategos, 2.2.1"
#:package LevelUp.Strategos@2.2.1
#addin nuget:?package=LevelUp.Strategos&version=2.2.1
#tool nuget:?package=LevelUp.Strategos&version=2.2.1
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
| 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
- MemoryPack (>= 1.21.3)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on LevelUp.Strategos:
| Package | Downloads |
|---|---|
|
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. |
GitHub repositories
This package is not used by any popular GitHub repositories.