/** * Shared factory for creating Exa tools with consistent error handling and response formatting. */ import type { TSchema } from "@oh-my-pi/pi-ai"; import type { CustomTool } from "../extensibility/custom-tools/types"; import type { ExaRenderDetails } from "./types"; /** Creates an Exa tool with standardized API key handling, error wrapping, and optional search response formatting. */ export declare function createExaTool(name: string, label: string, description: string, parameters: TSchema, mcpToolName: string, options?: { /** When true, checks isSearchResponse and formats with formatSearchResults. Default: true */ formatResponse?: boolean; /** Transform params before passing to callExaTool */ transformParams?: (params: Record) => Record; }): CustomTool;