ContextWindowCompressionConfig

@Serializable
data class ContextWindowCompressionConfig(val triggerTokens: Long? = null, val slidingWindow: SlidingWindow? = null)

Enables context window compression -- mechanism managing model context window so it does not exceed given length.

Constructors

Link copied to clipboard
constructor(triggerTokens: Long? = null, slidingWindow: SlidingWindow? = null)

Properties

Link copied to clipboard

Sliding window compression mechanism.

Link copied to clipboard
val triggerTokens: Long? = null

Number of tokens (before running turn) that triggers context window compression mechanism.