| | | 1 | | namespace EHonda.KicktippAi.Core; |
| | | 2 | | |
| | | 3 | | public record Prediction( |
| | | 4 | | int HomeGoals, |
| | | 5 | | int AwayGoals, |
| | | 6 | | PredictionJustification? Justification = null); |
| | | 7 | | |
| | | 8 | | public record PredictionJustification( |
| | | 9 | | string KeyReasoning, |
| | | 10 | | PredictionJustificationContextSources ContextSources, |
| | | 11 | | IReadOnlyList<string> Uncertainties); |
| | | 12 | | |
| | | 13 | | public record PredictionJustificationContextSources( |
| | | 14 | | IReadOnlyList<PredictionJustificationContextSource> MostValuable, |
| | | 15 | | IReadOnlyList<PredictionJustificationContextSource> LeastValuable); |
| | | 16 | | |
| | 1 | 17 | | public record PredictionJustificationContextSource( |
| | 1 | 18 | | string DocumentName, |
| | 1 | 19 | | string Details); |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Extended prediction result that includes metadata about how the prediction was generated. |
| | | 23 | | /// </summary> |
| | | 24 | | public 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> |
| | | 36 | | public record PredictionMetadata( |
| | | 37 | | Prediction Prediction, |
| | | 38 | | DateTimeOffset CreatedAt, |
| | | 39 | | List<string> ContextDocumentNames); |