ForcePilot/src/agents/deep_agent
zhaoxuyue 6fa14f77a6 fix: lazy init TavilySearch to avoid startup crash without API key
- Add get_tavily_search() for lazy initialization (renamed from _get_tavily_search)
- Update deep_agent/graph.py to use lazy initialization
- Add assertion check when DeepAgent loads to ensure search tool is available
- Convert research_sub_agent to function to receive tools dynamically

When TAVILY_API_KEY is not configured, the API server can now start normally.
DeepAgent will show a clear error message when used without the API key.
2026-01-07 20:33:46 +08:00
..
__init__.py feat: 添加深度分析智能体模块及相关上下文和工具 2025-11-12 01:21:38 +08:00
context.py feat(agent): 添加智能体配置保存时的graph重载功能 2025-12-28 22:55:42 +08:00
graph.py fix: lazy init TavilySearch to avoid startup crash without API key 2026-01-07 20:33:46 +08:00
prompts.py refactor(deep_agent): 简化研究代理提示并添加研究结果保存功能 2025-12-30 03:13:50 +08:00