知识库通过两个 Agent 工具与 DeepAgents 框架集成。当用户在 invoke() 请求中传入 knowledge_base_ids 时,这些工具自动注册到 Agent 的工具集中。
search_knowledge_base
Agent 主动搜索知识库中的相关信息,支持多知识库并行检索、可调节的检索权重。
是否使用 RRF 重排序。关闭后直接返回向量搜索结果(更快)
Agent 调用示例
parse_resource_file
解析用户在 Resource 区上传的文件,支持所有文档格式和图片(通过 Vision API)。
Agent 调用示例