UNPKG

@kareemaly/researcher

Version:
53 lines (52 loc) 1.11 kB
export type SearchType = "web" | "news" | "academic"; export interface SearchOptions { type?: SearchType; location?: string; language?: string; limit?: number; } export interface SearchResult { id: string; timestamp: number; query: string; type: string; location?: string; language?: string; results: SearchResultItem[]; } export interface SearchResultItem { title: string; url: string; snippet?: string; language?: string; published?: string; } export interface SearchItem { title: string; url: string; snippet: string; datePublished?: Date; source?: string; } export interface SearchMetadata { id: string; timestamp: string; query: string; options: SearchOptions; resultCount: number; processingTimeMs: number; } export interface ProcessedContent { url: string; title: string; text: string; html: string; markdown: string; metadata: { title?: string; description?: string; keywords?: string[]; author?: string; published?: string; }; }