agsamantha/node_modules/@langchain/community/dist/tools/wolframalpha.d.ts
2024-10-02 15:15:21 -05:00

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>;
}