Chain
Chain<
TJobId,TChainTypeName,TInput,TOutput> =ChainFields<TJobId,TChainTypeName,TInput> & {status:"running"; } |CompletedChainFields<TOutput>
Defined in: packages/core/src/entities/chain.types.ts:14
A chain. Discriminated union on Chain.status | status.
A chain is identified by the ID of its head job, which also carries the chain’s status.
Type Parameters
Section titled “Type Parameters”TJobId
Section titled “TJobId”TJobId
The job ID type
TChainTypeName
Section titled “TChainTypeName”TChainTypeName
The chain type name literal (matches the entry job type name)
TInput
Section titled “TInput”TInput
The chain’s input payload type (from the entry job)
TOutput
Section titled “TOutput”TOutput
The chain’s output type (from the final job when completed)