< Summary

Information
Class: UIBlazor.Services.Models.ChatDelta
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/Services/Models/ChatDelta.cs
Tag: 71_26091983037
Line coverage
80%
Covered lines: 4
Uncovered lines: 1
Coverable lines: 5
Total lines: 38
Line coverage: 80%
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_Role()100%11100%
get_Content()100%11100%
get_ReasoningContent()100%11100%
get_Reasoning()100%210%
get_ToolCalls()100%11100%

File(s)

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

#LineLine coverage
 1namespace UIBlazor.Services.Models;
 2
 3using System.Text.Json.Serialization;
 4
 5public class ChatDelta
 6{
 7    /// <summary>
 8    /// The role of the message, which can be "system", "assistant", "user" or "tool"
 9    /// </summary>
 10    [JsonPropertyName("role")]
 42111    public string? Role { get; set; }
 12
 13    /// <summary>
 14    /// The content of the message with think block
 15    /// </summary>
 16    [JsonPropertyName("content")]
 71617    public string? Content { get; set; }
 18
 19    private string? _reasoning;
 20
 21    /// <summary>
 22    /// Optional. Content of message showed in think block
 23    /// </summary>
 24    [JsonPropertyName("reasoning_content")]
 14225    public string? ReasoningContent { get => _reasoning; set => _reasoning = value; }
 26
 27    /// <summary>
 28    /// Некоторые модели сюда пишут размышления
 29    /// </summary>
 30    [JsonPropertyName("reasoning")]
 031    public string? Reasoning { get => _reasoning; set => _reasoning = value; }
 32
 33    /// <summary>
 34    /// Optional. Native tools to be executed
 35    /// </summary>
 36    [JsonPropertyName("tool_calls")]
 14237    public IReadOnlyList<ToolCall>? ToolCalls { get; set; }
 38}