全局重命名: - 包名: agent_eyes → agent_reach - CLI: agent-eyes → agent-reach - 类名: AgentEyes → AgentReach - 显示名: Agent Eyes → Agent Reach - GitHub: Panniantong/agent-eyes → Panniantong/Agent-Reach 所有 36 个测试通过,CLI/doctor/read/search 全部正常。
1.3 KiB
1.3 KiB
Exa Search 配置指南
功能说明
Exa 是一个语义搜索引擎,免费提供 1000 次/月搜索。配置后解锁:
- 全网搜索
- Reddit 搜索(通过 site:reddit.com)
- Twitter 搜索(通过 site:x.com)
Agent 可自动完成的步骤
- 检查是否已配置:
agent-reach doctor | grep "Web Search"
- 如果用户提供了 key,写入配置:
# 方法1: 通过 setup 命令
agent-reach setup
# 方法2: 直接写入配置文件
python3 -c "
from agent_reach.config import Config
c = Config()
c.set('exa_api_key', '用户提供的KEY')
print('✅ Exa API key saved')
"
- 测试是否有效:
agent-reach search "test query" -n 1
需要用户手动做的步骤
请告诉用户:
我需要一个 Exa API Key 来开启搜索功能。完全免费,每月 1000 次搜索。
步骤:
- 打开 https://exa.ai
- 点击 "Get API Key" 或 "Sign Up"
- 用 Google 账号或邮箱注册
- 注册后在 Dashboard 页面复制你的 API Key
- 把 Key 发给我
大概 30 秒就能搞定。
Agent 收到 key 后的操作
- 写入配置:
config.set("exa_api_key", key) - 测试:运行一次搜索确认可用
- 反馈:"✅ 全网搜索已开启!现在我可以帮你搜索全网、Reddit 和 Twitter 了。"