< Summary

Information
Class: EHonda.KicktippAi.Core.PredictionJustification
Assembly: EHonda.KicktippAi.Core
File(s): /home/runner/work/KicktippAi/KicktippAi/src/Core/Prediction.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 39
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
.ctor(...)100%210%
get_KeyReasoning()100%11100%
set_KeyReasoning(...)100%210%
get_ContextSources()100%11100%
set_ContextSources(...)100%210%
get_Uncertainties()100%11100%
set_Uncertainties(...)100%210%

File(s)

/home/runner/work/KicktippAi/KicktippAi/src/Core/Prediction.cs

#LineLine coverage
 1namespace EHonda.KicktippAi.Core;
 2
 3public record Prediction(
 4    int HomeGoals,
 5    int AwayGoals,
 6    PredictionJustification? Justification = null);
 7
 18public record PredictionJustification(
 19    string KeyReasoning,
 110    PredictionJustificationContextSources ContextSources,
 111    IReadOnlyList<string> Uncertainties);
 12
 13public record PredictionJustificationContextSources(
 14    IReadOnlyList<PredictionJustificationContextSource> MostValuable,
 15    IReadOnlyList<PredictionJustificationContextSource> LeastValuable);
 16
 17public record PredictionJustificationContextSource(
 18    string DocumentName,
 19    string Details);
 20
 21/// <summary>
 22/// Extended prediction result that includes metadata about how the prediction was generated.
 23/// </summary>
 24public record PredictionResult(
 25    Prediction Prediction,
 26    string Model,
 27    string TokenUsage,
 28    double Cost,
 29    string CommunityContext,
 30    List<string> ContextDocumentNames);
 31
 32/// <summary>
 33/// Prediction metadata for outdated checks and verification.
 34/// Includes context document names and creation timestamp.
 35/// </summary>
 36public record PredictionMetadata(
 37    Prediction Prediction,
 38    DateTimeOffset CreatedAt,
 39    List<string> ContextDocumentNames);