| | | 1 | | using System.ComponentModel; |
| | | 2 | | using Spectre.Console.Cli; |
| | | 3 | | |
| | | 4 | | namespace Orchestrator.Commands.Operations.Matchday; |
| | | 5 | | |
| | | 6 | | public class BaseSettings : CommandSettings |
| | | 7 | | { |
| | | 8 | | [CommandArgument(0, "<MODEL>")] |
| | | 9 | | [Description("The OpenAI model to use for prediction (e.g., gpt-4o-2024-08-06, o4-mini)")] |
| | 1 | 10 | | public string Model { get; set; } = string.Empty; |
| | | 11 | | |
| | | 12 | | [CommandOption("-c|--community")] |
| | | 13 | | [Description("The Kicktipp community to use (e.g., ehonda-test-buli)")] |
| | 1 | 14 | | public required string Community { get; set; } |
| | | 15 | | |
| | | 16 | | [CommandOption("--community-context")] |
| | | 17 | | [Description("The community context for filtering predictions (defaults to community name if not specified)")] |
| | 1 | 18 | | public string? CommunityContext { get; set; } |
| | | 19 | | |
| | | 20 | | [CommandOption("-v|--verbose")] |
| | | 21 | | [Description("Enable verbose output to show detailed information")] |
| | | 22 | | [DefaultValue(false)] |
| | 1 | 23 | | public bool Verbose { get; set; } |
| | | 24 | | |
| | | 25 | | [CommandOption("--override-kicktipp")] |
| | | 26 | | [Description("Override existing predictions on Kicktipp (default: false)")] |
| | | 27 | | [DefaultValue(false)] |
| | 1 | 28 | | public bool OverrideKicktipp { get; set; } |
| | | 29 | | |
| | | 30 | | [CommandOption("--override-database")] |
| | | 31 | | [Description("Override existing predictions in the database (default: false)")] |
| | | 32 | | [DefaultValue(false)] |
| | 1 | 33 | | public bool OverrideDatabase { get; set; } |
| | | 34 | | |
| | | 35 | | [CommandOption("--agent")] |
| | | 36 | | [Description("Agent mode - hide prediction details from output (for automated environments)")] |
| | | 37 | | [DefaultValue(false)] |
| | 1 | 38 | | public bool Agent { get; set; } |
| | | 39 | | |
| | | 40 | | [CommandOption("--dry-run")] |
| | | 41 | | [Description("Dry run mode - no changes will be made to database or Kicktipp")] |
| | | 42 | | [DefaultValue(false)] |
| | 1 | 43 | | public bool DryRun { get; set; } |
| | | 44 | | |
| | | 45 | | [CommandOption("--show-context-documents")] |
| | | 46 | | [Description("Show the content of context documents used for prediction")] |
| | | 47 | | [DefaultValue(false)] |
| | 1 | 48 | | public bool ShowContextDocuments { get; set; } |
| | | 49 | | |
| | | 50 | | [CommandOption("--with-justification")] |
| | | 51 | | [Description("Include model justification text alongside predictions (non-agent mode only)")] |
| | | 52 | | [DefaultValue(false)] |
| | 1 | 53 | | public bool WithJustification { get; set; } |
| | | 54 | | |
| | | 55 | | [CommandOption("--estimated-costs")] |
| | | 56 | | [Description("Model to estimate costs for (e.g., o1) - shows what costs would be if using that model with same token |
| | 1 | 57 | | public string? EstimatedCostsModel { get; set; } |
| | | 58 | | |
| | | 59 | | [CommandOption("--repredict")] |
| | | 60 | | [Description("Enable reprediction mode - create new predictions with incremented reprediction index (cannot be used |
| | | 61 | | [DefaultValue(false)] |
| | 1 | 62 | | public bool Repredict { get; set; } |
| | | 63 | | |
| | | 64 | | [CommandOption("--max-repredictions")] |
| | | 65 | | [Description("Maximum number of repredictions allowed (0-based index). Implies --repredict. Example: 2 allows repred |
| | 1 | 66 | | public int? MaxRepredictions { get; set; } |
| | | 67 | | |
| | | 68 | | /// <summary> |
| | | 69 | | /// Gets whether reprediction mode is enabled (either explicitly via --repredict or implicitly via --max-repredictio |
| | | 70 | | /// </summary> |
| | 1 | 71 | | public bool IsRepredictMode => Repredict || MaxRepredictions.HasValue; |
| | | 72 | | } |