Skip to Content

AutoExtractor

Defined in: src/lib/memory/autoExtractWorker.ts:294 

Methods

dispose()

dispose(): void

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

Stop accepting new turns. In-flight work continues to completion, and any turn already queued (coalesced while an extraction was in flight) is still flushed — never dropped — so a turn sent right before unmount isn’t lost.

Returns

void


isProcessing()

isProcessing(): boolean

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

True while a turn’s extraction is in flight.

Returns

boolean


processTurn()

processTurn(messages: AutoExtractMessage[], conversationId?: string): boolean

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

Kick off extraction for the most recent turn. Returns immediately (async, fire-and-forget). Returns true if extraction was dispatched now OR queued to run after the current in-flight call; false if nothing will happen for this turn (disposed, empty messages, or every message was already extracted — see TurnSkippedEvent).

Pass the full recent messages array (the worker decides the window from its per-conversation watermark); conversationId keys that watermark, so pass it consistently for the same conversation.

Parameters

ParameterType

messages

AutoExtractMessage[]

conversationId?

string

Returns

boolean

Last updated on