Skip to content
providerkit
GitHub

StepOptions

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

Type Parameter
T
I
optional input?: I;

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


optional needsApproval?: boolean;

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


optional retry?: object;

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

No retries by default. A read-only assertion or authoritative reconciliation is required.

optional baseDelayMs?: number;
maxAttempts: number;
optional maxDelayMs?: number;
replay: "read-only" | "reconcile";
optional retryOn?: (error, attempt) => boolean;
Parameter Type
error StepError
attempt number

boolean


optional timeoutMs?: number;

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


optional validate?: (value) => T;

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

Pure. Rechecked on replay. Without it T must itself be plain JSON.

Parameter Type
value unknown

T


optional validateInput?: (raw) => I;

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

Required before accepting an approval’s edited input.

Parameter Type
raw unknown

I