Skip to content

Interface: AddPendingReviewRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AddPendingReviewRequest

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

Request to add a pending review for an entity.

Creates a new review entry for human review of an extracted or ingested entity. The tenant and the owner are the authenticated principal’s: the body cannot name either.

candidates: ReviewCandidateInput[]

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

Existing terms the entity may duplicate, best match first.


confidence: number

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

Confidence score, within 0 to 1.


entityId: string

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

Entity local identifier.


features: Record<string, unknown>

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

Entity features.


reason: ReviewReason

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

Reason why an entity requires review.


optional reasonDetail?: string | null

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

The producer’s own sentence about the reason.


sort: string

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

Sort name assigned to the entity; it must exist for the tenant.


sortSuggestions: ReviewSortSuggestion[]

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

Alternative sort suggestions for the entity; each must exist for the tenant.


optional sourceDocument?: string | null

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

Source document reference.


optional sourceText?: string | null

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

Source text excerpt.