crayonlu/dsh-web-search-tavily1

@crayonlu/dsh-web-search-tavily

基于 Tavily 的网页搜索提供商插件,接入 DSH 网页能力接口 (ctx.web)。

AI 分析

核心用途是为 DSH 提供基于 Tavily 的高质量联网搜索与答案生成。适合需要精准网页检索的用户。必要条件是需配置 Tavily API 密钥。

包名
@crayonlu/dsh-web-search-tavily
版本
0.1.0
许可证
MIT
最近更新
2026年8月13日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

Configuration

Every field is optional:

FieldDefaultMeaning
apiKeyLiteral Tavily key (write it here instead of apiKeyEnv only if you must; it lands in a config file).
apiKeyEnvTAVILY_API_KEYCredential reference resolved per search through ctx.credentials (inherited env > $DSH_HOME/.credentials.yaml > project/user .env).
baseURLhttps://api.tavily.comEndpoint base; /search is appended.
maxResults5Default result count when a request carries no maxResults.
includeAnswertrueCarry Tavily's generated answer as the search result content.
searchDepthbasicbasic or advanced (Tavily's search_depth).

The key resolves once per search, so an empty TAVILY_API_KEY fails the request with WEB_MISSING_CREDENTIAL rather than falling through to an unrelated credential.