feat: 完善联网搜索功能集成到React模式
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 6m3s

This commit is contained in:
2026-04-30 23:18:08 +08:00
parent d4e69073ec
commit 3e438b6e1c
4 changed files with 73 additions and 5 deletions

View File

@@ -88,6 +88,9 @@ class MainGraphState:
rag_retrieved: bool = False # 是否已经检索过
rag_docs: List[Dict[str, Any]] = field(default_factory=list) # 检索到的文档
# ========== 联网搜索相关字段 ⭐ 新增 ==========
web_search_results: List[str] = field(default_factory=list) # 联网搜索结果
# ========== 错误处理字段 ==========
errors: List[ErrorRecord] = field(default_factory=list) # 错误列表
current_error: Optional[ErrorRecord] = None # 当前错误