@promptbook/google
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
16 lines (15 loc) • 730 B
TypeScript
import type { Promisable } from 'type-fest';
import type { string_markdown, string_markdown_text, string_title } from '../../types/typeAliases';
import type { SearchEngine } from '../SearchEngine';
import type { SearchResult } from '../SearchResult';
/**
* A dummy implementation of SearchEngine for testing purposes.
*
* @private <- TODO: !!!! Export via some package, maybe `@promptbook/search-engines` or `@promptbook/fake-llm`
*/
export declare class DummySearchEngine implements SearchEngine {
get title(): string_title & string_markdown_text;
get description(): string_markdown;
checkConfiguration(): Promisable<void>;
search(query: string, options?: Record<string, unknown>): Promise<SearchResult[]>;
}