Type Alias: FeatureValueDto
@kortexya/reasoninglayer / Values / FeatureValueDto
Type Alias: FeatureValueDto
FeatureValueDto =
string|number|boolean|null|FeatureValueDto[]
Defined in: src/types/values.ts:443
Untagged value type used by homoiconic inference endpoints.
Remarks
Serialization format: Untagged (raw JSON primitives).
Produces raw JSON values: "hello", 42, true, null, ["uuid1", "uuid2"].
Used by: backward chaining, forward chaining, and other homoiconic inference endpoints.
Do NOT use with term CRUD or query endpoints — use ValueDto instead.
The backend Rust type is FeatureValueDto in dto/homoiconic.rs with
#[serde(untagged)]. Variant ordering:
- TermRef (UUID string)
- TermRefs/List (array of FeatureValueDto)
- String
- Integer (i64)
- Real (f64)
- Boolean
- Null (uninstantiated)
Ambiguity note: UUID strings and regular strings are both string in TypeScript.
The backend distinguishes them by UUID format. The SDK provides
discriminateFeatureValue() in utils/discrimination.ts for response parsing.