Skip to content

Type Alias: SessionDocumentFailureCode

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SessionDocumentFailureCode

SessionDocumentFailureCode = "previous_document_not_found" | "duplicate_document_version_conflict" | "duplicate_version_without_registry" | "not_attempted" | "ingestion_failed"

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

Why one document of an ingestion session failed.

The three version refusals are the same code the synchronous upload answers for the same refusal. not_attempted and ingestion_failed exist only on a session document; the synchronous upload answers those failures with no code. ingestion_failed covers both unparseable content and an engine fault, and SessionDocument.error says which.