Table of Contents

Class CalculatorTool

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

A built-in tool for mathematical calculations.

Supports basic arithmetic, trigonometry, logarithms, and common math functions.

public sealed class CalculatorTool : ITool
Inheritance
CalculatorTool
Implements
Inherited Members

Examples

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

// Agent can now calculate: sqrt(144), sin(45), 15% of 200, 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.