Skip to content

Interface: BulkAddFactsResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / BulkAddFactsResponse

Defined in: src/types/inference.ts:1256

Response from bulk-adding facts.

The engine answers 201 even when it wrote NOTHING. A non-empty rejected means the write was PARTIAL: factsAdded plus rejected.length equals the number of facts submitted.

factsAdded: number

Defined in: src/types/inference.ts:1258

Number of facts added.


optional rejected?: RejectedBulkItem[]

Defined in: src/types/inference.ts:1265

The facts the engine refused and did NOT write, each with its index in the request and the reason. Absent when every fact was accepted.


termIds: string[]

Defined in: src/types/inference.ts:1260

Created term IDs, one per ACCEPTED fact.