IngestionSettings
data class IngestionSettings(val storage: IngestionStorage, val memoryRecordExtractor: MemoryRecordExtractor? = null, val timing: IngestionTiming = IngestionTiming.ON_LLM_CALL, val namespace: String? = null)(source)
Settings controlling how messages are persisted (ingested) into the memory repository.
Parameters
storage
The ingestion storage where memory records will be persisted.
memoryRecordExtractor
The extractor that defines how to transform messages into memory records. Pre-built ingesters are available:
ai.koog.agents.longtermmemory.ingestion.extraction.FilteringMemoryRecordExtractor - Filters messages by role Custom ingesters can be provided as lambdas via the ai.koog.agents.longtermmemory.ingestion.extraction.MemoryRecordExtractor SAM interface.
timing
When to mapMessages messages. Defaults to IngestionTiming.ON_LLM_CALL.
namespace
Namespace (table/collection name) for a request
Constructors
Link copied to clipboard
constructor(storage: IngestionStorage, memoryRecordExtractor: MemoryRecordExtractor? = null, timing: IngestionTiming = IngestionTiming.ON_LLM_CALL, namespace: String? = null)