-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAgentSessionContracts.cs
More file actions
75 lines (65 loc) · 1.95 KB
/
AgentSessionContracts.cs
File metadata and controls
75 lines (65 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
namespace DotPilot.Core.ChatSessions.Contracts;
public enum ProviderActionKind
{
CopyCommand = 0,
PickFile = 1,
PickFolder = 2,
}
public sealed record ProviderActionDescriptor(
string Label,
string Summary,
string Command,
ProviderActionKind Kind);
public sealed record ProviderDetailDescriptor(
string Label,
string Value);
public sealed record ProviderStatusDescriptor(
ProviderId Id,
AgentProviderKind Kind,
string DisplayName,
string CommandName,
AgentProviderStatus Status,
string StatusSummary,
string SuggestedModelName,
IReadOnlyList<string> SupportedModelNames,
string? InstalledVersion,
bool IsEnabled,
bool CanCreateAgents,
IReadOnlyList<ProviderDetailDescriptor> Details,
IReadOnlyList<ProviderActionDescriptor> Actions);
public sealed record AgentProfileSummary(
AgentProfileId Id,
string Name,
string Description,
AgentProviderKind ProviderKind,
string ProviderDisplayName,
string ModelName,
string SystemPrompt,
DateTimeOffset CreatedAt);
public sealed record SessionListItem(
SessionId Id,
string Title,
string Preview,
string StatusSummary,
DateTimeOffset UpdatedAt,
AgentProfileId PrimaryAgentId,
string PrimaryAgentName,
string ProviderDisplayName);
public sealed record SessionStreamEntry(
string Id,
SessionId SessionId,
SessionStreamEntryKind Kind,
string Author,
string Text,
DateTimeOffset Timestamp,
AgentProfileId? AgentProfileId = null,
string? AccentLabel = null);
public sealed record SessionTranscriptSnapshot(
SessionListItem Session,
IReadOnlyList<SessionStreamEntry> Entries,
IReadOnlyList<AgentProfileSummary> Participants);
public sealed record AgentWorkspaceSnapshot(
IReadOnlyList<SessionListItem> Sessions,
IReadOnlyList<AgentProfileSummary> Agents,
IReadOnlyList<ProviderStatusDescriptor> Providers,
SessionId? SelectedSessionId);