@promptbook/remote-client
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
11 lines (10 loc) • 682 B
TypeScript
import type { ExecutionTools } from '../../../execution/ExecutionTools';
import type { PrepareAndScrapeOptions } from '../../../prepare/PrepareAndScrapeOptions';
import type { Registered } from '../../../utils/misc/$Register';
import type { Scraper } from '../Scraper';
import type { ScraperAndConverterMetadata } from './ScraperAndConverterMetadata';
/**
* Type definition for a constructor function that creates a Scraper instance.
* Used for registering scrapers in the system to handle different content types.
*/
export type ScraperConstructor = Registered & ScraperAndConverterMetadata & ((tools: Pick<ExecutionTools, 'llm'>, options: PrepareAndScrapeOptions) => Scraper);