Interface: SessionDocument
@kortexya/reasoninglayer / SessionDocument
Interface: SessionDocument
Section titled “Interface: SessionDocument”Defined in: src/types/ingestion.ts:1605
One document of an ingestion session, with how its ingestion ended.
Properties
Section titled “Properties”documentId
Section titled “documentId”documentId:
string
Defined in: src/types/ingestion.ts:1607
Session-tracking document identifier (UUID).
error?
Section titled “error?”
optionalerror?: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.
errorCode?
Section titled “errorCode?”
optionalerrorCode?: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.
receipt?
Section titled “receipt?”
optionalreceipt?:DocumentReceipt
Defined in: src/types/ingestion.ts:1619
What the document’s ingestion wrote. Present once status is complete.
status
Section titled “status”status:
IngestionDocumentStatus
Defined in: src/types/ingestion.ts:1621
Current status of the document.