Skip to content

shouldTrimHistory

shouldTrimHistory(history, maxHistorySize, strategy): boolean

Defined in: conversation-history.ts:144

Check if history needs trimming

readonly IRMessage[]

Current history

number

Maximum pairs to keep

TrimStrategy = 'fifo'

Trimming strategy

boolean

True if history exceeds limit