SuperAPI AI 工具集

tavily

写作与研究

查看项目

更新于 10-15 20:06

技能介绍

用途:面向 LLM 与 AI 应用的网页搜索,用于综合网络研究、时事查询、限定域名检索,并生成 AI 摘要。

主要能力:可选 AI 答案摘要;结构化结果(标题、URL、内容、相关度分数);basic(1-2 秒)与 advanced(5-10 秒)两种搜索深度;general 与 news(近 7 天)主题;通过 --include-domains 与 --exclude-domains 过滤来源;--images 返回相关图片;--raw-content 返回原始 HTML;支持 --max-results 限制数量与 --json 输出便于解析。

使用方式:需 Python 3.6+ 和 tavily-python(pip install tavily-python)及以 tvly- 开头的 API 密钥。密钥可写入 Clawdbot 配置的 skills.entries.tavily.apiKey,或设置环境变量 export TAVILY_API_KEY="tvly-YOUR_API_KEY_HERE"。

示例:scripts/tavily_search.py "What is quantum computing?";scripts/tavily_search.py "Climate change solutions" --depth advanced;scripts/tavily_search.py "AI policy updates" --topic news;scripts/tavily_search.py "Python tutorials" --include-domains python.org docs.python.org realpython.com;scripts/tavily_search.py "Eiffel Tower architecture" --images;scripts/tavily_search.py "Python async/await" --raw-content --max-results 5。脚本可执行权限:chmod +x scripts/tavily_search.py。

适用场景:研究取证、时事追踪、仅限学术或官方文档检索、视觉参考收集、内容提取。

限制:advanced 较慢且消耗信用额度;需有效 API 密钥并注意计划速率与额度限制;缺少密钥或未安装包会报错。价格、免费额度、索引规模等资料未提供。