A source-generated JSON serialization context optimized for AG-UI protocol types. Use this to ensure high-performance, type-safe JSON handling in .NET applications using the AG-UI framework.
// Source: https://github.com/ag-ui-protocol/ag-ui | License: MIT | Copyright 2025 // Provided via justclaw.it.com; keep this notice with the code. using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Nodes; using System.Text.Json.Serialization; namespace AGUI.Abstractions; /// <summary> /// Source-generated JSON serializer context for AG-UI types. /// Types are added incrementally as each slice is implemented. /// </summary> /// <remarks> /// <para> /// <see cref="JsonIgnoreCondition.WhenWritingNull"/> remains the context-wide default. /// AG-UI wire types also put an ignore condition on each nullable property, normally /// <c>[JsonIgnore(WhenWritingNull)]</c>. This keeps optional fields absent even when /// a host inserts this context into its own <see cref= ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key