diff --git a/docs/tools_configuration.md b/docs/tools_configuration.md index 829c9d370..314cbd38f 100644 --- a/docs/tools_configuration.md +++ b/docs/tools_configuration.md @@ -70,12 +70,12 @@ General settings for fetching and processing webpage content. Baidu Search uses the [Qianfan AI Search API](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5), which is AI-powered and optimized for Chinese-language queries. -| Config | Type | Default | Description | -|---------------|--------|------------------------------------------------------------------|---------------------------| -| `enabled` | bool | false | Enable Baidu Search | -| `api_key` | string | - | Qianfan API key | -| `base_url` | string | `https://qianfan.baidubce.com/v2/ai_search/web_search` | Baidu Search API URL | -| `max_results` | int | 10 | Maximum number of results | +| Config | Type | Default | Description | +|---------------|--------|--------------------------------------------------------|---------------------------| +| `enabled` | bool | false | Enable Baidu Search | +| `api_key` | string | - | Qianfan API key | +| `base_url` | string | `https://qianfan.baidubce.com/v2/ai_search/web_search` | Baidu Search API URL | +| `max_results` | int | 5 | Maximum number of results | ```json { @@ -98,7 +98,7 @@ Baidu Search uses the [Qianfan AI Search API](https://cloud.baidu.com/doc/qianfa | `enabled` | bool | false | Enable Perplexity search | | `api_key` | string | - | Perplexity API key | | `api_keys` | string[] | - | Multiple API keys for rotation (takes priority over `api_key`) | -| `max_results` | int | 10 | Maximum number of results | +| `max_results` | int | 5 | Maximum number of results | ### Tavily @@ -107,25 +107,25 @@ Baidu Search uses the [Qianfan AI Search API](https://cloud.baidu.com/doc/qianfa | `enabled` | bool | false | Enable Tavily search | | `api_key` | string | - | Tavily API key | | `base_url` | string | - | Custom Tavily API base URL | -| `max_results` | int | 10 | Maximum number of results | +| `max_results` | int | 5 | Maximum number of results | ### SearXNG -| Config | Type | Default | Description | -|---------------|--------|--------------------------|---------------------------| -| `enabled` | bool | false | Enable SearXNG search | -| `base_url` | string | `http://localhost:8888` | SearXNG instance URL | -| `max_results` | int | 10 | Maximum number of results | +| Config | Type | Default | Description | +|---------------|--------|-------------------------|---------------------------| +| `enabled` | bool | false | Enable SearXNG search | +| `base_url` | string | `http://localhost:8888` | SearXNG instance URL | +| `max_results` | int | 5 | Maximum number of results | ### GLM Search -| Config | Type | Default | Description | -|-----------------|--------|------------------------------------------------------|---------------------------| -| `enabled` | bool | false | Enable GLM Search | -| `api_key` | string | - | GLM API key | -| `base_url` | string | `https://open.bigmodel.cn/api/paas/v4/web_search` | GLM Search API URL | -| `search_engine` | string | `search_std` | Search engine type | -| `max_results` | int | 10 | Maximum number of results | +| Config | Type | Default | Description | +|-----------------|--------|---------------------------------------------------|---------------------------| +| `enabled` | bool | false | Enable GLM Search | +| `api_key` | string | - | GLM API key | +| `base_url` | string | `https://open.bigmodel.cn/api/paas/v4/web_search` | GLM Search API URL | +| `search_engine` | string | `search_std` | Search engine type | +| `max_results` | int | 5 | Maximum number of results | ### Additional Web Settings diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index e60b2440e..6718de91e 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -306,14 +306,14 @@ func TestDefaultConfig_WebTools(t *testing.T) { cfg := DefaultConfig() // Verify web tools defaults - if cfg.Tools.Web.Brave.MaxResults != 10 { - t.Error("Expected Brave MaxResults 10, got ", cfg.Tools.Web.Brave.MaxResults) + if cfg.Tools.Web.Brave.MaxResults != 5 { + t.Error("Expected Brave MaxResults 5, got ", cfg.Tools.Web.Brave.MaxResults) } if len(cfg.Tools.Web.Brave.APIKeys()) != 0 { t.Error("Brave API key should be empty by default") } - if cfg.Tools.Web.DuckDuckGo.MaxResults != 10 { - t.Error("Expected DuckDuckGo MaxResults 10, got ", cfg.Tools.Web.DuckDuckGo.MaxResults) + if cfg.Tools.Web.DuckDuckGo.MaxResults != 5 { + t.Error("Expected DuckDuckGo MaxResults 5, got ", cfg.Tools.Web.DuckDuckGo.MaxResults) } }