UNPKG

@codai/memorai-core

Version:

Core memory engine with vector operations for AI agents

28 lines 879 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(content: string, result: ClassificationResult, minConfidence?: number): boolean; private applyLengthHeuristic; private applyStructureHeuristic; } //# sourceMappingURL=MemoryClassifier.d.ts.map