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

Method Add

tools/deferred.go:17–25  ·  view source on GitHub ↗
(tool Tool)

Source from the content-addressed store, hash-verified

15}
16
17func (d *DeferredToolIndex) Add(tool Tool) {
18 if tool == nil {
19 return
20 }
21 if _, exists := d.tools[tool.Name()]; !exists {
22 d.order = append(d.order, tool.Name())
23 }
24 d.tools[tool.Name()] = tool
25}
26
27func (d *DeferredToolIndex) GetAll() map[string]Tool {
28 out := make(map[string]Tool, len(d.tools))

Calls 1

NameMethod · 0.65