@modelfusion/mathjs-tool
v0.1.1
Published
Math.js tool for ModelFusion
Maintainers
Readme
Math.js Tool for ModelFusion
Math.js is a JavaScript library for evaluating mathematical expressions.
Requirements
- ModelFusion v0.106.0 or higher
Usage
import { MathJsTool } from "@modelfusion/mathjs-tool";
const mathTool = new MathJsTool({
name: "math",
});You can then use the tool with useTool or executeTool:
const result = await executeTool(mathTool, {
expression: "2 + 2",
});