Skip to content

Interface: PendingReviewEntity

@kortexya/reasoninglayer


@kortexya/reasoninglayer / PendingReviewEntity

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

An extracted entity pending human review.

optional alignmentStatus?: string

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

Alignment status: exact, fuzzy, lesser or unaligned.


candidates: ReviewCandidateMatchDto[]

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

Candidate matches for deduplication.


optional charInterval?: [number, number]

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

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


confidence: number

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

Extraction confidence (0.0 to 1.0).


createdAt: string

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

When the entity was extracted.


entityId: string

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

The entity’s local ID from extraction.


entityOrigin: ReviewEntityOrigin

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

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


entityTermId: string

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

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

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


reason: ReviewReason

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

Why the entity needs review.


optional reasonDetail?: string

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

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


reviewId: string

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

The review ID (UUID).


sort: string

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

The extracted sort name.


sortSuggestions: ReviewSortSuggestion[]

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

Alternative sort suggestions.


optional sourceDocument?: string | null

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

The document or chunk the entity was extracted from.


optional sourceText?: string | null

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

The source text span the entity was extracted from.