The Calculator class is a tool used to evaluate mathematical expressions. It extends the base Tool class.

const calculator = new Calculator();
const sum = calculator.add(99, 99);
console.log("The sum of 99 and 99 is:", sum);

Hierarchy (view full)

Constructors

Properties

description: string = ...
name: string = "calculator"
""