Skip to content

feat(knowledgebase): 完善工具参数及返回字段,支持图片 ResourceLink - #438

Merged
cuericlee merged 2 commits into
volcengine:mainfrom
Hao-Yu-la:main
Sep 29, 2026
Merged

cuericlee merged 2 commits into
volcengine:mainfrom
Hao-Yu-la:main

Conversation

@Hao-Yu-la

@Hao-Yu-la Hao-Yu-la commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

变更内容

  • 完善只读工具的输入参数,支持通过 resource_id 定位知识库,补充检索文档过滤参数。
  • 补充知识库、文档及检索结果的返回字段。
  • 将 image、doc-image、table 类型附件的图片链接通过 MCP ResourceLink 返回,结构化结果保留附件元数据,不包含链接。table 附件按图片返回的前提是 Viking 提供表格的渲染图 URL;此处 ResourceLink 指向该渲染图,而非结构化表格数据。
  • add_doc 返回接口实际响应中的 collection_name、doc_id 和 resource_id。
  • 完善工具及参数说明,更新中英文 README 的输入输出示例。
  • 版本更新至 0.2.2。

验证

  • 12 项测试通过。
  • 已使用真实 Viking 知识库验证只读工具及图片链接返回。
  • git diff --check 通过。

@cuericlee cuericlee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@cuericlee
cuericlee merged commit dabf574 into volcengine:main Sep 29, 2026
3 checks passed
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.

2 participants