20 lines
492 B
TypeScript
20 lines
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>;
|
|
}
|