Files
viettranx 0b8366bfd0 fix(agent): raise default compaction threshold from 75% to 85%
Compaction was triggering too early because prompt tokens include
system prompt + context files + tools, not just history. Raising
the threshold reduces unnecessary compaction cycles.
2026-03-27 22:55:59 +07:00

14 lines
388 B
Go

package config
// Default agent configuration values.
// These are the single source of truth — all fallback/default logic should reference these
// instead of hardcoding numeric literals.
const (
DefaultContextWindow = 200000
DefaultMaxTokens = 8192
DefaultMaxMessageChars = 32000
DefaultMaxIterations = 30
DefaultTemperature = 0.7
DefaultHistoryShare = 0.85
)