Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / makeOrchestratorWorkflow

Function: makeOrchestratorWorkflow() ​

ts
function makeOrchestratorWorkflow(goal, opts?): Workflow<undefined, unknown>;

Defined in: packages/core/src/orchestrator/orchestrate.ts:4127

Builds the orchestrator workflow: ONE implementation behind both surfaces. The body wires the spawn tools over the per-call runtime, recovers spawn records from the journal on resume, and runs the orchestrator agent with the finish terminal tool.

Parameters ​

ParameterType
goalstring
opts?OrchestrateOptions

Returns ​

Workflow&lt;undefined, unknown&gt;