You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
2.1 KiB
113 lines
2.1 KiB
|
4 weeks ago
|
# Tavily 测试清单 - 桐哥
|
||
|
|
|
||
|
|
**日期:** 2026-03-07
|
||
|
|
**状态:** 🟡 等待 Telegram 测试
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## ✅ 已完成测试
|
||
|
|
|
||
|
|
| 测试项 | 状态 | 结果 |
|
||
|
|
|--------|------|------|
|
||
|
|
| 服务启动 | ✅ 通过 | `active (running)` |
|
||
|
|
| 插件注册 | ✅ 通过 | `[Tavily] Plugin registered` |
|
||
|
|
| 配置文件 | ✅ 通过 | `openclaw.plugin.json` 存在 |
|
||
|
|
| 工具导出 | ✅ 通过 | `register` + `activate` 已导出 |
|
||
|
|
| API Key | ✅ 通过 | 已配置 |
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 🧪 待 Telegram 测试
|
||
|
|
|
||
|
|
### 测试 1: 基础搜索
|
||
|
|
**发送:** `用 tavily 搜索一下今天的人工智能新闻`
|
||
|
|
|
||
|
|
**预期:**
|
||
|
|
- [ ] 桐哥理解并使用 Tavily
|
||
|
|
- [ ] 返回 3-5 条结果
|
||
|
|
- [ ] 包含标题、URL、摘要
|
||
|
|
|
||
|
|
**实际结果:** _待填写_
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
### 测试 2: 深度搜索
|
||
|
|
**发送:** `帮我研究一下 2026 年最新的 AI 发展趋势,要详细一点`
|
||
|
|
|
||
|
|
**预期:**
|
||
|
|
- [ ] 使用 `search_depth: advanced`
|
||
|
|
- [ ] 返回多个来源
|
||
|
|
- [ ] 有综合总结
|
||
|
|
|
||
|
|
**实际结果:** _待填写_
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
### 测试 3: 新闻搜索
|
||
|
|
**发送:** `用 tavily 搜索最近的科技新闻,topic 用 news`
|
||
|
|
|
||
|
|
**预期:**
|
||
|
|
- [ ] 使用 `topic: news`
|
||
|
|
- [ ] 返回最近 7 天新闻
|
||
|
|
- [ ] 来源为新闻媒体
|
||
|
|
|
||
|
|
**实际结果:** _待填写_
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
### 测试 4: 参数验证
|
||
|
|
**发送:** `用 tavily 搜索 Python 教程,只要 3 个结果`
|
||
|
|
|
||
|
|
**预期:**
|
||
|
|
- [ ] `max_results: 3` 生效
|
||
|
|
- [ ] 只返回 3 条结果
|
||
|
|
|
||
|
|
**实际结果:** _待填写_
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 📊 配置确认
|
||
|
|
|
||
|
|
```json
|
||
|
|
// /root/.openclaw-tongge/openclaw.json
|
||
|
|
{
|
||
|
|
"skills": {
|
||
|
|
"entries": {
|
||
|
|
// tavily 不在这里 ✅
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"plugins": {
|
||
|
|
"load": {
|
||
|
|
"paths": [
|
||
|
|
"/root/.openclaw/workspace/skills/tavily" // ✅ 在这里
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"entries": {
|
||
|
|
"tavily": { "enabled": true } // ✅ 在这里启用
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 🔧 故障排查
|
||
|
|
|
||
|
|
如果桐哥说"没有 Tavily 工具":
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# 1. 检查插件文件
|
||
|
|
ls /root/.openclaw/workspace/skills/tavily/openclaw.plugin.json
|
||
|
|
|
||
|
|
# 2. 检查日志
|
||
|
|
journalctl --user -u openclaw-gateway-tongge -n 50 | grep -i tavily
|
||
|
|
|
||
|
|
# 3. 重启服务
|
||
|
|
systemctl --user restart openclaw-gateway-tongge
|
||
|
|
```
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
**最后更新:** 2026-03-07 12:52 UTC
|
||
|
|
**下一步:** 在 Telegram 测试功能
|