UNPKG

llmverify

Version:

AI Output Verification Toolkit — Local-first LLM safety, hallucination detection, PII redaction, prompt injection defense, and runtime monitoring. Zero telemetry. OWASP LLM Top 10 aligned.

24 lines (23 loc) 689 B
/** * Hallucination Engine * * Identifies risk indicators in AI outputs. * Does NOT definitively detect hallucinations - that requires ground truth. * * @module engines/hallucination * @author Haiec * @license MIT */ import { Config } from '../../types/config'; import { HallucinationResult } from '../../types/results'; export declare class HallucinationEngine { private config; private readonly LIMITATIONS; private readonly METHODOLOGY; constructor(config: Config); detect(content: string): Promise<HallucinationResult>; private calculateClaimRisk; private calculateRiskScore; private summarizeRiskIndicators; private calculateConfidence; }