Ver Fonte

fix(deps): 补齐 Agent 框架缺失依赖,修复容器启动崩溃

容器启动报错 ModuleNotFoundError: No module named 'dbutils':
Agent 框架 agent/tools/__init__.py 会强制加载 builtin 工具,
其中 browser/sync_mysql_help.py 依赖 DBUtils,但根目录 requirements.txt
未包含,导致框架加载失败、FastAPI 服务启动崩溃。

对比成功案例 content-finder,补齐 3 个框架级依赖:
- DBUtils>=3.0.0(browser 工具数据库连接池)
- PyYAML>=6.0(配置文件解析)
- alibabacloud-oss-v2>=1.2.3(OSS 上传)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
刘立冬 há 1 mês atrás
pai
commit
4ac1dd5e9b
1 ficheiros alterados com 10 adições e 1 exclusões
  1. 10 1
      requirements.txt

+ 10 - 1
requirements.txt

@@ -15,4 +15,13 @@ websockets>=13.0
 pydantic
 pydantic
 
 
 # 飞书
 # 飞书
-lark-oapi==1.5.3
+lark-oapi==1.5.3
+
+# 数据库连接池(agent/tools/builtin/browser/sync_mysql_help.py 使用)
+DBUtils>=3.0.0
+
+# YAML 解析(Agent 框架配置文件使用)
+PyYAML>=6.0
+
+# 阿里云 OSS(HTML/图片上传使用)
+alibabacloud-oss-v2>=1.2.3