IngestionSettings

constructor(storage: WriteStorage<TextDocument>, extractionStrategy: ExtractionStrategy = FilteringExtractionStrategy(), timing: IngestionTiming = IngestionTiming.ON_LLM_CALL, enableAutomaticIngestion: Boolean = true, namespace: String? = null)(source)

Parameters

storage

The ingestion storage where memory records will be persisted.

extractionStrategy

The extractor that defines how to transform messages into memory records. Pre-built ingesters are available:

timing

When to ingest messages. Defaults to IngestionTiming.ON_LLM_CALL.

enableAutomaticIngestion

When true (default), ingestion happens automatically after LLM calls or on agent completion (depending on timing). When false, the storage is still accessible for manual use inside graph strategy nodes via ai.koog.agents.longtermmemory.feature.withLongTermMemory.

namespace

Namespace (table/collection name) for a request