MCPcopy Create free account
hub / github.com/cloudwego/eino-examples / cloneMap

Function cloneMap

quickstart/chatwitheino/msgops/normalize.go:119–128  ·  view source on GitHub ↗
(in map[string]any)

Source from the content-addressed store, hash-verified

117}
118
119func cloneMap(in map[string]any) map[string]any {
120 if len(in) == 0 {
121 return nil
122 }
123 out := make(map[string]any, len(in))
124 for k, v := range in {
125 out[k] = v
126 }
127 return out
128}

Callers 1

normalizeAgenticMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected