import * as z from "zod/v4"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { SearchContextSizeEnum } from "./searchcontextsizeenum.js"; import { WebSearchDomainFilter, WebSearchDomainFilter$Outbound } from "./websearchdomainfilter.js"; import { WebSearchEngineEnum } from "./websearchengineenum.js"; import { WebSearchUserLocation, WebSearchUserLocation$Outbound } from "./websearchuserlocation.js"; /** * Web search tool configuration */ export type LegacyWebSearchServerTool = { /** * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. */ engine?: WebSearchEngineEnum | undefined; filters?: WebSearchDomainFilter | null | undefined; /** * Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, and Parallel engines; ignored with native provider search. */ maxResults?: number | undefined; /** * Size of the search context for web search tools */ searchContextSize?: SearchContextSizeEnum | undefined; type: "web_search"; /** * User location information for web search */ userLocation?: WebSearchUserLocation | null | undefined; }; /** @internal */ export declare const LegacyWebSearchServerTool$inboundSchema: z.ZodType; /** @internal */ export type LegacyWebSearchServerTool$Outbound = { engine?: string | undefined; filters?: WebSearchDomainFilter$Outbound | null | undefined; max_results?: number | undefined; search_context_size?: string | undefined; type: "web_search"; user_location?: WebSearchUserLocation$Outbound | null | undefined; }; /** @internal */ export declare const LegacyWebSearchServerTool$outboundSchema: z.ZodType; export declare function legacyWebSearchServerToolToJSON(legacyWebSearchServerTool: LegacyWebSearchServerTool): string; export declare function legacyWebSearchServerToolFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=legacywebsearchservertool.d.ts.map