< Summary

Information
Class: UIBlazor.Agents.Tool
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/Agents/Tool.cs
Tag: 71_26091983037
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 50
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_Name()100%11100%
get_DisplayName()100%11100%
get_Description()100%11100%
get_NativeTool()100%11100%
get_ExampleToSystemMessage()100%11100%
get_Enabled()100%11100%
get_Server()100%11100%
get_Category()100%11100%
get_ExecuteAsync()100%11100%

File(s)

/home/runner/work/InvAit/InvAit/UIBlazor/Agents/Tool.cs

#LineLine coverage
 1namespace UIBlazor.Agents;
 2
 3public class Tool
 4{
 5    /// <summary>
 6    /// Name of tool
 7    /// </summary>
 14368    public required string Name { get; init; }
 9
 10    /// <summary>
 11    /// Display name for UI
 12    /// </summary>
 253213    public string DisplayName { get; init; } = string.Empty;
 14
 15    /// <summary>
 16    /// Description for LLM
 17    /// </summary>
 257118    public string Description { get; init; } = string.Empty;
 19
 20    /// <summary>
 21    /// Used for native tools_calling
 22    /// </summary>
 12823    public NativeToolDefinition NativeTool { get; init; } = null!;
 24
 25    /// <summary>
 26    /// Example in system message. Only form prompt tool calling.
 27    /// </summary>
 254128    public string ExampleToSystemMessage { get; init; } = string.Empty;
 29
 30    /// <summary>
 31    /// Enabled for use
 32    /// </summary>
 190333    public bool Enabled { get; set; } = true;
 34
 35    /// <summary>
 36    /// Имя MCP сервера
 37    /// </summary>
 131438    public string Server { get; set; } = string.Empty;
 39
 40    /// <summary>
 41    /// Category for grouping tools in UI
 42    /// </summary>
 132443    public ToolCategory Category { get; init; } = ToolCategory.ReadFiles;
 44
 45    /// <summary>
 46    /// Function to execute the tool
 47    /// </summary>
 48    [JsonIgnore]
 129349    public Func<IReadOnlyDictionary<string, object>, CancellationToken, Task<VsToolResult>> ExecuteAsync { get; init; } 
 50}