Skip to main content

WolframAlpha Tool

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


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


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

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

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


API Reference:

Was this page helpful?

You can also leave detailed feedback on GitHub.