< Summary

Information
Class: UIBlazor.Services.Models.ToolCall
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/Services/Models/ToolCall.cs
Tag: 71_26091983037
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 29
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
 1namespace UIBlazor.Services.Models;
 2
 3/// <summary>
 4/// Details of the function to be executed
 5/// </summary>
 6public class ToolCall
 7{
 8    [JsonPropertyName("index")]
 09    public int? Index { get; set; } = 0;
 10
 11    /// <summary>
 12    /// Used later to submit the function result back to the AI.
 13    /// </summary>
 14    [JsonPropertyName("id")]
 015    public string Id { get; set; } = string.Empty;
 16
 17    /// <summary>
 18    /// It will probably always be "function", indicating that the execution of a function is being requested.
 19    /// </summary>
 20    /// <returns>
 21    [JsonPropertyName("type")]
 022    public string Type { get; set; } = "function";
 23
 24    /// <summary>
 25    /// Gets or sets the function to call, represented by the <see cref="ToolCallFunction"/> object.
 26    /// </summary>
 27    [JsonPropertyName("function")]
 028    public ToolCallFunction Function { get; set; }
 29}