UNPKG

@vezlo/ai-validator

Version:

AI Response Validator - Automated accuracy checking, hallucination prevention, and confidence scoring for AI responses

11 lines 516 B
import { HallucinationResult, Source } from './types'; export declare class HallucinationDetector { private openai?; private claude?; constructor(openaiApiKey?: string, claudeApiKey?: string); detectHallucination(response: string, sources: Source[], llmProvider: 'openai' | 'claude', model?: string): Promise<HallucinationResult>; private parseLLMResponse; private detectHallucinationWithOpenAI; private detectHallucinationWithClaude; } //# sourceMappingURL=HallucinationDetector.d.ts.map