You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
534 B

export interface AiChatCitation {
keys: string[];
tool: 'allocation_breakdown' | 'portfolio_analysis' | 'risk_flags';
}
export interface AiChatToolRun {
durationMs: number;
status: 'error' | 'success';
toolName: 'allocation_breakdown' | 'portfolio_analysis' | 'risk_flags';
}
export interface AiChatResponse {
answer: string;
citations: AiChatCitation[];
confidence: 'high' | 'low' | 'medium';
latencyMs: number;
needsHumanReview: boolean;
toolRuns: AiChatToolRun[];
traceId: string;
warnings: string[];
}