Interface: SessionDocument
@kortexya/reasoninglayer / SessionDocument
Interface: SessionDocument
Section titled “Interface: SessionDocument”Defined in: src/types/ingestion.ts:1903
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:1905
Session-tracking document identifier (UUID).
error?
Section titled “error?”
optionalerror?: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.
errorCode?
Section titled “errorCode?”
optionalerrorCode?: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.
errorRefusal?
Section titled “errorRefusal?”
optionalerrorRefusal?: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.
receipt?
Section titled “receipt?”
optionalreceipt?:DocumentReceipt
Defined in: src/types/ingestion.ts:1923
What the document’s ingestion wrote. Present once status is complete.
status
Section titled “status”status:
IngestionDocumentStatus
Defined in: src/types/ingestion.ts:1925
Current status of the document.