UNPKG

@codai/memorai-core

Version:

Simplified advanced memory engine - no tiers, just powerful semantic search with persistence

29 lines 935 B
import type { MemoryType } from '../types/index.js'; export interface ClassificationResult { type: MemoryType; confidence: number; reasoning: string; } export declare class MemoryClassifier { private patterns; /** * Classify a memory based on its content */ classify(content: string): ClassificationResult; /** * Batch classify multiple memories */ classifyBatch(contents: string[]): ClassificationResult[]; /** * Get classification confidence threshold recommendations */ getConfidenceThresholds(): Record<MemoryType, number>; /** * Validate classification result */ validateClassification(result: ClassificationResult): boolean; private applyLengthHeuristic; private applyStructureHeuristic; private hasKeywordMatch; private applySpecificHeuristics; private calculateMaxPossibleScore; } //# sourceMappingURL=MemoryClassifier.d.ts.map