跳到主要内容
WolframAlpha 工具将您的代理和链连接到 WolframAlpha 最先进的计算智能引擎。

设置

您需要从 WolframAlpha 门户创建一个应用程序并获取一个 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?");

console.log(res);

以编程方式连接这些文档到 Claude、VSCode 等,通过 MCP 获取实时答案。
© . This site is unofficial and not affiliated with LangChain, Inc.