fix: 将 DeepAgent 的断言改为警告,使其在没有 Tavily Key 时也能加载出智能体选项并正常使用#522
Merged
xerrors merged 2 commits intoxerrors:mainfrom Feb 28, 2026
Merged
fix: 将 DeepAgent 的断言改为警告,使其在没有 Tavily Key 时也能加载出智能体选项并正常使用#522xerrors merged 2 commits intoxerrors:mainfrom
xerrors merged 2 commits intoxerrors:mainfrom
Conversation
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.
变更描述
将 DeepAgent 的硬性断言改为警告提示,使其在没有配置 TAVILY_API_KEY 时也能正常加载,避免服务启动失败。
同时添加了 logger 警告信息,提升用户体验。
变更类型
测试
相关日志或者截图

说明
(可选)有什么需要特别说明的吗?
这个修改让 DeepAgent 的行为更符合文档描述(TAVILY_API_KEY 为可选配置),同时保持了原有功能的完整性。
💡 提示: 提交前可以运行
make lint和make format检查代码规范