Expand description
Session memory extraction: extract key facts from conversations.
After enough conversation activity (≥20 messages, ≥3 tool calls since last extraction), the extractor calls the LLM to identify reusable facts and persists them to the memory directory.
Structs§
- Extracted
Memory - A single extracted memory fact.
- Session
Memory State - Tracks extraction progress to avoid re-extracting.
Enums§
- Memory
Category - Categories of extracted memories.
Functions§
- count_
tool_ calls_ since - Count tool calls in messages since a given index.
- extraction_
prompt - Build the extraction system prompt.
- parse_
extraction_ output - Parse extraction output into structured memories.
- persist_
memories - Persist extracted memories to a file under
## Auto-extracted memories. - should_
extract - Check if enough conversation has happened to warrant extraction.