src / models / SearchResult.ts
/**
* Standardized search result model across all search providers.
* Mapped from Python `providers/models.py` SearchResult dataclass.
*/
export interface SearchResult {
/** Title of the search result page/document. */
title: string;
/** Full web URL of the search result. */
url: string;
/** Text snippet, summary, or content highlight. */
snippet: string;
/** Optional ISO or formatted publication date. */
publishedDate?: string;
/** Name of the provider that produced the result. */
source?: string;
/** Optional relevance or confidence score. */
score?: number;
/** Dictionary containing raw result data from provider response. */
raw?: Record<string, unknown>;
}
src / models / SearchResult.ts
/**
* Standardized search result model across all search providers.
* Mapped from Python `providers/models.py` SearchResult dataclass.
*/
export interface SearchResult {
/** Title of the search result page/document. */
title: string;
/** Full web URL of the search result. */
url: string;
/** Text snippet, summary, or content highlight. */
snippet: string;
/** Optional ISO or formatted publication date. */
publishedDate?: string;
/** Name of the provider that produced the result. */
source?: string;
/** Optional relevance or confidence score. */
score?: number;
/** Dictionary containing raw result data from provider response. */
raw?: Record<string, unknown>;
}