< Summary

Information
Class: OpenAiIntegration.PredictorContext
Assembly: OpenAiIntegration
File(s): /home/runner/work/KicktippAi/KicktippAi/src/OpenAiIntegration/PredictorContext.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 31
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%
CreateBasic(...)100%11100%

File(s)

/home/runner/work/KicktippAi/KicktippAi/src/OpenAiIntegration/PredictorContext.cs

#LineLine coverage
 1using EHonda.KicktippAi.Core;
 2
 3namespace OpenAiIntegration;
 4
 5/// <summary>
 6/// Context for making predictions with OpenAI.
 7/// For MVP, this is a simple container that can be extended with additional context later.
 8/// </summary>
 9public class PredictorContext
 10{
 11    /// <summary>
 12    /// Additional documents/context that can be used for prediction (optional for MVP)
 13    /// </summary>
 114    public IReadOnlyList<DocumentContext> Documents { get; set; } = new List<DocumentContext>();
 15
 16    /// <summary>
 17    /// Additional instructions or context for the AI predictor
 18    /// </summary>
 19    public string? AdditionalInstructions { get; set; }
 20
 21    /// <summary>
 22    /// Creates a basic context for MVP usage
 23    /// </summary>
 24    public static PredictorContext CreateBasic(string? additionalInstructions = null)
 25    {
 126        return new PredictorContext
 127        {
 128            AdditionalInstructions = additionalInstructions
 129        };
 30    }
 31}

Methods/Properties

.ctor()
CreateBasic(string)