Table of Contents

Class ExpressionEvalTool

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

A built-in tool for evaluating or simplifying math expressions.

Supports arithmetic operators, built-in math functions (sin, cos, sqrt, etc.), and named variables.

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

Examples

var tool = new ExpressionEvalTool();
var result = await tool.InvokeAsync(@"{""expression"":""2*(3+4)"",""mode"":""evaluate""}");

Constructors

ExpressionEvalTool()

Initializes a new instance of the ExpressionEvalTool class.

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