Skip to content

fix: 将 DeepAgent 的断言改为警告,使其在没有 Tavily Key 时也能加载出智能体选项并正常使用#522

Merged
xerrors merged 2 commits intoxerrors:mainfrom
floating21:fix/deep-agent-tavily-optional
Feb 28, 2026
Merged

fix: 将 DeepAgent 的断言改为警告,使其在没有 Tavily Key 时也能加载出智能体选项并正常使用#522
xerrors merged 2 commits intoxerrors:mainfrom
floating21:fix/deep-agent-tavily-optional

Conversation

@floating21
Copy link
Copy Markdown
Contributor

变更描述

将 DeepAgent 的硬性断言改为警告提示,使其在没有配置 TAVILY_API_KEY 时也能正常加载,避免服务启动失败。
同时添加了 logger 警告信息,提升用户体验。

变更类型

  • 新功能
  • Bug 修复
  • 文档更新
  • 其他

测试

  • 已在 Docker 环境测试
  • 相关功能正常工作

相关日志或者截图
image

image image image

说明

(可选)有什么需要特别说明的吗?
这个修改让 DeepAgent 的行为更符合文档描述(TAVILY_API_KEY 为可选配置),同时保持了原有功能的完整性。

💡 提示: 提交前可以运行 make lintmake format 检查代码规范

@xerrors xerrors merged commit ee50666 into xerrors:main Feb 28, 2026
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