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.
22 lines (21 loc) • 584 B
TypeScript
/**
* Intent Detection Module
*
* Detects the primary intent/purpose of LLM output.
*
* @module engines/classification/intent
* @author Haiec
* @license MIT
*/
import { IntentTag, IntentCandidate } from './types';
/**
* Detects intent candidates from text.
*
* @param text - The text to analyze
* @returns Array of intent candidates sorted by confidence
*/
export declare function detectIntent(text: string): IntentCandidate[];
/**
* Gets the primary intent from candidates.
*/
export declare function getPrimaryIntent(candidates: IntentCandidate[]): IntentTag | null;