Skip to content

Interface: AddRuleResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AddRuleResponse

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

Response from adding a rule.

The created rule is wrapped in a term field.

optional etag?: string

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

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.


term: PsiTermDto

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

The created rule as a PsiTerm.