@langchain/community
Version:
Third-party integrations for LangChain.js
21 lines (20 loc) • 492 B
TypeScript
import { Tool, type ToolParams } from "@langchain/core/tools";
/**
* @example
* ```typescript
* const tool = new WolframAlphaTool({
* appid: "YOUR_APP_ID",
* });
* const res = await tool.invoke("What is 2 * 2?");
* ```
*/
export declare class WolframAlphaTool extends Tool {
appid: string;
name: string;
description: string;
constructor(fields: ToolParams & {
appid: string;
});
static lc_name(): string;
_call(query: string): Promise<string>;
}