MCPcopy Create free account
hub / github.com/ByteYellow/AgentProvenance / firstString

Function firstString

internal/intent/effect.go:174–181  ·  view source on GitHub ↗
(vals ...any)

Source from the content-addressed store, hash-verified

172}
173
174func firstString(vals ...any) string {
175 for _, v := range vals {
176 if s, ok := v.(string); ok && s != "" {
177 return s
178 }
179 }
180 return ""
181}
182
183func firstAny(vals ...any) any {
184 for _, v := range vals {

Callers 2

extractEventFieldsFunction · 0.70
extractCommFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected