/** * fetch_and_index tool — SSRF-guarded web fetch + HTML→md conversion + index. * * Thin handler (mirrors BatchExecuteTool's shape): validates nothing itself and * delegates to an injected `run` function. The Tools API route binds `run` to * `WebController.fetchAndIndex` after resolving the async vector store; tests * bind it to a captured stub. * * Params (single OR batch): * - url + source → single fetch * - requests[] → batch (wins over url when both supplied) * - concurrency (1-8) → parallel fetch phase (cpu-capped for batch) * - force → bypass TTL cache * - ttl → per-call cache window override (ms; 0 = bypass) * * Indexing is always SERIAL per URL (single-writer safety) even when fetches * race in the run-pool. Returns per-URL status + chunk counts. */ import type { ToolResponse, IToolHandler } from "@massa-th0th/shared"; import type { FetchAndIndexParams } from "../services/web/web-controller.js"; export declare class FetchAndIndexTool implements IToolHandler { name: string; description: string; inputSchema: { type: string; properties: { url: { type: string; description: string; }; source: { type: string; description: string; }; requests: { type: string; items: { type: string; properties: { url: { type: string; description: string; }; source: { type: string; description: string; }; }; required: string[]; }; description: string; }; concurrency: { type: string; description: string; }; force: { type: string; description: string; }; ttl: { type: string; description: string; }; }; }; private run; constructor(run: (params: FetchAndIndexParams) => Promise); handle(params: unknown): Promise; } //# sourceMappingURL=fetch_and_index.d.ts.map