StepOptions
Defined in: agents/src/workflow-types.ts:162
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
I |
Properties
Section titled “Properties”input?
Section titled “input?”optional input?: I;Defined in: agents/src/workflow-types.ts:163
needsApproval?
Section titled “needsApproval?”optional needsApproval?: boolean;Defined in: agents/src/workflow-types.ts:175
retry?
Section titled “retry?”optional retry?: object;Defined in: agents/src/workflow-types.ts:168
No retries by default. A read-only assertion or authoritative reconciliation is required.
baseDelayMs?
Section titled “baseDelayMs?”optional baseDelayMs?: number;maxAttempts
Section titled “maxAttempts”maxAttempts: number;maxDelayMs?
Section titled “maxDelayMs?”optional maxDelayMs?: number;replay
Section titled “replay”replay: "read-only" | "reconcile";retryOn?
Section titled “retryOn?”optional retryOn?: (error, attempt) => boolean;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
error |
StepError |
attempt |
number |
Returns
Section titled “Returns”boolean
timeoutMs?
Section titled “timeoutMs?”optional timeoutMs?: number;Defined in: agents/src/workflow-types.ts:166
validate?
Section titled “validate?”optional validate?: (value) => T;Defined in: agents/src/workflow-types.ts:165
Pure. Rechecked on replay. Without it T must itself be plain JSON.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value |
unknown |
Returns
Section titled “Returns”T
validateInput?
Section titled “validateInput?”optional validateInput?: (raw) => I;Defined in: agents/src/workflow-types.ts:177
Required before accepting an approval’s edited input.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
raw |
unknown |
Returns
Section titled “Returns”I