WorkflowSpec
Defined in: agents/src/workflow-types.ts:149
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
I |
O |
Properties
Section titled “Properties”agents?
Section titled “agents?”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
limits?
Section titled “limits?”optional limits?: Partial<WorkflowLimits>;Defined in: agents/src/workflow-types.ts:157
output?
Section titled “output?”optional output?: ResultSchema<O>;Defined in: agents/src/workflow-types.ts:154
treeLimits?
Section titled “treeLimits?”optional treeLimits?: Partial<TreeLimits>;Defined in: agents/src/workflow-types.ts:158
version
Section titled “version”version: string;Defined in: agents/src/workflow-types.ts:152
Change when coordination, callback implementations or result meaning changes.
workflows?
Section titled “workflows?”optional workflows?: readonly Workflow<unknown, unknown>[];Defined in: agents/src/workflow-types.ts:156
Methods
Section titled “Methods”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
I |
context |
WorkflowContext |
Returns
Section titled “Returns”Promise<O>