0.1.1 • Published 2 years ago

@modelfusion/mathjs-tool v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Math.js Tool for ModelFusion

Math.js is a JavaScript library for evaluating mathematical expressions.

Requirements

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",
});
0.1.1

2 years ago

0.1.0

2 years ago