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

Function contentBlocks

agent/messages.go:332–347  ·  view source on GitHub ↗
(content any)

Source from the content-addressed store, hash-verified

330}
331
332func contentBlocks(content any) []map[string]any {
333 switch c := content.(type) {
334 case []map[string]any:
335 return c
336 case []any:
337 out := make([]map[string]any, 0, len(c))
338 for _, item := range c {
339 if block, ok := item.(map[string]any); ok {
340 out = append(out, block)
341 }
342 }
343 return out
344 default:
345 return nil
346 }
347}

Callers 15

ReorderAttachmentsFunction · 0.70
HandleThinkingBlocksFunction · 0.70
MergeSplitMessagesFunction · 0.70
FixToolPairingsFunction · 0.70
copyMessagesFunction · 0.70
toolUseIDsInMessageFunction · 0.70
applyRollingCacheMethod · 0.70
VisibleToolResultIDsFunction · 0.70
RepairOrphanToolsFunction · 0.70
findToolUseIndexFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected