IngestionSettings

data class IngestionSettings(val storage: WriteStorage<TextDocument>, val extractionStrategy: ExtractionStrategy = FilteringExtractionStrategy(), val timing: IngestionTiming = IngestionTiming.ON_LLM_CALL, val enableAutomaticIngestion: Boolean = true, 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.

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

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard