@promptbook/remote-client
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
14 lines (13 loc) • 867 B
TypeScript
import type { SetOptional } from 'type-fest';
import type { ExecutionTools } from '../../../execution/ExecutionTools';
import type { KnowledgeSourceJson } from '../../../pipeline/PipelineJson/KnowledgeSourceJson';
import type { PrepareAndScrapeOptions } from '../../../prepare/PrepareAndScrapeOptions';
import type { ScraperSourceHandler } from '../Scraper';
/**
* Factory function that creates a handler for processing knowledge sources.
* Provides standardized processing of different types of knowledge sources
* across various scraper implementations.
*
* @public exported from `@promptbook/core`
*/
export declare function makeKnowledgeSourceHandler(knowledgeSource: SetOptional<KnowledgeSourceJson, 'name'>, tools: Pick<ExecutionTools, 'fs' | 'fetch'>, options?: Pick<PrepareAndScrapeOptions, 'rootDirname' | 'isVerbose'>): Promise<ScraperSourceHandler>;