< Summary

Information
Class: EHonda.KicktippAi.Core.PredictionResult
Assembly: EHonda.KicktippAi.Core
File(s): /home/runner/work/KicktippAi/KicktippAi/src/Core/Prediction.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 39
Line coverage: 0%
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%210%
.ctor(...)100%210%
get_Prediction()100%210%
set_Prediction(...)100%210%
get_Model()100%210%
set_Model(...)100%210%
get_TokenUsage()100%210%
set_TokenUsage(...)100%210%
get_Cost()100%210%
set_Cost(...)100%210%
get_CommunityContext()100%210%
set_CommunityContext(...)100%210%
get_ContextDocumentNames()100%210%
set_ContextDocumentNames(...)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
 8public record PredictionJustification(
 9    string KeyReasoning,
 10    PredictionJustificationContextSources ContextSources,
 11    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>
 024public record PredictionResult(
 025    Prediction Prediction,
 026    string Model,
 027    string TokenUsage,
 028    double Cost,
 029    string CommunityContext,
 030    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);