type RetroFollowUp = { title: string; priority?: "p0" | "p1" | "p2"; reason?: string; }; export type OrgxAgentRetroDomain = "engineering" | "product" | "design" | "marketing" | "sales" | "operations" | "orchestration" | "general"; export declare function buildRetroTemplateForAgent(input: { agentId: string | null | undefined; success: boolean; taskId: string | null | undefined; runId: string; errorMessage: string | null | undefined; }): { domain: OrgxAgentRetroDomain; summary: string; whatWentWell: string[]; whatWentWrong: string[]; decisions: string[]; followUps: RetroFollowUp[]; }; /** * Generate a structured retro using an LLM, falling back to the heuristic * template produced by {@link buildRetroTemplateForAgent}. * * Caller: src/index.ts (~line 971) — `buildRetroTemplateForAgent` is invoked * inside the session-stopped handler. Migrate that call site to use this * function when ready to enable LLM-powered retros. */ export declare function buildRetroWithLlm(input: { agentId: string | null | undefined; success: boolean; taskId: string | null | undefined; runId: string; errorMessage: string | null | undefined; executionContext?: string | null; }): Promise<{ domain: OrgxAgentRetroDomain; summary: string; whatWentWell: string[]; whatWentWrong: string[]; decisions: string[]; followUps: RetroFollowUp[]; source: "llm" | "heuristic"; }>; export {};