Rulvar API reference / @rulvar/core / Workflow
Interface: Workflow<A, R>
Defined in: packages/core/src/engine/ctx.ts:668
Closure-form workflow value; in-process only.
Type Parameters
| Type Parameter | Default type |
|---|---|
A | unknown |
R | unknown |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
argsSchema? | readonly | SchemaSpec<A> | - | packages/core/src/engine/ctx.ts:671 |
body | readonly | (ctx, args) => Promise<R> | - | packages/core/src/engine/ctx.ts:685 |
effort? | readonly | Effort | - | packages/core/src/engine/ctx.ts:684 |
errorPolicy | readonly | ErrorPolicy | - | packages/core/src/engine/ctx.ts:672 |
kind | readonly | "workflow" | - | packages/core/src/engine/ctx.ts:669 |
model? | readonly | ModelSpec | Workflow defaults: the third layer of the resolution chain, under the call override and the agent profile and over the engine defaults. A workflow that declares nothing contributes no layer and resolves exactly as it did before. The layer follows the CALL TREE, not the file: a child spawned through ctx.workflow contributes ITS OWN defaults inside its scope, so nesting a cheap workflow under an expensive one does the obvious thing. | packages/core/src/engine/ctx.ts:682 |
name | readonly | string | - | packages/core/src/engine/ctx.ts:670 |
routing? | readonly | Partial<Record<InvocationRole, ModelSpec>> | - | packages/core/src/engine/ctx.ts:683 |