Skip to main content

WolframAlpha Tool

The WolframAlpha tool connects your agents and chains to WolframAlpha's state-of-the-art computational intelligence engine.

Setup

You'll need to create an app from the WolframAlpha portal and obtain an appid.

Usage

import { WolframAlphaTool } from "@langchain/community/tools/wolframalpha";

const tool = new WolframAlphaTool({
appid: "YOUR_APP_ID",
});

const res = await tool.invoke("What is 2 * 2?");

console.log(res);

API Reference:


Was this page helpful?


You can also leave detailed feedback on GitHub.