jihuaqiang 1 tháng trước cách đây
mục cha
commit
0cd4677867
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      tools/agent_tools.py

+ 2 - 2
tools/agent_tools.py

@@ -134,8 +134,8 @@ class QueryDataTool:
                 # 处理元组类型(数据库查询结果)
                 if isinstance(parsed, tuple) and len(parsed) > 4:
                     # 假设第4个元素是JSON字符串
-                    json_str = parsed[4]
-                    content_id = parsed[1]
+                    json_str = parsed[1]
+                    content_id = parsed[0]
                     if isinstance(json_str, str):
                         try:
                             json_data = json.loads(json_str)