< Summary

Information
Class: Orchestrator.Commands.Operations.Matchday.BaseSettings
Assembly: Orchestrator
File(s): /home/runner/work/KicktippAi/KicktippAi/src/Orchestrator/Commands/Operations/Matchday/BaseSettings.cs
Line coverage
100%
Covered lines: 14
Uncovered lines: 0
Coverable lines: 14
Total lines: 72
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Model()100%11100%
set_Model(...)100%11100%
.ctor()100%11100%
get_Community()100%11100%
set_Community(...)100%11100%
get_CommunityContext()100%11100%
set_CommunityContext(...)100%11100%
get_Verbose()100%11100%
set_Verbose(...)100%11100%
get_OverrideKicktipp()100%11100%
set_OverrideKicktipp(...)100%11100%
get_OverrideDatabase()100%11100%
set_OverrideDatabase(...)100%11100%
get_Agent()100%11100%
set_Agent(...)100%11100%
get_DryRun()100%11100%
set_DryRun(...)100%11100%
get_ShowContextDocuments()100%11100%
set_ShowContextDocuments(...)100%11100%
get_WithJustification()100%11100%
set_WithJustification(...)100%11100%
get_EstimatedCostsModel()100%11100%
set_EstimatedCostsModel(...)100%11100%
get_Repredict()100%11100%
set_Repredict(...)100%11100%
get_MaxRepredictions()100%11100%
set_MaxRepredictions(...)100%11100%
get_IsRepredictMode()100%22100%

File(s)

/home/runner/work/KicktippAi/KicktippAi/src/Orchestrator/Commands/Operations/Matchday/BaseSettings.cs

#LineLine coverage
 1using System.ComponentModel;
 2using Spectre.Console.Cli;
 3
 4namespace Orchestrator.Commands.Operations.Matchday;
 5
 6public 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)")]
 110    public string Model { get; set; } = string.Empty;
 11
 12    [CommandOption("-c|--community")]
 13    [Description("The Kicktipp community to use (e.g., ehonda-test-buli)")]
 114    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)")]
 118    public string? CommunityContext { get; set; }
 19
 20    [CommandOption("-v|--verbose")]
 21    [Description("Enable verbose output to show detailed information")]
 22    [DefaultValue(false)]
 123    public bool Verbose { get; set; }
 24
 25    [CommandOption("--override-kicktipp")]
 26    [Description("Override existing predictions on Kicktipp (default: false)")]
 27    [DefaultValue(false)]
 128    public bool OverrideKicktipp { get; set; }
 29
 30    [CommandOption("--override-database")]
 31    [Description("Override existing predictions in the database (default: false)")]
 32    [DefaultValue(false)]
 133    public bool OverrideDatabase { get; set; }
 34
 35    [CommandOption("--agent")]
 36    [Description("Agent mode - hide prediction details from output (for automated environments)")]
 37    [DefaultValue(false)]
 138    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)]
 143    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)]
 148    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)]
 153    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
 157    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)]
 162    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
 166    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>
 171    public bool IsRepredictMode => Repredict || MaxRepredictions.HasValue;
 72}