| | | 1 | | using NodaTime; |
| | | 2 | | |
| | | 3 | | namespace EHonda.KicktippAi.Core; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Represents a bonus question that can be answered by selecting from available options. |
| | | 7 | | /// </summary> |
| | | 8 | | public record BonusQuestion( |
| | | 9 | | string Text, |
| | | 10 | | ZonedDateTime Deadline, |
| | | 11 | | List<BonusQuestionOption> Options, |
| | | 12 | | int MaxSelections, |
| | | 13 | | string? FormFieldName = null |
| | | 14 | | ); |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Represents an option for a bonus question. |
| | | 18 | | /// </summary> |
| | | 19 | | public record BonusQuestionOption( |
| | | 20 | | string Id, |
| | | 21 | | string Text |
| | | 22 | | ); |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Represents a prediction for a bonus question. |
| | | 26 | | /// </summary> |
| | | 27 | | public record BonusPrediction( |
| | | 28 | | List<string> SelectedOptionIds |
| | | 29 | | ); |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Extended bonus prediction result that includes metadata about how the prediction was generated. |
| | | 33 | | /// </summary> |
| | | 34 | | public record BonusPredictionResult( |
| | | 35 | | BonusPrediction BonusPrediction, |
| | | 36 | | string Model, |
| | | 37 | | string TokenUsage, |
| | | 38 | | double Cost, |
| | | 39 | | string CommunityContext, |
| | | 40 | | List<string> ContextDocumentNames); |
| | | 41 | | |
| | | 42 | | /// <summary> |
| | | 43 | | /// Bonus prediction metadata for outdated checks and verification. |
| | | 44 | | /// Includes context document names and creation timestamp. |
| | | 45 | | /// </summary> |
| | 1 | 46 | | public record BonusPredictionMetadata( |
| | 0 | 47 | | BonusPrediction BonusPrediction, |
| | 0 | 48 | | DateTimeOffset CreatedAt, |
| | 1 | 49 | | List<string> ContextDocumentNames); |