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

Function cloneMemoryStringMap

internal/api/core/memory.go:2407–2416  ·  view source on GitHub ↗
(in map[string]string)

Source from the content-addressed store, hash-verified

2405}
2406
2407func cloneMemoryStringMap(in map[string]string) map[string]string {
2408 out := make(map[string]string, len(in)+4)
2409 for key, value := range in {
2410 if strings.TrimSpace(key) == "" {
2411 continue
2412 }
2413 out[strings.TrimSpace(key)] = strings.TrimSpace(value)
2414 }
2415 return out
2416}
2417
2418func defaultMemorySelectorScope(selector memorySelector) memcontract.Scope {
2419 if scope := selector.Scope.Normalize(); scope != "" {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected