UNPKG

@promptbook/remote-client

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

20 lines (19 loc) 724 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 * * 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 * * @param url The URL to fetch and scrape * @returns Markdown content from the URL * * @private internal utility for USE BROWSER commitment */ export declare function fetchUrlContent(url: string): Promise<string>;