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

/@modelfusion/mathjs-tool/

    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