Class ExpressionTool
A built-in tool for safe math expression evaluation.
Parse and evaluate expressions like "2*(3+4)" with variable support.
public sealed class ExpressionTool : ITool
- Inheritance
-
ExpressionTool
- Implements
- Inherited Members
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.