MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / Activate

Method Activate

tools/deferred.go:45–52  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

43}
44
45func (d *DeferredToolIndex) Activate(name string) Tool {
46 if tool, ok := d.tools[name]; ok {
47 delete(d.tools, name)
48 d.removeOrder(name)
49 return tool
50 }
51 return nil
52}
53
54func (d *DeferredToolIndex) Search(query string) []Tool {
55 if query == "" || len(d.tools) == 0 {

Callers 2

ActivateToolMethod · 0.80

Calls 1

removeOrderMethod · 0.95

Tested by 1