import type { AgentHistoryRecord, ToolExecutionContext } from "@/types"; import type { ToolResolverApi } from "../toolResolver.js"; export type RlmExecuteResult = { output: string; printOutput: string[]; toolCallCount: number; steeringInterrupt?: { text: string; origin?: string; }; skipTurn?: boolean; }; export type RlmHistoryCallback = (record: AgentHistoryRecord) => Promise; export type RlmSteeringInfo = { text: string; origin?: string; }; export type RlmCheckSteeringCallback = () => RlmSteeringInfo | null; /** * Executes Monty Python code by routing external function calls into ToolResolver. * Expects: preamble matches the currently available tool names. */ export declare function rlmExecute(code: string, preamble: string, context: ToolExecutionContext, toolResolver: ToolResolverApi, toolCallId: string, historyCallback?: RlmHistoryCallback, checkSteering?: RlmCheckSteeringCallback): Promise; //# sourceMappingURL=rlmExecute.d.ts.map