MCPcopy
hub / github.com/the-open-agent/openagent / RegisterTool

Method RegisterTool

tool/builtin_tool/builtin_tool.go:41–43  ·  view source on GitHub ↗
(tool BuiltinTool)

Source from the content-addressed store, hash-verified

39}
40
41func (r *ToolRegistry) RegisterTool(tool BuiltinTool) {
42 r.tools[tool.GetName()] = tool
43}
44
45func (r *ToolRegistry) GetTool(name string) (BuiltinTool, bool) {
46 tool, exists := r.tools[name]

Callers 2

Calls 1

GetNameMethod · 0.65

Tested by

no test coverage detected