| 1 | using System.Text.Json; |
| 2 | using System.Text.Json.Serialization; |
| 3 | |
| 4 | namespace AgentClientProtocol; |
| 5 | |
| 6 | public record PlanEntry |
| 7 | { |
| 8 | [JsonPropertyName("_meta")] |
| 9 | public JsonElement? Meta { get; init; } |
| 10 | |
| 11 | [JsonPropertyName("content")] |
| 12 | public required string Content { get; init; } |
| 13 | |
| 14 | [JsonPropertyName("priority")] |
| 15 | public required PlanEntryPriority Priority { get; init; } |
| 16 | |
| 17 | [JsonPropertyName("status")] |
| 18 | public required PlanEntryStatus Status { get; init; } |
| 19 | } |
| 20 | |
| 21 | |
| 22 | [JsonConverter(typeof(CustomizableJsonStringEnumConverter<PlanEntryPriority>))] |
| 23 | public enum PlanEntryPriority |
| 24 | { |
| 25 | [JsonStringEnumMemberName("high")] |
| 26 | High, |
| 27 | |
| 28 | [JsonStringEnumMemberName("medium")] |
| 29 | Medium, |
| 30 | |
| 31 | [JsonStringEnumMemberName("low")] |
| 32 | Low |
| 33 | } |
| 34 | |
| 35 | |
| 36 | [JsonConverter(typeof(CustomizableJsonStringEnumConverter<PlanEntryStatus>))] |
| 37 | public enum PlanEntryStatus |
| 38 | { |
| 39 | [JsonStringEnumMemberName("pending")] |
| 40 | Pending, |
| 41 | |
| 42 | [JsonStringEnumMemberName("in_progress")] |
| 43 | InProgress, |
| 44 | |
| 45 | [JsonStringEnumMemberName("completed")] |
| 46 | Completed |
| 47 | } |
| 48 | |
View only · write via MCP/CIDE