Public declaration syntax from forge-go/tool/registry.go Original source SHA-256: 0a23844aabaf7dbffba7ecc80680577c053bf6d17ef5a45289fd544cde4bdf61 Function bodies and constant values are omitted. This is not the complete implementation. Source line 17 type Handler func(arguments string) (string, error) // Registration bundles a tool definition with its execution handler. type Registration struct Source line 20 type Registration struct Source line 33 type Registry struct Source line 39 func NewRegistry() *Registry Source line 49 func (r *Registry) Register(def core.ToolDefinition, handler Handler) error Source line 65 func (r *Registry) Unregister(name string) bool Source line 77 func (r *Registry) Get(name string) (Registration, bool) Source line 85 func (r *Registry) Has(name string) bool Source line 94 func (r *Registry) Definitions() []core.ToolDefinition Source line 105 func (r *Registry) Names() []string Source line 116 func (r *Registry) Count() int