()
| 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 | |
| 1199 | func (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 |
no outgoing calls
no test coverage detected