Skip to content

Add domestic Doubao search tool - #994

Draft
Y1fe1Zh0u wants to merge 3 commits into
dataelement:v1.11.4from
Y1fe1Zh0u:agent/doubao-search
Draft

Add domestic Doubao search tool#994
Y1fe1Zh0u wants to merge 3 commits into
dataelement:v1.11.4from
Y1fe1Zh0u:agent/doubao-search

Conversation

@Y1fe1Zh0u

Copy link
Copy Markdown
Collaborator

变更内容

  • 新增国内火山引擎豆包搜索内置工具,使用独立搜索 API Key
  • 支持查询词、结果数、摘要长度和图片数量,并提供前端 schema 配置入口
  • 将搜索结果转换为 typed outcome,保留来源、发布时间、正文 token 数和 Markdown 图片
  • 在前端将该能力标记为测试功能,并提示服务可能不稳定

用户影响

配置豆包搜索 API Key 后,Agent 可以使用 doubao_search 检索国内互联网内容。未配置凭据时,该工具不会暴露给运行时。

验证

  • 后端搜索与内置工具契约测试:68 passed
  • 前端测试:108 passed
  • TypeScript 与 Vite 生产构建通过
  • scoped Ruff critical checks 通过

已知边界

当前没有真实豆包搜索 API Key,因此尚未完成真实接口与 CDN 图片端到端联调;前端已明确标记为测试功能。

Expose the Volcengine domestic global-search API through the existing typed search contract, with configurable defaults and Markdown image output for chat bubbles.

Constraint: Implementation follows published API documentation because no live Doubao Search key is available.

Rejected: Reuse an Ark or BytePlus endpoint | Doubao Search has separate domestic credentials and request semantics.

Confidence: medium

Scope-risk: moderate

Directive: Do not treat global_search as an overseas endpoint or mix its key with Ark and BytePlus credentials.

Tested: 68 backend search and builtin-tool tests; 108 frontend tests; frontend production build; scoped Ruff critical checks.

Not-tested: Live provider request and real CDN image rendering without a Doubao Search API key.
Mark the tool and credential control as a test feature in the schema-driven frontend configuration until a real provider key is available for end-to-end validation.

Constraint: No live Doubao Search API key is available.

Confidence: high

Scope-risk: narrow

Directive: Remove the test label only after a real authenticated query and image response are validated in the chat UI.

Tested: 68 backend search and builtin-tool tests; scoped Ruff critical checks.

Not-tested: Visual browser inspection of the rendered configuration card.
Replace implementation-detail wording with a direct notice that the test feature may fail.

Confidence: high

Scope-risk: narrow

Tested: 68 backend search and builtin-tool tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant