@modelfusion/mathjs-tool
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    186
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    186
  • 0.1.0
    0

Package Sidebar

Install

npm i @modelfusion/mathjs-tool

Weekly Downloads

186

Version

0.1.1

License

MIT

Unpacked Size

7.7 kB

Total Files

9

Last publish

Collaborators

  • lgrammel