Forge
csharp8f5a77c3
1using System.Text.Json.Serialization;
2
3namespace CascadeIDE.Models.AgentChat;
4
5/// <summary>Лёгкие метаданные сессии чата.</summary>
6public sealed record ChatSessionMetadata(
7 Guid SessionId,
8 DateTimeOffset CreatedAtUtc,
9 DateTimeOffset UpdatedAtUtc,
10 string? Title = null,
11 int SchemaVersion = 1,
12 /// <summary>Путь к решению относительно workspace (.sln/.slnx/.slnf/.csproj) для resolve якорей без UI. Schema ≥ 2.</summary>
13 [property: JsonPropertyName("solution_path")] string? SolutionPath = null,
14 /// <summary>Корневая ветка по умолчанию; новые сообщения привязываются к активной ветке (см. события <c>thread_forked</c>).</summary>
15 Guid MainThreadId = default,
16 string? ProductSpineLineTitle = null,
17 string? ProductSpineCurrentFocus = null,
18 /// <summary>Вехи spine, по одной на строку.</summary>
19 string? ProductSpineMilestones = null,
20 bool ProductSpineIncludeInAgentContext = false,
21 /// <summary>Явные заголовки веток (ключ — <c>thread_id</c> N-формат). Schema ≥ 2.</summary>
22 Dictionary<string, string>? ThreadTitles = null);
23
View only · write via MCP/CIDE