Configuration for memory manager behavior.
A plain value built in code; this module reads no configuration file. Build one with MemoryManagerConfig(...) (every option has a default) or a preset, and change it with the with* setters; there is no public constructor or copy, so the type can gain options without breaking callers. Every option is read by the managers that extend the shared record/retrieve operations (SimpleMemoryManager and LLMMemoryManager).
Value parameters
- autoExtractEntities
-
When true,
recordMessage(and sorecordConversation) also runsextractEntitiesover the content of each user and assistant message it records, passing the conversation id. System and tool messages are not analysed. Extraction is best-effort: if it fails, the message stays recorded and the failure is logged as a warning. A cancellation is not a failure: it is returned, so the caller stops. SimpleMemoryManager extracts nothing, so the option only changes what LLMMemoryManager stores (one extra LLM call per message). - consolidationConfig
-
How
consolidateMemoriesgroups memories and handles errors - contextTokenBudget
-
Token budget
getRelevantContextuses when the call passes nomaxTokens. An explicitmaxTokensalways wins. - defaultImportance
-
Importance score given to memories recorded without one
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any