Table of Contents

Method ByCategory

Namespace
LMKit.Agents.Tools.BuiltIn
Assembly
LM-Kit.NET.dll

ByCategory(string)

Returns all tool descriptors for a category key (for example, "net", "data", "io").

public static IReadOnlyList<BuiltInToolDescriptor> ByCategory(string category)

Parameters

category string

Category key to match. Matching is case-insensitive and trims leading/trailing spaces.

Returns

IReadOnlyList<BuiltInToolDescriptor>

All descriptors whose Category equals the provided key.

Examples

Example: Querying by category string

var ioTools = BuiltInToolCatalog.ByCategory("io");
Console.WriteLine($"I/O tools: {ioTools.Count}");

Example: Enumerate categories, then query each one

foreach (var category in BuiltInToolCatalog.AvailableCategories)
{
    var tools = BuiltInToolCatalog.ByCategory(category);
    Console.WriteLine($"{category}: {tools.Count}");
}

Remarks

To enumerate every available category value, inspect AvailableCategories. This is useful when categories can be user-defined or extended over time.

Share