Class CalcArithmeticTool
A built-in tool for basic arithmetic calculations.
Supports addition, subtraction, multiplication, division, modulo, and percentage.
public sealed class CalcArithmeticTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
CalcArithmeticTool
- Implements
- Inherited Members
Examples
var tool = new CalcArithmeticTool();
registry.Register(tool);
// Agent can now calculate: 10 + 5, 15% of 200, 17 mod 3, 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.