MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / intFromStateAny

Function intFromStateAny

agent/state.go:201–215  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

199 for _, value := range values {
200 out.Add(value)
201 }
202 case []any:
203 for _, value := range values {
204 if parsed, ok := intFromStateAny(value); ok {
205 out.Add(parsed)
206 }
207 }
208 case []float64:
209 for _, value := range values {
210 out.Add(int(value))
211 }
212 case []json.Number:
213 for _, value := range values {
214 if n, err := value.Int64(); err == nil {
215 out.Add(int(n))
216 }
217 }
218 }

Callers 1

intSetFromAnyFunction · 0.85

Calls 1

Int64Method · 0.80

Tested by

no test coverage detected