/** * brain-memory — Reflection extractor * * Two reflection modes: * - Turn reflection: lightweight, scans extraction results for importance boosts * - Session reflection: heavyweight, LLM full session analysis → graph nodes * * Safety: reflection content is filtered to prevent prompt injection attacks. * Reflection results are stored as graph nodes (not flat text). */ import type { ReflectionConfig, ReflectionInsight } from "../types"; import type { CompleteFn } from "../engine/llm"; export declare function sanitizeReflectionText(text: string, enabled: boolean): string; interface TurnBoost { name: string; reason: string; importanceDelta: number; } export declare function reflectOnTurn(cfg: ReflectionConfig, llm: CompleteFn, params: { extractedNodes: Array<{ name: string; category: string; type: string; validatedCount: number; }>; existingNodes: Array<{ name: string; category: string; validatedCount: number; }>; }): Promise; export declare function reflectOnSession(cfg: ReflectionConfig, llm: CompleteFn, params: { sessionMessages: string; extractedNodes: Array<{ name: string; category: string; type: string; content: string; }>; }): Promise; export {}; //# sourceMappingURL=extractor.d.ts.map