Skip to main content

Interface: AIBatchSubmitOptions

Defined in: packages/workflow-engine/src/ai/types.ts:637

Crash-recovery inputs for one AIBatch.submit call.

Properties​

externalKey?​

optional externalKey?: string

Defined in: packages/workflow-engine/src/ai/types.ts:643

Deterministic key naming this submission, from a durable step's StepRunContext.externalKey. Stamped into provider-side metadata (one sub-key per partition) so a replay can find what was already created.


onReclaim?​

optional onReclaim?: BatchReclaimPolicy

Defined in: packages/workflow-engine/src/ai/types.ts:656

"adopt" (default): on a recovering submit, adopt the batch already carrying the external key, and fail with BatchNotAdoptableError when the transport has no searchable field. "resubmit": create a new batch regardless, accepting that the earlier one is orphaned and still billed.


recovering?​

optional recovering?: boolean

Defined in: packages/workflow-engine/src/ai/types.ts:649

True when this call is a replay of a submit whose outcome was never recorded — a worker died with the lease held. Only then does the engine search the provider before creating anything.