UNPKG

@promptbook/google

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

23 lines (22 loc) 857 B
/** * Fetches and scrapes content from a URL (SERVER-SIDE ONLY) * * This function: * 1. Fetches the URL content using promptbookFetch * 2. Determines the content type (HTML, PDF, etc.) * 3. Uses the appropriate scraper to convert to markdown * 4. Returns the scraped markdown content * * @param url The URL to fetch and scrape * @returns Markdown content from the URL * * @private internal utility for USE BROWSER commitment * * WARNING: This function should NOT be used directly in browser environments. * For browser environments, use fetchUrlContentViaBrowser which proxies through * the Agents Server API endpoint at /api/scrape */ export declare function fetchUrlContent(url: string): Promise<string>; /** * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment */