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

Function firstNonEmptyString

internal/api/core/memory.go:2398–2405  ·  view source on GitHub ↗
(values ...string)

Source from the content-addressed store, hash-verified

2396}
2397
2398func firstNonEmptyString(values ...string) string {
2399 for _, value := range values {
2400 if trimmed := strings.TrimSpace(value); trimmed != "" {
2401 return trimmed
2402 }
2403 }
2404 return ""
2405}
2406
2407func cloneMemoryStringMap(in map[string]string) map[string]string {
2408 out := make(map[string]string, len(in)+4)

Callers 15

GetStatusMethod · 0.70
ReindexMemoryMethod · 0.70
RetryMemoryDreamMethod · 0.70
SelectMemoryProviderMethod · 0.70
CreateMemoryAdhocNoteMethod · 0.70
memoryHealthMethod · 0.70
resolveMemorySelectorMethod · 0.70
memorySelectorFromQueryFunction · 0.70
memoryDreamPayloadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected