LongTermMemory
Memory feature that incorporates persistent storage of memory records (documents) in vector databases.
This feature provides two main capabilities that can be configured independently:
Retrieval (RAG): Retrieves relevant context from the memory record repository using a configured search request builder and inserts it into the prompt before sending to the LLM. Configured via retrievalSettings. When null, no retrieval/augmentation is performed.
Ingestion: Saves messages to the memory record repository for future retrieval. Configured via ingestionSettings. When null, no messages are persisted.
See also
Constructors
Types
Configuration for the LongTermMemory feature.
Companion object implementing agent feature, handling LongTermMemory creation and installation.
Builder for IngestionSettings used in the Config.ingestion DSL block.
Builder for RetrievalSettings used in the Config.retrieval DSL block.
Properties
Property getter for IngestionStorage for usage inside strategy nodes
Property getter for RetrievalStorage for usage inside strategy nodes