feat: add google provider for web search

Signed-off-by: joeyczheng <joeyczheng@tencent.com>
This commit is contained in:
joeyczheng
2026-01-12 18:00:31 +08:00
committed by lyingbug
parent 6393fcf87b
commit 17f9a97ce4
8 changed files with 468 additions and 68 deletions
@@ -304,6 +304,8 @@ func NewWebSearchService(cfg *config.Config) (interfaces.WebSearchService, error
switch providerConfig.ID {
case "duckduckgo":
provider, err = web_search.NewDuckDuckGoProvider(providerConfig)
case "google":
provider, err = web_search.NewGoogleProvider(providerConfig)
default:
return nil, fmt.Errorf("unknown web search provider: %s", providerConfig.ID)
}