Type Alias: PlainFeatureValue
@kortexya/reasoninglayer / PlainValues / PlainFeatureValue
Type Alias: PlainFeatureValue
PlainFeatureValue =
string|number|boolean|null|PsiTermInput|ConstrainedPlainVar|PlainFeatureValue[] |ValueDto|FeatureInputValueDto
Defined in: src/types/plain-values.ts:112
A plain JavaScript value that the SDK auto-converts to the correct wire format.
Remarks
The SDK converts this to either tagged ValueDto or untagged FeatureInputValueDto
depending on which resource client method receives it:
string— string value (or variable if?-prefixed in inference context)number— integer ifNumber.isInteger(), real otherwiseboolean— boolean valuenull— uninstantiatedPsiTermInput— nested inline term (frompsi()builder)ConstrainedPlainVar— constrained variable (fromconstrained()helper)PlainFeatureValue[]— list of valuesValueDto— passthrough (already in tagged format)FeatureInputValueDto— passthrough (already in untagged format)
Fuzzy and set values cannot be expressed as plain JS values. Use Value.fuzzyScalar(),
Value.fuzzyNumber(), or Value.set() directly — they pass through unchanged.