Skip to content

Interface: AddRuleRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Inference / AddRuleRequest

Interface: AddRuleRequest

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

Request to add a rule to the inference engine.

Remarks

Serialization format: Uses untagged TermInputDto / FeatureInputValueDto.

Properties

aggregator?

optional aggregator: RuleAggregatorDto | null

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

Optional engine-side aggregator declared on the rule head.

Remarks

When present, the rule’s head term receives an "aggregator" feature containing a serialized RuleAggregator descriptor. See RuleAggregatorDto.


antecedents?

optional antecedents: TermInputDto[]

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

Antecedent terms (body of the rule).


certainty?

optional certainty: number

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

Certainty factor (default: 1.0).


term

term: TermInputDto

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

The conclusion term (head of the rule).