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

Method Register

pkg/tools/interface.go:165–167  ·  view source on GitHub ↗

Register 注册工具

(name string, factory ToolFactory)

Source from the content-addressed store, hash-verified

163
164// Register 注册工具
165func (r *Registry) Register(name string, factory ToolFactory) {
166 r.factories[name] = factory
167}
168
169// Create 创建工具实例
170func (r *Registry) Create(name string, config map[string]any) (Tool, error) {

Callers 11

TestToolBridge_CallToolFunction · 0.95
TestToolBridge_BatchCallFunction · 0.95
TestToolChain_ExecuteFunction · 0.95
TestPTCIntegrationFunction · 0.95
runMCPServeFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls