HistoryCompressionConfig

data class HistoryCompressionConfig(val isHistoryTooBig: (Prompt) -> Boolean, val compressionStrategy: HistoryCompressionStrategy, val retrievalModel: LLModel? = null)(source)

Configuration for conversation history compression in a single-run strategy.

Constructors

Link copied to clipboard
constructor(isHistoryTooBig: (Prompt) -> Boolean, compressionStrategy: HistoryCompressionStrategy, retrievalModel: LLModel? = null)

Properties

Link copied to clipboard

HistoryCompressionStrategy implementation that defines how to compress the conversation history

Link copied to clipboard

function that checks the current Prompt and returns true when the message count or token size exceeds a threshold

Link copied to clipboard

Optional LLModel to use for compression (defaults to agent's model)