Skip to content

Interface: PendingReviewEntity

@kortexya/reasoninglayer


@kortexya/reasoninglayer / PendingReviewEntity

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

An extracted entity pending human review.

optional alignmentStatus?: string

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

Alignment status: exact, fuzzy, lesser or unaligned.


candidates: ReviewCandidateMatchDto[]

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

Candidate matches for deduplication.


optional charInterval?: [number, number]

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

Character interval [start, end] of the entity in the source text.


confidence: number

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

Extraction confidence (0.0 to 1.0).


createdAt: string

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

When the entity was extracted.


entityId: string

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

The entity’s local ID from extraction.


entityOrigin: ReviewEntityOrigin

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

Where the entity stands in the knowledge base; it decides what a decision does.


entityTermId: string

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

The term id (UUID) an approval materialises. A review the extraction pipeline queued already has this term in the knowledge base.


features: Record<string, unknown>

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

Extracted features as key-value pairs (raw JSON values).


reason: ReviewReason

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

Why the entity needs review.


optional reasonDetail?: string

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

The producer’s own sentence about the reason, when it has one.


reviewId: string

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

The review ID (UUID).


sort: string

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

The extracted sort name.


sortSuggestions: ReviewSortSuggestion[]

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

Alternative sort suggestions.


optional sourceDocument?: string | null

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

The document or chunk the entity was extracted from.


optional sourceText?: string | null

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

The source text span the entity was extracted from.