Skip to content

Interface: ClausePolicyCondition

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ClausePolicyCondition

Defined in: src/types/document-check.ts:281

One comparison of a case observation’s feature with a value.

value is a boolean or an integer: the engine reads nothing else. Plain JSON; feature names a feature of the evidence sort.

const condition: ClausePolicyCondition = {
feature: 'days_late',
comparison: 'gt',
value: 30,
quote: 'more than thirty days after the due date',
};

comparison: ClausePolicyComparison

Defined in: src/types/document-check.ts:285

How the feature compares with value.


feature: string

Defined in: src/types/document-check.ts:283

The feature of the evidence sort the condition reads.


quote: string

Defined in: src/types/document-check.ts:289

The exact wording of the clause that supports this comparison.


value: number | boolean

Defined in: src/types/document-check.ts:287

The value compared with: a boolean or an integer.