fix: initialize tools slice to empty rather than nil in registry

This commit is contained in:
Mathias Bergqvist
2026-04-17 07:41:00 +02:00
parent edf47af8cf
commit 8b3fd1d28b

View File

@@ -27,7 +27,10 @@ type Registry struct {
}
func New() *Registry {
return &Registry{skills: make(map[string]Skill)}
return &Registry{
skills: make(map[string]Skill),
tools: make([]ToolDef, 0),
}
}
func (r *Registry) Register(s Skill) {