Skip to content

[集成请求] 添加 You.com Search API 和 Research API 作为搜索工具 #5

Description

@tra371

目标: 在项目中添加 You.com 作为可用的搜索和研究工具,与现有的 Tavily 并行运行。

项目适配度: super-agent 是企业级 AI Agent 平台,其 ReactAgent 依赖网络搜索获取最新信息。You.com 提供两个差异化 API,可扩展 Agent 的搜索能力:

  • Search API(POST https://api.you.com/v1/agents/search)— 免费套餐可用(每天 100 次,IP 认证,无需 API Key),适合快速事实查询
  • Research API(POST https://ydc-index.io/v1/research)— 生成带引用的高质量综述答案,支持 lite/standard/deep/exhaustive 四种深度,适合复杂研究问题同时集成两者使 Agent 可根据任务需求在快速搜索和深度研究之间切换,Tavily 作为备用保持不变。

实现方案:

  1. 创建 YoucomSearchTool 和 YoucomResearchTool,遵循现有 TavilySearchTool 的 FunctionToolCallback 模式
  2. 创建对应的配置类 YoucomSearchProperties 和 YoucomResearchProperties(参照 TavilySearchProperties)
  3. 在 application.yaml 中添加 youcom.search.* 和 youcom.research.* 配置节点
  4. 将两个 Tool 注册到 ReactAgent 的工具列表中
  5. 编写 test_search_youcom.py 和 test_research_youcom.py 供本地验证
  6. 更新 README.md 添加 You.com 配置说明

影响范围: 非破坏性变更,仅新增两个可选工具,不影响现有 Tavily 功能。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions