57 lines
1.1 KiB
TypeScript
57 lines
1.1 KiB
TypeScript
export interface ResearchStatus {
|
|
id: string;
|
|
status: string;
|
|
progress?: number;
|
|
error?: string;
|
|
}
|
|
|
|
export interface ResearchSummary {
|
|
id: string;
|
|
query: string;
|
|
status: string;
|
|
created_at: string;
|
|
completed_at?: string;
|
|
}
|
|
|
|
export interface SourceInfo {
|
|
id: string;
|
|
url: string;
|
|
title: string;
|
|
domain?: string;
|
|
source_type?: string;
|
|
independence_score?: number;
|
|
}
|
|
|
|
export interface ClaimInfo {
|
|
id: string;
|
|
claim: string;
|
|
claim_type: string;
|
|
confidence: number;
|
|
source_id?: string;
|
|
evidence_span?: string;
|
|
}
|
|
|
|
export interface EvidenceScore {
|
|
source_independence: number;
|
|
primary_source_proximity: number;
|
|
cross_source_support: number;
|
|
contradiction_level: number;
|
|
evidence_directness: number;
|
|
date_relevance: number;
|
|
}
|
|
|
|
export interface ResearchDetail {
|
|
id: string;
|
|
query: string;
|
|
status: string;
|
|
progress?: number;
|
|
created_at: string;
|
|
completed_at?: string;
|
|
error?: string;
|
|
sources?: SourceInfo[];
|
|
claims?: ClaimInfo[];
|
|
evidence?: EvidenceScore[];
|
|
report?: string;
|
|
methodology?: string;
|
|
}
|