Skip to content

Interface: AddPendingReviewRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AddPendingReviewRequest

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

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:343

Existing terms the entity may duplicate, best match first.


confidence: number

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

Confidence score, within 0 to 1.


entityId: string

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

Entity local identifier.


features: Record<string, unknown>

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

Entity features.


reason: ReviewReason

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

Reason why an entity requires review.


optional reasonDetail?: string | null

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

The producer’s own sentence about the reason.


sort: string

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

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


sortSuggestions: ReviewSortSuggestion[]

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

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


optional sourceDocument?: string | null

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

Source document reference.


optional sourceText?: string | null

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

Source text excerpt.