Interface: IngestionPollOptions
@kortexya/reasoninglayer / IngestionPollOptions
Interface: IngestionPollOptions
Section titled “Interface: IngestionPollOptions”Defined in: src/types/ingestion.ts:230
Options for polling an async ingestion session to completion.
Properties
Section titled “Properties”onProgress?
Section titled “onProgress?”
optionalonProgress?: (progress) =>void
Defined in: src/types/ingestion.ts:238
Optional callback invoked with progress data on each poll cycle.
Parameters
Section titled “Parameters”progress
Section titled “progress”Returns
Section titled “Returns”void
pollIntervalMs?
Section titled “pollIntervalMs?”
optionalpollIntervalMs?:number
Defined in: src/types/ingestion.ts:234
Interval between polls in milliseconds.
Default Value
Section titled “Default Value”2000signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: src/types/ingestion.ts:232
Abort signal to cancel polling.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: src/types/ingestion.ts:236
Maximum time to wait before throwing a timeout error, in milliseconds.
Default Value
Section titled “Default Value”300000