< Summary

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

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>
 014    public IReadOnlyList<DocumentContext> Documents { get; set; } = new List<DocumentContext>();
 15
 16    /// <summary>
 17    /// Additional instructions or context for the AI predictor
 18    /// </summary>
 019    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    {
 026        return new PredictorContext
 027        {
 028            AdditionalInstructions = additionalInstructions
 029        };
 30    }
 31}