/** * Memory Extractor * * 세션 메시지에서 의미 있는 메모리를 추출합니다. * 카테고리: error_solution, code_pattern, decision, context, convention */ import type { SessionMessage, ExtractionResult } from '../types/index.js'; import type { LLMClient } from '../llm/client.js'; /** * 메시지가 노이즈인지 판별 */ export declare function isNoiseMessage(text: string): boolean; export declare function extractMemories(messages: SessionMessage[], projectPath: string): ExtractionResult; /** * LLM 기반 분류가 포함된 메모리 추출 (async) * LLM 없으면 extractMemories와 동일한 결과 */ export declare function extractMemoriesWithLLM(messages: SessionMessage[], projectPath: string, llmClient?: LLMClient): Promise; /** * 저장 전 품질 게이트 — true면 메모리로 저장하지 않는다. * * ⚠️ **의도적으로 좁다.** 명백한 노이즈 한 종류만 거르고, 나머지는 배포 후 * 카테고리별 증가량 실측으로 판단한다(ADR-053 섹션 5). 임의 임계로 넓게 거르면 * 진짜 지식까지 잃고, 그 손실은 조용해서 관측되지 않는다. */ export declare function isResponseFragment(content: string): boolean; /** * LLM 기반 세션 요약 생성 */ export declare function summarizeSession(messages: SessionMessage[], llmClient: LLMClient): Promise; //# sourceMappingURL=extractor.d.ts.map