Skip to Content
Anuma SDKReactInternalInterfacesTopicExtractionRunResult

TopicExtractionRunResult

Defined in: src/lib/memory/topicExtract.ts:303 

Outcome of one extractAndLinkEntitiesForMemoriesOp run.

Properties

batchCount

batchCount: number

Defined in: src/lib/memory/topicExtract.ts:306 


batches

batches: TopicExtractionBatchDiagnostics[]

Defined in: src/lib/memory/topicExtract.ts:308 


deferred?

optional deferred: boolean

Defined in: src/lib/memory/topicExtract.ts:305 

Another device owns the work; retry later without counting a failed attempt.


durationMs

durationMs: number

Defined in: src/lib/memory/topicExtract.ts:307 


entitiesByMemory

entitiesByMemory: Map<string, ExtractedEntity[]>

Defined in: src/lib/memory/topicExtract.ts:311 

memoryId → entities the LLM returned (post-validation, post-linking).


llmFailures

llmFailures: Map<string, PortalLlmFailure>

Defined in: src/lib/memory/topicExtract.ts:309 


skippedIds

skippedIds: string[]

Defined in: src/lib/memory/topicExtract.ts:319 

Memories NOT processed: missing/deleted/foreign rows, user-managed rows (including ones that became user-managed mid-run), and members of failed LLM batches. Skipped ids are not stamped, so failed batches are retried by a later sweep — callers should apply their own attempt caps.


skippedReasons

skippedReasons: Map<string, TopicSkipReason>

Defined in: src/lib/memory/topicExtract.ts:337 

Why each id in skippedIds was skipped.

skippedIds alone cannot distinguish a sweep that deliberately declined work from one that FAILED: a run where every LLM batch errored and a run over rows the user has taken manual control of produce an identical array. That is the same blindness outcome: 'empty-after-retry' had before #888 — a degradation wearing the shape of normal control flow.

It matters here because topics feed the entity recall lane, so a silently failing sweep means memories that exist but cannot be found by entity, with nothing in production saying so.

Populated in lockstep with skippedIds (single skip() helper), so the two cannot drift. Group by isDegradedTopicSkip to separate “declined” from “broke”.


stampedIds

stampedIds: string[]

Defined in: src/lib/memory/topicExtract.ts:314 

Memories stamped topics_extracted_at this run — includes zero-entity results so quiet memories aren’t re-asked every sweep.

Last updated on