Skip to content

Interface: BulkAddRulesResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / BulkAddRulesResponse

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

Response from bulk-adding rules.

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

optional rejected?: RejectedBulkItem[]

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

The rules the engine refused and did NOT write, each with its index in the request and the reason — a guard that cannot compare, nested negation, a variable no positive antecedent binds, or a NEW cycle through negation. Absent when every rule was accepted.


rulesAdded: number

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

Number of rules added.


ruleTermIds: string[]

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

Created rule term IDs, one per ACCEPTED rule.