ChatStage.Server 0.2.0-preview.1

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

ChatStage.Server

The server side of ChatStage: serves a Microsoft Agent Framework agent over AG-UI so a ChatStage chat (or any AG-UI client) can use it.

builder.Services.AddChatStageServer();          // AG-UI server + a session store for threads
// ...
app.MapChatStageAgent("/agent", agent);          // agent: any named AIAgent, e.g. chatClient.AsAIAgent(...)

It serves the agent the way the Agent Framework's MapAGUIServer does (the same request, events, session store, isolation and AGUIStreamOptions), and adds:

  • Threads are kept on the server (an AgentSessionStore; in memory by default, register your own to persist them), so clients send only new messages.

  • Approvals are bound to what the agent asked. A client answers an approval with its id and yes or no; the call that runs is the one the thread recorded, with its recorded arguments. A tampered resume (changed arguments, a different tool, another thread's id) runs nothing it shouldn't. The Agent Framework's approval response binding stays on.

  • Unanswered approvals are declined when the user moves on with a new message (after Stop, or a restart).

  • Failed runs are logged, and by default the client gets only a generic error. Mark the exceptions whose message is written for the user and it reaches the chat as the AG-UI RUN_ERROR message:

    app.MapChatStageAgent("/agent", agent, o => o.DescribeError = ex => ex is UserFacingException ? ex.Message : null);
    
  • A failed run's session is saved before the error is sent, so state the agent set before it threw survives, and the next run can't overtake the save.

Documentation: https://github.com/modarken/chatstage

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0-preview.1 0 11/27/2026
0.1.0-preview.1 0 11/27/2026