Interface: ConstrainedPlainVar
@kortexya/reasoninglayer / ConstrainedPlainVar
Interface: ConstrainedPlainVar
Section titled “Interface: ConstrainedPlainVar”Defined in: src/types/plain-values.ts:99
A constrained variable for use in inference contexts.
Remarks
Section titled “Remarks”Created via the constrained() helper. Distinguished from plain arrays
by the __constrainedVar brand field, which is stripped before serialization.
Example
Section titled “Example”psi("eligible", { score: constrained("?S", guard("gt", 700)) })Properties
Section titled “Properties”constraint
Section titled “constraint”
readonlyconstraint:TermInputDto|PsiTermInput
Defined in: src/types/plain-values.ts:105
Constraint as a TermInputDto or PsiTermInput.
readonlyname:string
Defined in: src/types/plain-values.ts:103
Variable name (must start with “?”).