| | | 1 | | using System.ComponentModel; |
| | | 2 | | using Spectre.Console.Cli; |
| | | 3 | | using System.Text.Json.Serialization; |
| | | 4 | | |
| | | 5 | | namespace Orchestrator.Commands.Observability.Cost; |
| | | 6 | | |
| | | 7 | | public class CostConfiguration |
| | | 8 | | { |
| | | 9 | | [JsonPropertyName("matchdays")] |
| | 0 | 10 | | public string? Matchdays { get; set; } |
| | | 11 | | |
| | | 12 | | [JsonPropertyName("bonus")] |
| | 0 | 13 | | public bool? Bonus { get; set; } |
| | | 14 | | |
| | | 15 | | [JsonPropertyName("models")] |
| | 0 | 16 | | public string? Models { get; set; } |
| | | 17 | | |
| | | 18 | | [JsonPropertyName("communityContexts")] |
| | 0 | 19 | | public string? CommunityContexts { get; set; } |
| | | 20 | | |
| | | 21 | | [JsonPropertyName("all")] |
| | 0 | 22 | | public bool? All { get; set; } |
| | | 23 | | |
| | | 24 | | [JsonPropertyName("verbose")] |
| | 0 | 25 | | public bool? Verbose { get; set; } |
| | | 26 | | |
| | | 27 | | [JsonPropertyName("detailedBreakdown")] |
| | 0 | 28 | | public bool? DetailedBreakdown { get; set; } |
| | | 29 | | } |
| | | 30 | | |
| | | 31 | | public class CostSettings : CommandSettings |
| | | 32 | | { |
| | | 33 | | [CommandOption("--matchdays")] |
| | | 34 | | [Description("Comma-separated list of matchdays to include in cost calculation (e.g., '1,2,3' or 'all' for all match |
| | | 35 | | public string? Matchdays { get; set; } |
| | | 36 | | |
| | | 37 | | [CommandOption("--bonus")] |
| | | 38 | | [Description("Include bonus predictions in cost calculation")] |
| | | 39 | | [DefaultValue(false)] |
| | | 40 | | public bool Bonus { get; set; } |
| | | 41 | | |
| | | 42 | | [CommandOption("--models")] |
| | | 43 | | [Description("Comma-separated list of AI models to include in calculation (e.g., 'gpt-4o,o1-mini' or 'all' for all m |
| | | 44 | | public string? Models { get; set; } |
| | | 45 | | |
| | | 46 | | [CommandOption("--community-contexts")] |
| | | 47 | | [Description("Comma-separated list of community contexts to include (e.g., 'ehonda-test-buli,ehonda-test-buli-2' or |
| | | 48 | | public string? CommunityContexts { get; set; } |
| | | 49 | | |
| | | 50 | | [CommandOption("--all")] |
| | | 51 | | [Description("Aggregate costs over all available matchdays, models, community contexts, and includes bonus predictio |
| | | 52 | | [DefaultValue(false)] |
| | | 53 | | public bool All { get; set; } |
| | | 54 | | |
| | | 55 | | [CommandOption("-v|--verbose")] |
| | | 56 | | [Description("Enable verbose output to show detailed cost breakdown")] |
| | | 57 | | [DefaultValue(false)] |
| | | 58 | | public bool Verbose { get; set; } |
| | | 59 | | |
| | | 60 | | [CommandOption("--detailed-breakdown")] |
| | | 61 | | [Description("Show detailed breakdown by community context and model in the results table")] |
| | | 62 | | [DefaultValue(false)] |
| | | 63 | | public bool DetailedBreakdown { get; set; } |
| | | 64 | | |
| | | 65 | | [CommandOption("--file")] |
| | | 66 | | [Description("Load configuration from a JSON file (absolute or relative path)")] |
| | | 67 | | public string? ConfigFile { get; set; } |
| | | 68 | | } |