Skip to content

rulvar API reference


rulvar API reference / @rulvar/planner / runPlannerSelfRepair

Function: runPlannerSelfRepair()

ts
function runPlannerSelfRepair(options): Promise<{
  engine: Engine;
  entries: JournalEntry[];
  planned: PlanResult;
}>;

Defined in: packages/planner/src/cassettes.ts:100

One planner-self-repair run: the first draft fails lint, the JSON diagnostics ride the repair prompt, the second draft compiles. Returns the normalized planning journal plus the plan result.

Parameters

ParameterType
options{ makeAdapter: () => unknown; modelRef: string; seedEntries?: JournalEntry[]; store?: InMemoryStore; }
options.makeAdapter() => unknown
options.modelRefstring
options.seedEntries?JournalEntry[]
options.store?InMemoryStore

Returns

Promise<{ engine: Engine; entries: JournalEntry[]; planned: PlanResult; }>