agsamantha/node_modules/@langchain/community/dist/tools/wolframalpha.d.ts

21 lines
492 B
TypeScript
Raw Normal View History

2024-10-02 20:15:21 +00:00
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>;
}