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
| Parameter | Type |
|---|---|
engine | Engine |
goal | string |
args? | Json |
options? | RunPlannedOptions |
Returns
Promise<RunHandle<unknown>>