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

Method rememberAPIError

agent/loop.go:1430–1435  ·  view source on GitHub ↗
(state *AgentState, msg string)

Source from the content-addressed store, hash-verified

1428 }
1429 contextLimit := e.Config.CompressionContextLimit()
1430 threshold := e.Config.CompressionThreshold()
1431 compressionCheckMessages := state.Messages
1432 if len(e.l3Regions) > 0 {
1433 compressionCheckMessages = agentContext.ProjectCollapsedView(state.Messages, e.l3Regions)
1434 }
1435 currentAPITokens := agentContext.TokenCountWithEstimation(compressionCheckMessages)
1436 if currentAPITokens <= e.Config.CompressionTriggerTokens() {
1437 return
1438 }

Callers 2

queryLoopMethod · 0.95
HandleStreamEventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected