(model: ModelConfig)
| 253 | * @returns A descriptive message explaining why compaction is needed |
| 254 | */ |
| 255 | export function getAutoCompactMessage(model: ModelConfig): string { |
| 256 | const limit = getModelContextLimit(model); |
| 257 | return `Approaching context limit (${(limit / 1000).toFixed(0)}K tokens). Auto-compacting chat history...`; |
| 258 | } |
| 259 | |
| 260 | /** |
| 261 | * Check if the chat history exceeds the auto-compact threshold. |
no test coverage detected