Webority.Ui.GeneratedScreens
0.204.0
dotnet add package Webority.Ui.GeneratedScreens --version 0.204.0
NuGet\Install-Package Webority.Ui.GeneratedScreens -Version 0.204.0
<PackageReference Include="Webority.Ui.GeneratedScreens" Version="0.204.0" />
<PackageVersion Include="Webority.Ui.GeneratedScreens" Version="0.204.0" />
<PackageReference Include="Webority.Ui.GeneratedScreens" />
paket add Webority.Ui.GeneratedScreens --version 0.204.0
#r "nuget: Webority.Ui.GeneratedScreens, 0.204.0"
#:package Webority.Ui.GeneratedScreens@0.204.0
#addin nuget:?package=Webority.Ui.GeneratedScreens&version=0.204.0
#tool nuget:?package=Webority.Ui.GeneratedScreens&version=0.204.0
Webority.Ui.GeneratedScreens
Validates A2UI 1.0 agent messages and stored generated screens against the Webority generated screens catalogue, catalogue id webority.engineering/generated-screens/1, with the same verdicts as the TypeScript validator in @webority/markdown-core.
Install
dotnet add package Webority.Ui.GeneratedScreens
Use
Create one validator with its policy. The allowed link origins have no default.
using System.Text.Json.Nodes;
using Webority.Ui.GeneratedScreens;
var validator = new A2uiValidator(new[] { GeneratedScreensCatalog.Document }, new A2uiValidationOptions(
AllowedLinkOrigins: new[] { "https://example.com" },
Strict: true,
ModelWritten: false));
Keep one A2uiSurfaceState for each surface stream and pass it to every ValidateMessages call, so each later batch sees the components and data model the earlier ones built. A state is not safe for concurrent use: one caller drives one stream.
var state = new A2uiSurfaceState();
A2uiValidationResult result = validator.ValidateMessages(JsonNode.Parse(json)!, state);
A batch with any issue is refused whole and leaves the state unchanged. A batch that passes replaces the state.
Check a saved screen, one complete createSurface message, with ValidateStoredScreen:
A2uiValidationResult saved = validator.ValidateStoredScreen(JsonNode.Parse(savedJson)!);
Read the outcome from Issues. IsValid is true when the list is empty.
foreach (A2uiValidationIssue issue in result.Issues)
{
Console.WriteLine($"{issue.Code} {issue.Path}: {issue.Message}");
}
Each A2uiValidationIssue has:
Code: the machine-readable reason, such asmissing_fieldorinvalid_value.Path: a JSON pointer to the offending part of the payload.Message: a plain sentence describing the problem.SurfaceId: the surface the issue belongs to, or null when it belongs to none.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- JsonSchema.Net (>= 9.7.1)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on Webority.Ui.GeneratedScreens:
| Package | Downloads |
|---|---|
|
Webority.Ui.Razor
Webority shared Razor component library: the App* tag helpers and the admin shell for Razor Pages heads, bundling the @webority/theme design system as a static web asset. |
|
|
Webority.Chat.AspNetCore
The Webority Chat routes for one surface: profile, conversations, messages streamed as Server-Sent Events, input requests, actions, ratings and attachments, with the feature filter, the captcha gate, named rate-limit policies and RFC 9457 problems with fixed codes. |
|
|
Webority.Chat.Admin
The admin area for Webority Chat in Webority.Ui.Razor markup: transcripts, ratings, unanswered questions, leads from chat, the profile editor and the script editor, under a Chat area the product secures with one policy. |
|
|
Webority.Chat.Support
The support bridge for Webority Chat: handoff from the assistant to a person, ticket and handoff parts, open tickets on start and away notifications, over Webority.Support. It serves no staff page; the agent console is Webority.Chat.Support.Admin. |
|
|
Webority.Chat.Ai
The AI responder for Webority Chat: the agent loop over Webority.Ai with the stream-aware reply guard and figure check, presentation tools, topic and injection guardrails, knowledge citations as Sources parts and suggested replies as QuickReplies parts. |
GitHub repositories
This package is not used by any popular GitHub repositories.