LevelUp.Strategos.Agents 2.4.2

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

Strategos.Agents

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

Installation

dotnet add package LevelUp.Strategos.Agents

Features

Agent Steps

Create workflow steps powered by LLM agents:

public class AnalyzeDocumentStep : IAgentStep<DocumentState>
{
    public string GetSystemPrompt() => """
        You are a document analyst. Analyze the provided document and extract key insights.
        Focus on: main topics, sentiment, key entities, and actionable recommendations.
        """;

    public Type? GetOutputSchemaType() => typeof(DocumentAnalysis);

    public async Task<StepResult<DocumentState>> ExecuteAsync(
        DocumentState state,
        StepContext context,
        CancellationToken ct)
    {
        // Agent execution handled by generated worker
        return StepResult<DocumentState>.FromState(state);
    }
}

Conversation Continuity

Enable per-agent conversation threads for context retention:

public record MyState : IWorkflowState, IConversationalState
{
    public Guid WorkflowId { get; init; }
    public ImmutableDictionary<string, string> SerializedThreads { get; init; }
        = ImmutableDictionary<string, string>.Empty;

    public IConversationalState WithSerializedThread(string agentType, string thread)
        => this with { SerializedThreads = SerializedThreads.SetItem(agentType, thread) };
}

Streaming Responses

Handle real-time token streaming:

public class WebSocketStreamingCallback : IStreamingCallback
{
    public async Task OnTokenReceivedAsync(
        string token, Guid workflowId, string stepName, CancellationToken ct)
    {
        await _hubContext.Clients.Group(workflowId.ToString())
            .SendAsync("TokenReceived", token, ct);
    }

    public async Task OnResponseCompletedAsync(
        string fullResponse, Guid workflowId, string stepName, CancellationToken ct)
    {
        await _hubContext.Clients.Group(workflowId.ToString())
            .SendAsync("ResponseCompleted", fullResponse, ct);
    }
}

Configuration

services.AddStrategosAgents()
    .AddConversationThreadManager<MyThreadManager>()
    .AddStreamingCallback<WebSocketStreamingCallback>();

Core Abstractions

Interface Purpose
IAgentStep<TState> Workflow step powered by LLM agent
IConversationalState State with per-agent conversation threads
IConversationThreadManager Manages conversation thread lifecycle
IStreamingCallback Handles real-time token streaming

Documentation

License

MIT

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

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

Package Downloads
LevelUp.Strategos.Rag

[DEPRECATED] Vector store adapters for Strategos RAG integration. Use Strategos.Ontology with IObjectSetProvider instead.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.4.2 125 4/13/2026
2.4.1 173 4/10/2026
2.4.0 103 4/7/2026
2.3.0 117 4/5/2026
2.2.1 108 3/15/2026
2.2.0 146 3/3/2026