Table of Contents

Class CalcMathTool

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

A built-in tool for common math functions.

Supports power, square root, absolute value, rounding, floor, and ceiling.

public sealed class CalcMathTool : IBuiltInTool, ITool, IToolMetadata
Inheritance
CalcMathTool
Implements
Inherited Members

Examples

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

// Agent can now calculate: sqrt(144), 2^10, round(3.14159, 2), 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.

Share