Table of Contents

Class ExpressionParseTool

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

A built-in tool for parsing, validating math expressions, or listing available functions.

Tokenizes expressions into structured components, validates syntax, and enumerates all supported math functions, constants, and operators.

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

Examples

var tool = new ExpressionParseTool();
var result = await tool.InvokeAsync(@"{""action"":""parse"",""expression"":""2*(x+4)""}");

Constructors

ExpressionParseTool()

Initializes a new instance of the ExpressionParseTool 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