Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/planner / runPlanned

Function: runPlanned()

ts
function runPlanned(
   engine, 
   goal, 
   args?, 
options?): Promise<RunHandle<unknown>>;

Defined in: packages/planner/src/plan.ts:298

plan-then-run in one call (amended during M6-T05: the composition is async because planning itself is a run). options.plan bounds the planning conversation, options.run bounds the generated workflow's execution; the two ceilings are independent, and the bare form without options runs BOTH legs unbounded, as before.

Parameters

ParameterType
engineEngine
goalstring
args?Json
options?RunPlannedOptions

Returns

Promise&lt;RunHandle&lt;unknown&gt;&gt;