LongTermMemory

class LongTermMemory(retrievalSettings: RetrievalSettings? = null, ingestionSettings: IngestionSettings? = null)(source)

Memory feature that incorporates persistent storage of memory records (documents) in vector databases.

This feature provides two main capabilities that can be configured independently:

  1. 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.

  2. Ingestion: Saves messages to the memory record repository for future retrieval. Configured via ingestionSettings. When null, no messages are persisted.

See also

Constructors

Link copied to clipboard
constructor(retrievalSettings: RetrievalSettings? = null, ingestionSettings: IngestionSettings? = null)

Types

Link copied to clipboard

Configuration for the LongTermMemory feature.

Link copied to clipboard
Link copied to clipboard

Builder for IngestionSettings used in the Config.ingestion DSL block.

Link copied to clipboard

Builder for RetrievalSettings used in the Config.retrieval DSL block.

Properties

Link copied to clipboard

Property getter for IngestionStorage for usage inside strategy nodes

Link copied to clipboard

Property getter for RetrievalStorage for usage inside strategy nodes