Expand description
Automatic memory extraction: triggers decide when a store’s unsaved messages are written, extractors decide how.
Structs§
- Extraction
Config - A store’s automatic-extraction configuration (
ExtractionConfig). - Extraction
Config Builder - Use builder syntax to set the inputs and finish with
build(). - Extraction
Fire - Starts a store’s extraction in the background (
ExtractionTriggerContext.fire). - Extraction
Result - An entry an
Extractorproduced, written through the store’sadd(ExtractionResult). - Extraction
Trigger Context - What
ExtractionTrigger::attachgets (ExtractionTriggerContext). - Extractor
Context - What
Extractor::extractgets besides the messages (ExtractorContext). - Interval
Trigger - Runs extraction every N agent invocations (
IntervalTrigger); the messages of the skipped turns are saved when it fires. - Interval
Trigger Options - Options for
IntervalTrigger(IntervalTriggerOptions). - Interval
Trigger Options Builder - Use builder syntax to set the inputs and finish with
build(). - Invocation
Trigger - 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. - Memory
Message Filter - Strips content blocks before extraction (
MemoryMessageFilter); a message left empty is dropped. The default excludes tool traffic (toolUse,toolResult); pass an emptyexcludeto keep everything. - Model
Extractor - An
Extractorthat asks a model to distill messages into discrete facts (ModelExtractor). Malformed model output yields no entries (logged), never an error. - Model
Extractor Options - Options for
ModelExtractor(ModelExtractorOptions). - Model
Extractor Options Builder - Use builder syntax to set the inputs and finish with
build().
Enums§
- Memory
Content Block Type - A content block kind a
MemoryMessageFiltercan strip (MemoryContentBlockType): the block’s wire key.
Traits§
- Extraction
Trigger - Decides when a store’s extraction runs (
ExtractionTrigger):attachregisters the hooks it needs and callsfirewhen extraction should happen. A trigger that never fires never extracts;MemoryManager::flushwrites everything regardless. - Extractor
- Turns conversation messages into discrete entries (
Extractor).