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

Method pinConsumedCacheEdits

agent/loop.go:1187–1203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1185 blocks := contentBlocks(message["content"])
1186 for _, block := range blocks {
1187 if block["type"] != "tool_result" {
1188 continue
1189 }
1190 toolUseID, _ := block["tool_use_id"].(string)
1191 if toolUseID != "" {
1192 ids[toolUseID] = struct{}{}
1193 }
1194 }
1195 }
1196 return ids
1197}
1198
1199func (e *CoreExecutionEngine) QueueCacheEdits(edits []agentContext.CacheEdit) {
1200 if len(edits) == 0 {
1201 return
1202 }
1203 for _, edit := range edits {
1204 action := "delete"
1205 if edit.Action != nil && *edit.Action != "" {
1206 action = *edit.Action

Callers 2

queryLoopMethod · 0.95
PinConsumedCacheEditsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected