Skip to content

Interface: ReviewSortSuggestion

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ReviewSortSuggestion

Defined in: src/types/reviews.ts:114

An alternative sort suggested for an entity under review.

The engine publishes this shape as its own ReviewSortSuggestionDto (sort_name, confidence, reason), so it no longer shares a name with the cognitive cycle’s SortSuggestionDto, which describes a sort to create. The engine refuses any other key with 422. On addPendingReview each suggested sort must exist for the tenant (review_sort_unknown), and confidence must be within 0 to 1 (review_confidence_out_of_range).

confidence: number

Defined in: src/types/reviews.ts:118

Confidence that this sort applies (0.0 to 1.0).


optional reason?: string | null

Defined in: src/types/reviews.ts:120

Why this sort is suggested.


sortName: string

Defined in: src/types/reviews.ts:116

Name of the suggested sort.