import { CallbackManagerForToolRun } from "@langchain/core/callbacks/manager"; import { Tool, type ToolParams } from "@langchain/core/tools"; import { JigsawStack } from "jigsawstack"; type JigsawStackType = ReturnType; export type AISearchInputParams = Omit["0"], "query">; export type AISearchOutputParams = Awaited>; export interface JigsawStackAISearchParams extends ToolParams { /** * The API key to use. * @default {process.env.JIGSAWSTACK_API_KEY} */ apiKey?: string; /** * AI Search input parameters. */ params: AISearchInputParams; } /** * A tool that leverages the JigsawStack Search API for AI-driven web search. * * This tool enables you to perform web searches and retrieve high-quality results powered by AI. * * To use this tool, ensure that the `JIGSAWSTACK_API_KEY` environment variable is set. * You can create a free API key at [JigsawStack](https://jigsawstack.com). * * @example * ```typescript * const tool = new JigsawStackAISearch(); * const res = await tool.invoke("The leaning tower of Pisa"); * console.log({ res }); * ``` */ export declare class JigsawStackAISearch extends Tool { client: JigsawStackType; static lc_name(): string; description: string; name: string; params?: AISearchInputParams; constructor(fields?: JigsawStackAISearchParams); protected _call(query: string, _runManager?: CallbackManagerForToolRun): Promise; } export {};