< Summary

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

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace UIBlazor.Services.Models;
 4
 5/// <summary>
 6/// Details of the function to be executed
 7/// </summary>
 8public class ToolCall
 9{
 10    [JsonPropertyName("index")]
 011    public int? Index { get; set; } = 0;
 12
 13    /// <summary>
 14    /// Used later to submit the function result back to the AI.
 15    /// </summary>
 16    [JsonPropertyName("id")]
 017    public string Id { get; set; } = string.Empty;
 18
 19    /// <summary>
 20    /// It will probably always be "function", indicating that the execution of a function is being requested.
 21    /// </summary>
 22    /// <returns>
 23    [JsonPropertyName("type")]
 024    public string Type { get; set; } = "function";
 25
 26    /// <summary>
 27    /// Gets or sets the function to call, represented by the <see cref="ToolCallFunction"/> object.
 28    /// </summary>
 29    [JsonPropertyName("function")]
 030    public ToolCallFunction Function { get; set; }
 31}