Table of Contents

Property Tools

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

Tools

Gets a read-only view of all tools currently registered.

public IReadOnlyCollection<ITool> Tools { get; }

Property Value

IReadOnlyCollection<ITool>

A collection of all registered ITool instances.

Examples

Example: Listing registered tools

using LMKit.Agents.Tools;

var registry = new ToolRegistry();
registry.Register(new WeatherTool());
registry.Register(new SearchTool());

Console.WriteLine("Available tools:");
foreach (ITool tool in registry.Tools)
{
    Console.WriteLine($"  {tool.Name}: {tool.Description}");
}

Remarks

The returned collection reflects the current state of the registry. The enumeration order is not guaranteed and should not be relied upon.

Do not enumerate this collection while modifying the registry from another thread.