Skip to content

Type Alias: ValueDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Values / ValueDto

Type Alias: ValueDto

ValueDto = StringValue | IntegerValue | RealValue | BooleanValue | UninstantiatedValue | ReferenceValue | ListValue | FuzzyScalarValue | FuzzyNumberValue | SetValue

Defined in: src/types/values.ts:113

Tagged discriminated union for all value types in the Reasoning Layer.

Discriminated by the "type" field. Contains 10 variants covering primitives, references, lists, fuzzy values, and sets.

Remarks

Serialization format: Tagged ({"type": "...", "value": ...}).

Used by term CRUD, query, and fuzzy endpoints. The untagged equivalent for homoiconic inference is FeatureValueDto.

Value fallback stringification: The backend may convert domain-internal types (BigInteger, DateTime, Geometry, etc.) to ValueDto::String with Rust debug format. You may encounter strings like "DateTime(2024-01-15T10:30:00Z)".