< Summary

Information
Class: UIBlazor.Services.Models.ChatChoice
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/Services/Models/ChatChoice.cs
Tag: 71_26091983037
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
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
get_Index()100%11100%
get_Message()100%11100%
get_FinishReason()100%11100%
get_Delta()100%11100%

File(s)

/home/runner/work/InvAit/InvAit/UIBlazor/Services/Models/ChatChoice.cs

#LineLine coverage
 1namespace UIBlazor.Services.Models;
 2
 3/// <summary>
 4/// A message received from the API, including the message text, index, and reason why the message finished.
 5/// </summary>
 6public class ChatChoice
 7{
 8    /// <summary>
 9    /// The index of the choice in the list of choices.
 10    /// </summary>
 11    [JsonPropertyName("index")]
 14212    public int Index { get; set; }
 13
 14    /// <summary>
 15    /// Non stream message.
 16    /// </summary>
 17    [JsonPropertyName("message")]
 14218    public ChatDelta? Message { get; set; }
 19
 20    /// <summary>
 21    /// The reason why the chat interaction ended after this choice was presented to the user
 22    /// </summary>
 23    [JsonPropertyName("finish_reason")]
 14624    public string? FinishReason { get; set; }
 25
 26    /// <summary>
 27    /// Stream. Partial message.
 28    /// </summary>
 29    [JsonPropertyName("delta")]
 42630    public ChatDelta? Delta { get; set; }
 31}