Skip to content
providerkit
GitHub

WorkflowSpec

Defined in: agents/src/workflow-types.ts:149

Type Parameter
I
O
optional agents?: readonly (
| Agent<unknown>
| RemoteAgent<unknown>)[];

Defined in: agents/src/workflow-types.ts:155


id: string;

Defined in: agents/src/workflow-types.ts:150


input: ResultSchema<I>;

Defined in: agents/src/workflow-types.ts:153


optional limits?: Partial<WorkflowLimits>;

Defined in: agents/src/workflow-types.ts:157


optional output?: ResultSchema<O>;

Defined in: agents/src/workflow-types.ts:154


optional treeLimits?: Partial<TreeLimits>;

Defined in: agents/src/workflow-types.ts:158


version: string;

Defined in: agents/src/workflow-types.ts:152

Change when coordination, callback implementations or result meaning changes.


optional workflows?: readonly Workflow<unknown, unknown>[];

Defined in: agents/src/workflow-types.ts:156

run(input, context): Promise<O>;

Defined in: agents/src/workflow-types.ts:160

Pure coordination only. Put every effect and nondeterministic read in a step.

Parameter Type
input I
context WorkflowContext

Promise<O>