Skip to content

Interface: FeatureDescriptorDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Sorts / FeatureDescriptorDto

Interface: FeatureDescriptorDto

Defined in: src/types/sorts.ts:67

Descriptor for a named feature within a sort definition.

Defines the feature name, expected sort (type), whether the feature is required, optional constraints, and a type hint for LLM extraction.

Remarks

This is used in arrays (not Records). The name field identifies the feature.

Properties

constraint?

optional constraint: ConstraintDto | null

Defined in: src/types/sorts.ts:77

Optional constraint on the feature’s value.


expectedSort?

optional expectedSort: string | null

Defined in: src/types/sorts.ts:71

Expected sort (type) for this feature’s value.


expectedTypeHint?

optional expectedTypeHint: string | null

Defined in: src/types/sorts.ts:73

Primitive type hint for LLM extraction (e.g., “DateTime”, “Integer”, “String”, “Real”).


name

name: string

Defined in: src/types/sorts.ts:69

Feature name.


required

required: boolean

Defined in: src/types/sorts.ts:75

Whether this feature must be present on instances of the sort.