Skip to content

Interface: RuleDraftDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / RuleDraftDto

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

A single drafted inference rule: a head implied by at least one antecedent.

optional antecedents?: RuleTermDraftDto[]

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

Antecedent conditions (the rule body). The engine always drafts at least one: it never returns an antecedent-less draft, because a term with no antecedents is a fact.


optional certainty?: number

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

Certainty factor in [0, 1]. Defaults to 1.0 when the model does not qualify the rule.


head: RuleTermDraftDto

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

The conclusion (head) of the rule.