import { type LinkupSearchResponse } from 'linkup-sdk'; import type { LinkupSearchConfig } from './types.js'; /** * Creates a web search tool powered by Linkup for use with Vercel AI SDK * * @param config - Configuration options for the Linkup search * @returns A tool that can be used with AI SDK's generateText, streamText, etc. * * @example * ```ts * import { openai } from "@ai-sdk/openai"; * import { generateText, stepCountIs } from "ai"; * import { webSearch } from "./index.js"; * * // Just set LINKUP_API_KEY in .env, then: * const { text } = await generateText({ * model: openai('gpt-4o-mini'), * prompt: 'What was Microsoft’s revenue last quarter and was it well perceived by the market?', * tools: { * webSearch: webSearch({ depth: 'standard' }), * }, * stopWhen: stepCountIs(3), * }); * ``` */ export declare function webSearch(config?: LinkupSearchConfig): import("ai").Tool<{ query: string; }, import("linkup-sdk").SearchResults>; export type { LinkupSearchConfig, LinkupSearchResponse }; //# sourceMappingURL=index.d.ts.map