< Summary

Information
Class: UIBlazor.Agents.Tool
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/Agents/Tool.cs
Tag: 14_22728831704
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 40
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_ExampleToSystemMessage()100%11100%
get_Enabled()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>
 3678    public required string Name { get; init; }
 9
 10    /// <summary>
 11    /// Display name for UI
 12    /// </summary>
 62613    public string DisplayName { get; init; } = string.Empty;
 14
 15    /// <summary>
 16    /// Description for LLM
 17    /// </summary>
 63418    public string Description { get; init; } = string.Empty;
 19
 20    /// <summary>
 21    /// Example in system message
 22    /// </summary>
 62623    public string ExampleToSystemMessage { get; init; } = string.Empty;
 24
 25    /// <summary>
 26    /// Enabled for use
 27    /// </summary>
 42928    public bool Enabled { get; set; } = true;
 29
 30    /// <summary>
 31    /// Category for grouping tools in UI
 32    /// </summary>
 31233    public ToolCategory Category { get; init; } = ToolCategory.ReadFiles;
 34
 35    /// <summary>
 36    /// Function to execute the tool
 37    /// </summary>
 38    [JsonIgnore]
 32139    public Func<IReadOnlyDictionary<string, object>, Task<VsToolResult>> ExecuteAsync { get; init; } = null!;
 40}