Sign inGet started
–

agui-dotnet-shared-state

by ag-ui-protocol/ag-ui · Coding & Development

Synchronize a shared structured state object between an AG-UI agent and its .NET client by seeding state on the request and streaming full snapshots or JSON-Patch deltas back alongside the chat respon

Lift · GLM-5.3-flash—not yet benchmarked
88
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP

What it does

Share structured, evolving state between an AG-UI agent and its client with the AG-UI .NET SDK — the client seeds state on the request, the server reads it, mutates it, and streams the updated state back as snapshots or deltas alongside the chat. USE FOR: sending initial/working state from the client via ChatOptions.RawRepresentationFactory -> RunAgentInput.State; reading inbound state on the server with ChatOptions.TryGetRunAgentInput and RunAgentInput.State; emitting a full state object as a StateSnapshotEvent (or incremental JSON-Patch changes as a StateDeltaEvent) from a DelegatingChatClient via ChatResponseUpdate.RawRepresentation; reading state back on the client from update.RawRepresentation as StateSnapshotEvent. DO NOT USE FOR: passing one-off tool arguments (use agui-dotnet-server-tools); rendering UI components from tool calls (use agui-dotnet-generative-ui); plain chat (use agui-dotnet-streaming-chat); approvals/interrupts, multimodal, or protobuf.

#agent-state#ag-ui#csharp#dotnet#json-patch#streaming

Quality judgment

completeness
8.0/10
clarity
8.5/10
trigger quality
9.0/10
examples
7.5/10
structure
8.0/10
overall
8.0/10

A focused, well-scoped skill with clear client/server code, snapshot-vs-delta guidance, AOT notes, anti-patterns, and verification steps. Minor gaps: no StateDeltaEvent code example and no explicit error-handling guidance, keeping it just short of top marks.

Files (2)

LICENSE · 1.0 KBSKILL.md · 6.2 KB