Sfoglia il codice sorgente

智能选址agent修改

liutao 2 mesi fa
parent
commit
5595692e2b

+ 1 - 1
aiAgent_gd/qwen_agent/memory/data/sqls/sql_examples_智能选址.jsonl

@@ -7,6 +7,6 @@
   {
     "query_type": "land_site_selection",
     "query": "帮我在萧山区推荐一宗1公顷左右的学校用地",
-    "sql_code": "select objectid, xzqmc, xzqdm, dymc, yddm, ydxz, ydmj, rjlsx, rjlxx, jzmdsx, jzmdxx, jzgdsx, jzgdxx, ldlsx, ldlxx, pfwh, pfsj, shape,st_area(shape::geography) as pfmarea, st_astext(shape) as geom, st_astext(st_centroid(shape)) as center_wkt from dlgis.gcs330000g2007_kzxxxgh_kgdk_kgy_dsgj as a where xzqmc = '萧山区' and ydxz like '%学校%' and abs(ydmj - 1) <= 1 and NOT EXISTS (select 1 from dlgis.gcs330000k3003_zdzy_gd as b where st_intersects(a.shape, b.shape)) order by ydmj nulls last limit 10"
+    "sql_code": "select objectid, xzqmc, xzqdm, dymc, yddm, ydxz, ydmj, rjlsx, rjlxx, jzmdsx, jzmdxx, jzgdsx, jzgdxx, ldlsx, ldlxx, pfwh, pfsj, shape, st_astext(shape) as geom, st_astext(st_centroid(shape)) as center_wkt from dlgis.gcs330000g2007_kzxxxgh_kgdk_kgy_dsgj as a where xzqmc = '萧山区' and ydxz like '%学校%' and abs(ydmj - 1) <= 1 and NOT EXISTS (select 1 from dlgis.gcs330000k3003_zdzy_gd as b where st_intersects(a.shape, b.shape)) order by ydmj nulls last limit 10"
   }
 ]

+ 1 - 1
aiAgent_gd/qwen_agent/planning/plans/land_site_selection_plan.py

@@ -6,7 +6,7 @@ from qwen_agent.memory.plan_memory import PlanExampleRetrieval
 actions_list = {
     "GisGeocoderAgent": "用于获取用户问题中详细地址的坐标点",
     "LandSiteSelectionSqlAgent": "用于查询出让地块表的Agent",
-    "GisSurroundingFacilitiesQueryAgent": "对表查询的结果进行周边设施的查询",
+    # "GisSurroundingFacilitiesQueryAgent": "对表查询的结果进行周边设施的查询",
     "summary": "对表查询的结果,进行总结摘要,提炼用户关注的信息",
 }