MCPcopy Create free account
hub / github.com/astercloud/aster / List

Method List

pkg/tools/interface.go:180–186  ·  view source on GitHub ↗

List 列出所有已注册的工具

()

Source from the content-addressed store, hash-verified

178
179// List 列出所有已注册的工具
180func (r *Registry) List() []string {
181 names := make([]string, 0, len(r.factories))
182 for name := range r.factories {
183 names = append(names, name)
184 }
185 return names
186}
187
188// Has 检查工具是否已注册
189func (r *Registry) Has(name string) bool {

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected