Skip to content

Interface: EnsuredRule

@kortexya/reasoninglayer


@kortexya/reasoninglayer / EnsuredRule

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

The result of ensuring a rule.

created: boolean

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

true when the rule was installed (201), false when the identical rule already was (200).


optional etag?: string

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

The rule’s content tag (sha256-<hex>), from the ETag response header: pass it as ifMatch to InferenceClient.deleteRule or InferenceClient.replaceRule.

Not part of the response body. Absent when the engine sends no header: the rule is written, but the read that tags the response failed after the write committed. Read the tag from RuleEntryDto.etag then.

AddRuleResponse.etag


term: PsiTermDto

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

The created rule as a PsiTerm.

AddRuleResponse.term