Table of Contents

Property Name

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

Name

Gets the name of the tool to invoke.

public string Name { get; }

Property Value

string

The exact tool name as registered in the ToolRegistry. Case-sensitive.

Examples

Example: Looking up a tool by name

if (registry.TryGet(toolCall.Name, out ITool tool))
{
    string result = await tool.InvokeAsync(toolCall.ArgumentsJson);
    // Process result...
}
else
{
    Console.WriteLine($"Unknown tool: {toolCall.Name}");
}

Remarks

Use this name to look up the corresponding ITool instance in your registry using TryGet(string, out ITool).