MCPcopy Create free account
hub / github.com/github/copilot-sdk / ToSlice

Method ToSlice

go/toolset.go:81–85  ·  view source on GitHub ↗

ToSlice returns a defensive copy of the accumulated filter strings.

()

Source from the content-addressed store, hash-verified

79
80// ToSlice returns a defensive copy of the accumulated filter strings.
81func (s *ToolSet) ToSlice() []string {
82 out := make([]string, len(s.items))
83 copy(out, s.items)
84 return out
85}
86
87func validateToolName(kind, name string) {
88 if name == "" {

Calls

no outgoing calls

Tested by 5

TestToolsE2EFunction · 0.64
TestModeEmptyE2EFunction · 0.64