MCPcopy Create free account
hub / github.com/aurora-develop/aurora / pickString

Function pickString

internal/toolcall/parser.go:310–319  ·  view source on GitHub ↗
(obj map[string]any, keys ...string)

Source from the content-addressed store, hash-verified

308}
309
310func pickString(obj map[string]any, keys ...string) string {
311 for _, k := range keys {
312 if v, ok := obj[k]; ok {
313 if s, ok := v.(string); ok {
314 return s
315 }
316 }
317 }
318 return ""
319}
320
321func extractArguments(obj map[string]any) any {
322 for _, k := range []string{"arguments", "parameters", "args"} {

Callers 2

buildToolCallFromObjectFunction · 0.85
RecoverFromTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected