Skip to content

Interface: SessionDocument

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SessionDocument

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

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

documentId: string

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

Session-tracking document identifier (UUID).


optional error?: string

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

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:1915

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


optional errorRefusal?: SessionDocumentRefusal

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

What the synchronous 409 names beside its message when a bound constraint refused the document (reasoninglayer#1253). Present only with a bound-constraint errorCode.


optional receipt?: DocumentReceipt

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

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


status: IngestionDocumentStatus

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

Current status of the document.