< Summary

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

File(s)

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

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