import type { ChatMessage } from "../bridge/types.js"; import type { OrchestratorKernel } from "../orchestrator/kernel.js"; export interface Lesson { id: string; content: string; keywords: string[]; createdAt: number; } /** * Automatically extracts lessons from session conversations. */ export declare class AutoLearner { private lastLearnTime; private readonly minIntervalMs; private readonly minMessages; /** * Check if enough time and messages have passed to trigger learning. */ shouldLearn(messageCount: number): boolean; /** * Extract lessons from conversation history via the main slot. */ extractLessons(messages: ChatMessage[], kernel: OrchestratorKernel): Promise; private parseLessons; /** * Find lessons relevant to a given prompt by keyword matching. */ filterRelevant(lessons: Lesson[], prompt: string, maxCount?: number): Lesson[]; } //# sourceMappingURL=auto-learner.d.ts.map