MCPcopy Create free account
hub / github.com/compozy/agh / memoryScopeLabel

Function memoryScopeLabel

internal/cli/memory.go:1900–1906  ·  view source on GitHub ↗
(scope memcontract.Scope, tier memcontract.AgentTier)

Source from the content-addressed store, hash-verified

1898}
1899
1900func memoryScopeLabel(scope memcontract.Scope, tier memcontract.AgentTier) string {
1901 normalized := scope.Normalize()
1902 if normalized == memcontract.ScopeAgent && tier.Normalize() != "" {
1903 return string(normalized) + ":" + string(tier.Normalize())
1904 }
1905 return string(normalized)
1906}
1907
1908func formatMemoryOptionalTime(value *time.Time) string {
1909 if value == nil {

Callers 8

TestMemoryBundleHelpersFunction · 0.85
memoryListBundleFunction · 0.85
memoryEntryBundleFunction · 0.85
memorySearchBundleFunction · 0.85
memoryHistoryBundleFunction · 0.85
memoryDecisionBundleFunction · 0.85
memoryReindexBundleFunction · 0.85
memoryDreamTriggerBundleFunction · 0.85

Calls 1

NormalizeMethod · 0.45

Tested by 1

TestMemoryBundleHelpersFunction · 0.68