Skip to main content

Module extraction

Module extraction 

Source
Expand description

Automatic memory extraction: triggers decide when a store’s unsaved messages are written, extractors decide how.

Structs§

ExtractionConfig
A store’s automatic-extraction configuration (ExtractionConfig).
ExtractionConfigBuilder
Use builder syntax to set the inputs and finish with build().
ExtractionFire
Starts a store’s extraction in the background (ExtractionTriggerContext.fire).
ExtractionResult
An entry an Extractor produced, written through the store’s add (ExtractionResult).
ExtractionTriggerContext
What ExtractionTrigger::attach gets (ExtractionTriggerContext).
ExtractorContext
What Extractor::extract gets besides the messages (ExtractorContext).
IntervalTrigger
Runs extraction every N agent invocations (IntervalTrigger); the messages of the skipped turns are saved when it fires.
IntervalTriggerOptions
Options for IntervalTrigger (IntervalTriggerOptions).
IntervalTriggerOptionsBuilder
Use builder syntax to set the inputs and finish with build().
InvocationTrigger
Runs extraction after every agent invocation (InvocationTrigger): nothing said in a turn is missed, and with an extractor it costs a model call per turn.
MemoryMessageFilter
Strips content blocks before extraction (MemoryMessageFilter); a message left empty is dropped. The default excludes tool traffic (toolUse, toolResult); pass an empty exclude to keep everything.
ModelExtractor
An Extractor that asks a model to distill messages into discrete facts (ModelExtractor). Malformed model output yields no entries (logged), never an error.
ModelExtractorOptions
Options for ModelExtractor (ModelExtractorOptions).
ModelExtractorOptionsBuilder
Use builder syntax to set the inputs and finish with build().

Enums§

MemoryContentBlockType
A content block kind a MemoryMessageFilter can strip (MemoryContentBlockType): the block’s wire key.

Traits§

ExtractionTrigger
Decides when a store’s extraction runs (ExtractionTrigger): attach registers the hooks it needs and calls fire when extraction should happen. A trigger that never fires never extracts; MemoryManager::flush writes everything regardless.
Extractor
Turns conversation messages into discrete entries (Extractor).