MCPcopy Create free account
hub / github.com/github/gh-aw / toAnySlice

Function toAnySlice

pkg/workflow/tools_parser.go:81–87  ·  view source on GitHub ↗

toAnySlice converts a []string to []any for storage in a map[string]any.

(ss []string)

Source from the content-addressed store, hash-verified

79
80// toAnySlice converts a []string to []any for storage in a map[string]any.
81func toAnySlice(ss []string) []any {
82 out := make([]any, len(ss))
83 for i, s := range ss {
84 out[i] = s
85 }
86 return out
87}
88
89// NewTools creates a new Tools instance from a map
90func NewTools(toolsMap map[string]any) *Tools {

Callers 1

parseGitHubToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected