(name string)
| 132 | } |
| 133 | |
| 134 | func (r *ToolRegistry) ActivateTool(name string) Tool { |
| 135 | tool := r.deferred.Activate(name) |
| 136 | if tool != nil { |
| 137 | r.registerActive(tool, tool.Name()) |
| 138 | } |
| 139 | return tool |
| 140 | } |
| 141 | |
| 142 | func (r *ToolRegistry) SearchDeferred(query string) []Tool { |
| 143 | return r.deferred.Search(query) |