compressHistoryBlocking

fun compressHistoryBlocking(strategy: HistoryCompressionStrategy = HistoryCompressionStrategy.WholeHistory, preserveMemory: Boolean = true)(source)

Compresses the historical data of a tool's operations using the specified compression strategy.

Parameters

strategy

the strategy to use for compressing the history, defaults to the whole history compression strategy

preserveMemory

a flag indicating whether to prioritize memory preservation during compression, defaults to true