Skip to content

Interface: SessionDocument

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SessionDocument

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

One document of an ingestion session, with how its ingestion ended.

documentId: string

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

Session-tracking document identifier (UUID).


optional error?: string

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

Why the document failed: the parser’s line and column message, or the refusal. Present only when status is failed.


optional errorCode?: SessionDocumentFailureCode

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

The typed reason error describes. Branch on this, not on the wording of error. Present only when status is failed.


optional receipt?: DocumentReceipt

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

What the document’s ingestion wrote. Present once status is complete.


status: IngestionDocumentStatus

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

Current status of the document.