Table of Contents

Class ConversionTool

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

A built-in tool for unit conversions.

Supports conversions between common units of length, weight, temperature, time, and data size.

public sealed class ConversionTool : ITool
Inheritance
ConversionTool
Implements
Inherited Members

Examples

var tool = new ConversionTool();
registry.Register(tool);

// Agent can now: convert miles to km, Celsius to Fahrenheit, etc.

Properties

Description

Gets a concise description of what the tool does.

InputSchema

Gets the JSON Schema defining the expected input arguments.

Name

Gets the stable, unique identifier for this tool.

Methods

InvokeAsync(string, CancellationToken)

Executes the tool with the specified JSON arguments.