csharpdeeb25a2 | 1 | #nullable enable |
| 2 | using System.Text.Json; |
| 3 | |
| 4 | namespace CascadeIDE.Features.Chat; |
| 5 | |
| 6 | /// <summary>JSON для append-only истории чата (NDJSON payload + проекции).</summary> |
| 7 | internal static class ChatHistoryJson |
| 8 | { |
| 9 | public static readonly JsonSerializerOptions Options = new(JsonSerializerDefaults.Web); |
| 10 | |
| 11 | public static string Serialize<T>(T payload) => |
| 12 | JsonSerializer.Serialize(payload, Options); |
| 13 | } |
| 14 | |
View only · write via MCP/CIDE