Agentic.Workflow.Agents 1.1.1

Suggested Alternatives

LevelUp.Strategos

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

Agentic.Workflow.Agents

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

Installation

dotnet add package Agentic.Workflow.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.AddAgenticWorkflowAgents()
    .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 Agentic.Workflow.Agents:

Package Downloads
Agentic.Workflow.Rag

Vector store adapters for Agentic.Workflow RAG integration.

GitHub repositories

This package is not used by any popular GitHub repositories.