Skip to main content

Type Alias: EngineBatchModelResolver

EngineBatchModelResolver = (ref) => Promise<EngineBatchModel | undefined> | EngineBatchModel | undefined

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

Finds the transport that owns a stored batch ref, in a process that did not create the batch. Return undefined (or throw) when this process cannot reach the provider, for example because it holds no credentials for it.

Parameters​

ref​

EngineBatchRef

Returns​

Promise<EngineBatchModel | undefined> | EngineBatchModel | undefined