Skip to content

Interface: IngestionPollOptions

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Ingestion / IngestionPollOptions

Interface: IngestionPollOptions

Defined in: src/types/ingestion.ts:168

Options for polling an async ingestion session to completion.

Properties

onProgress()?

optional onProgress: (progress) => void

Defined in: src/types/ingestion.ts:176

Optional callback invoked with progress data on each poll cycle.

Parameters

progress

SessionProgressResponse

Returns

void


pollIntervalMs?

optional pollIntervalMs: number

Defined in: src/types/ingestion.ts:172

Interval between polls in milliseconds.

Default Value

2000

signal?

optional signal: AbortSignal

Defined in: src/types/ingestion.ts:170

Abort signal to cancel polling.


timeoutMs?

optional timeoutMs: number

Defined in: src/types/ingestion.ts:174

Maximum time to wait before throwing a timeout error, in milliseconds.

Default Value

300000