Skip to content

Extractor

Defined in: src/memory/extraction/types.ts:67

Transforms conversation messages into discrete, searchable entries.

Implementations distill raw turns into facts worth remembering. Optional on a store’s ExtractionConfig: when absent, the manager passes messages straight to the store (see the no-extractor passthrough on MemoryStore), which is the right path for backends that extract server-side.

extract(messages, context?): Promise<ExtractionResult[]>;

Defined in: src/memory/extraction/types.ts:75

Extract entries from a batch of messages.

ParameterTypeDescription
messagesMessageData[]The filtered messages to extract from
context?ExtractorContextOptional context (e.g. a fallback model)

Promise<ExtractionResult[]>

The entries to write to the store