feat(search): 添加 You.com Search API 和 Research API 作为并行搜索工具 - #6
Open
tra371 wants to merge 1 commit into
Open
Conversation
新增 YoucomSearchTool 和 YoucomResearchTool,遵循现有 TavilySearchTool 的 FunctionToolCallback 模式注册为 Spring AI 工具回调。两项工具均加入 ReactAgent,并配置 ToolCallLimitHook 和 ToolRetryInterceptor (最多重试 2 次,指数退避)。配置通过 application.yaml 的 app.youcom.search.* 和 app.youcom.research.* 分段管理, 环境变量:YOUCOM_API_KEY。前端 observabilityHelpers.js 标签同步更新。 注意:TavilyToolInputFallbackInterceptor 仅作用于 tavily_search, You.com 工具缺少输入标准化拦截器(功能正常但不对等——可后续补充 YoucomToolInputFallbackInterceptor)。Search API 另提供免费 MCP 入口 (无需 Key,每日 100 次),可通过 MCP 协议端点独立接入。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
|
针对该问题的实现 - #5 |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
YoucomSearchTool(Search API:快速网页搜索)和YoucomResearchTool(Research API:带引用的高质量综述答案)TavilySearchTool模式注册为FunctionToolCallback,接入 ReactAgent,配置相同的拦截器和限流钩子application.yaml的app.youcom.search.*和app.youcom.research.*分段管理YOUCOM_API_KEYTest plan
YOUCOM_API_KEY环境变量youcom_search或youcom_research被调用备注
TavilyToolInputFallbackInterceptor仅作用于tavily_search,You.com 工具缺少输入标准化拦截器,可在后续 PR 中补充以保持一致