- 将 server/, src/, scripts/, test/ 等目录移动到 backend/ 目录下 - 使用 git rename 保留文件历史记录 - 更新 docker-compose.yml 和 api.Dockerfile 配置 WIP: 项目结构重构进行中
25 lines
635 B
Python
25 lines
635 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
简单测试 MySQL 工具导入
|
|
"""
|
|
|
|
import sys
|
|
|
|
sys.path.insert(0, ".")
|
|
|
|
try:
|
|
from yuxi.agents.common.toolkits.mysql.tools import mysql_list_tables, mysql_describe_table, mysql_query
|
|
|
|
print("✅ MySQL 工具导入成功")
|
|
print(f"工具列表: {[tool.name for tool in [mysql_list_tables, mysql_describe_table, mysql_query]]}")
|
|
|
|
# 检查工具描述
|
|
for tool in [mysql_list_tables, mysql_describe_table, mysql_query]:
|
|
print(f" - {tool.name}: {tool.description[:60]}...")
|
|
|
|
except Exception as e:
|
|
print(f"❌ 导入失败: {e}")
|
|
import traceback
|
|
|
|
traceback.print_exc()
|