feat: implement Spec method for tools and update tool resolution logic in the registry

This commit is contained in:
mlogclub
2026-04-14 09:56:37 +08:00
parent e42b2b0f4d
commit 200631cc0b
9 changed files with 53 additions and 2 deletions
@@ -26,6 +26,10 @@ func NewToolSearchTool() *ToolSearchTool {
return &ToolSearchTool{}
}
func (t *ToolSearchTool) Spec() toolx.ToolSpec {
return toolx.BuiltinToolSearch
}
func (t *ToolSearchTool) Name() string {
return toolx.BuiltinToolSearch.Name
}