import type { Settings } from "../config/settings.js"; import type { AgentSession } from "../session/agent-session.js"; /** * Build the standing auto-learn guidance for the system prompt from the tools * actually present in the active set, or null when `manage_skill` is absent. * * Driven by tool presence rather than settings: keying the guidance on * `autolearn.enabled` would let a subagent that filtered the tools out — or a * session whose registry has not yet reconciled — inject guidance pointing at * tools the session does not have. The `learn` addendum is included only when * the `learn` tool is present (it requires a memory backend). */ export declare function buildAutoLearnInstructions(available: { manageSkill: boolean; learn: boolean; }): string | null; export interface AutoLearnControllerOptions { session: AgentSession; settings: Settings; capture: (content: string) => Promise; } export declare class AutoLearnController { #private; constructor(options: AutoLearnControllerOptions); }