/** * RLM completion/report tool. * * This is the model-facing stop/report seam for autonomous research mode. It * writes the deterministic report from the live notebook and, for final * completion, marks the RLM controller complete so the existing agent loop can * pause through CreateAgentSessionOptions.shouldPause. */ import * as z from "zod/v4"; import type { NotebookDocument } from "../edit/notebook"; import type { CustomTool } from "../extensibility/custom-tools/types"; import type { RlmNotebookWriter } from "./notebook"; import type { RlmArtifactPaths } from "./types"; export declare const RLM_COMPLETE_RESEARCH_TOOL_NAME = "complete_research"; declare const paramsSchema: z.ZodObject<{ summary: z.ZodString; final: z.ZodOptional; }, z.core.$strip>; export interface RlmReportWriteInput { paths: RlmArtifactPaths; notebook: RlmNotebookWriter; title: string; summary?: string; dataPath?: string | null; } export interface RlmCompleteResearchContext extends RlmReportWriteInput { minSuccessfulRuns?: number; getGoalStatus?: () => string | undefined; markCompleted?: (summary: string) => void; } export declare function countSuccessfulNotebookRuns(notebook: NotebookDocument): number; export declare function summarizeNotebookForReplay(notebook: NotebookDocument, maxChars?: number): string; export declare function writeRlmReport(input: RlmReportWriteInput): Promise; export declare function createRlmCompleteResearchTool(context: RlmCompleteResearchContext): CustomTool; export {};