Skip to content

Interface: DocumentBatchResultDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / DocumentBatchResultDto

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

Result for a single document in batch processing.

documentId: string

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

Document ID from the request.


optional error?: string | null

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

Error message (if failed).


optional errorCode?: SessionDocumentFailureCode

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

The typed reason error describes when a bound constraint refused the item (reasoninglayer#1253): the code its synchronous 409 and its session document answer.


optional errorRefusal?: SessionDocumentRefusal

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

The refused term, its feature and its constraint when a bound constraint refused the item.


optional ingestionStats?: IngestionStatsDto | null

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

Ingestion statistics (if successful).


optional markdown?: string | null

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

Markdown the document parser produced (if successful).


optional metadata?: ParsedDocumentMetadataDto | null

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

Document metadata (if successful).


optional parseStats?: DocumentParseStatsDto | null

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

Parse statistics (if successful).


success: boolean

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

Whether this document was processed successfully.