mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-09-03 12:21:47 +00:00
Compaction was triggering too early because prompt tokens include system prompt + context files + tools, not just history. Raising the threshold reduces unnecessary compaction cycles.
14 lines
388 B
Go
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
|
|
)
|