Skip to main content

Type Alias: EngineBatchRecovery

EngineBatchRecovery = "metadata" | "none"

Defined in: packages/workflow-engine/src/ai/batch/model.ts:76

Whether a transport can find a batch it already created after the worker that created it died.

  • "metadata": the creation carries the engine's external key in a provider-side field the engine can search — OpenAI's batch metadata, Gemini's batch displayName. adopt() is implemented.
  • "none": the provider offers neither request idempotency the engine can rely on nor a searchable field. A re-submit would create and bill a second batch, so the engine refuses instead (Anthropic Message Batches carry no metadata; OpenRouter's beta batch body takes only endpoint, model and requests).