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.

68 lines (67 loc) 1.99 kB
/** * llmverify Configuration Types * * @module types/config * @author Haiec * @license MIT */ export type Tier = 'free' | 'team' | 'professional' | 'enterprise'; export interface EngineConfig { enabled: boolean; config?: Record<string, unknown>; } export interface CSM6Config extends EngineConfig { profile: 'baseline' | 'high_risk' | 'finance' | 'health' | 'research'; checks: { security: boolean; privacy: boolean; safety: boolean; fairness: boolean; reliability: boolean; transparency: boolean; }; /** PII detection settings */ pii?: { enabled: boolean; /** Minimum severity to report: 'low' | 'medium' | 'high' | 'critical' */ minSeverity?: 'low' | 'medium' | 'high' | 'critical'; /** Categories to scan: 'personal' | 'financial' | 'credential' | 'location' | 'health' */ categories?: Array<'personal' | 'financial' | 'credential' | 'location' | 'health'>; }; /** Harmful content detection settings */ harmful?: { enabled: boolean; /** Minimum severity to report */ minSeverity?: 'low' | 'medium' | 'high' | 'critical'; }; } export interface Config { tier: Tier; organizationId?: string; privacy: { allowNetworkRequests: boolean; apiKey?: string; telemetryEnabled: boolean; dataResidency?: 'US' | 'EU' | 'UK'; }; engines: { hallucination: EngineConfig; consistency: EngineConfig; jsonValidator: EngineConfig; csm6: CSM6Config; }; performance: { timeout: number; maxContentLength: number; cacheEnabled: boolean; cacheTTL: number; }; output: { verbose: boolean; includeEvidence: boolean; includeMethodology: boolean; includeLimitations: boolean; }; } export declare const DEFAULT_CONFIG: Config; export declare const TIER_LIMITS: Record<Tier, Partial<Config>>;