MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / getL3CollapseThreshold

Function getL3CollapseThreshold

agentContext/collapse.go:19–22  ·  view source on GitHub ↗
(contextLimit, softLimit int)

Source from the content-addressed store, hash-verified

17)
18
19func getL3CollapseThreshold(contextLimit, softLimit int) int {
20 l4Threshold := softLimit
21 return MaxInt(1, MinInt(MinInt(defaultCollapseThresholdTokens, softLimit), l4Threshold-1))
22}
23
24func GetL3CollapseThreshold(contextLimit, softLimit int) int {
25 return getL3CollapseThreshold(contextLimit, softLimit)

Callers 2

CompressMethod · 0.85
GetL3CollapseThresholdFunction · 0.85

Calls 2

MaxIntFunction · 0.85
MinIntFunction · 0.85

Tested by

no test coverage detected