refactor: update tool registry usage and enhance WebSearchTool execution result handling

This commit is contained in:
Satyam Tiwari
2026-02-13 15:41:37 +05:30
parent e0a766243e
commit c86e121688
2 changed files with 12 additions and 4 deletions

View File

@@ -77,9 +77,9 @@ func createToolRegistry(workspace string, restrict bool, cfg *config.Config, msg
DuckDuckGoMaxResults: cfg.Tools.Web.DuckDuckGo.MaxResults,
DuckDuckGoEnabled: cfg.Tools.Web.DuckDuckGo.Enabled,
}); searchTool != nil {
toolsRegistry.Register(searchTool)
registry.Register(searchTool)
}
toolsRegistry.Register(tools.NewWebFetchTool(50000))
registry.Register(tools.NewWebFetchTool(50000))
// Message tool - available to both agent and subagent
// Subagent uses it to communicate directly with user