-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProviderAndToolContracts.cs
More file actions
73 lines (53 loc) · 1.66 KB
/
ProviderAndToolContracts.cs
File metadata and controls
73 lines (53 loc) · 1.66 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
namespace DotPilot.Core.Features.ControlPlaneDomain;
[GenerateSerializer]
public sealed record ToolCapabilityDescriptor
{
[Id(0)]
public ToolCapabilityId Id { get; init; }
[Id(1)]
public string Name { get; init; } = string.Empty;
[Id(2)]
public string DisplayName { get; init; } = string.Empty;
[Id(3)]
public ToolCapabilityKind Kind { get; init; }
[Id(4)]
public bool RequiresApproval { get; init; }
[Id(5)]
public bool IsEnabledByDefault { get; init; }
[Id(6)]
public string[] Tags { get; init; } = [];
}
[GenerateSerializer]
public sealed record ProviderDescriptor
{
[Id(0)]
public ProviderId Id { get; init; }
[Id(1)]
public string DisplayName { get; init; } = string.Empty;
[Id(2)]
public string CommandName { get; init; } = string.Empty;
[Id(3)]
public ProviderConnectionStatus Status { get; init; } = ProviderConnectionStatus.Unavailable;
[Id(4)]
public string StatusSummary { get; init; } = string.Empty;
[Id(5)]
public bool RequiresExternalToolchain { get; init; }
[Id(6)]
public ToolCapabilityId[] SupportedToolIds { get; init; } = [];
}
[GenerateSerializer]
public sealed record ModelRuntimeDescriptor
{
[Id(0)]
public ModelRuntimeId Id { get; init; }
[Id(1)]
public string DisplayName { get; init; } = string.Empty;
[Id(2)]
public string EngineName { get; init; } = string.Empty;
[Id(3)]
public RuntimeKind RuntimeKind { get; init; }
[Id(4)]
public ProviderConnectionStatus Status { get; init; } = ProviderConnectionStatus.Unavailable;
[Id(5)]
public string[] SupportedModelFamilies { get; init; } = [];
}