feat: 添加 web_search 工具和权限管控

- 新增 web_search 工具,使用 Tavily SDK 进行网络搜索
- 支持搜索深度(basic/advanced)和主题(general/news/finance)配置
- 新增 WebPermissionChecker 权限检查器
- 搜索操作默认需要用户确认,支持会话级权限记忆
- 配置文件支持 tavilyApiKey 存储
This commit is contained in:
2025-12-11 01:32:32 +08:00
parent 924fd7b9c6
commit 3c922fe16c
12 changed files with 744 additions and 1 deletions
+1
View File
@@ -25,6 +25,7 @@
"dependencies": {
"@ai-sdk/anthropic": "^2.0.54",
"@ai-sdk/deepseek": "^1.0.31",
"@tavily/core": "^0.6.0",
"ai": "^5.0.108",
"chalk": "^5.3.0",
"commander": "^12.1.0",