feat: configure tiered web search providers (#64)

This commit is contained in:
2026-07-24 00:30:47 +08:00
committed by GitHub
parent e59adbb166
commit 96842d2080
7 changed files with 197 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
{
"description": "web_search 工具后端加载顺序索引",
"order": ["tavily", "serper"]
"order": ["tavily", "brave", "serper"]
}

View File

@@ -0,0 +1,35 @@
{
"id": "brave",
"name": "Brave Search API",
"capability": "web_search",
"enabled": false,
"builtin": true,
"priority": 20,
"endpoint": "https://api.search.brave.com/res/v1/web/search",
"method": "GET",
"auth": {
"type": "header",
"headerName": "X-Subscription-Token",
"apiKeyRef": "brave"
},
"request": {
"headers": {
"Accept": "application/json",
"Accept-Encoding": "gzip"
},
"queryParams": {
"q": "${query}",
"count": "${maxResults}"
}
},
"response": {
"resultsPath": "web.results",
"item": {
"titlePath": "title",
"urlPath": "url",
"snippetPath": "description",
"pageAgePath": "page_age"
}
},
"timeoutMs": 10000
}

View File

@@ -4,7 +4,7 @@
"capability": "web_search",
"enabled": false,
"builtin": true,
"priority": 20,
"priority": 30,
"endpoint": "https://google.serper.dev/search",
"method": "POST",
"auth": { "type": "header", "headerName": "X-API-KEY", "apiKeyRef": "serper" },