agent_config.py 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. from qwen_agent.sub_agent.gis.gis_geocoder_agent import GisGeocoderAgent
  2. from qwen_agent.sub_agent.summary_agent import SummaryAgent
  3. from qwen_agent.sub_agent.ChartAgent import ChartAgent
  4. from qwen_agent.sub_agent.sql.land_site_selection_sql_agent import LandSiteSelectionSqlAgent
  5. from qwen_agent.sub_agent.sql.land_supply_sql_agent import LandSupplySqlAgent
  6. from qwen_agent.sub_agent.sql.land_use_sql_agent import LandUseSqlAgent
  7. from qwen_agent.sub_agent.sql.land_find_sql_agent import LandFindSqlAgent
  8. from qwen_agent.sub_agent.gis.gis_layer_operation import GisLayerOperationAgent
  9. ActionDict = {
  10. "generate_chart": ChartAgent,
  11. "summary": SummaryAgent,
  12. "LandFindSqlAgent": LandFindSqlAgent,
  13. "LandSiteSelectionSqlAgent": LandSiteSelectionSqlAgent,
  14. "LandSupplySqlAgent": LandSupplySqlAgent,
  15. "LandUseSqlAgent": LandUseSqlAgent,
  16. "GisGeocoderAgent": GisGeocoderAgent,
  17. "GisLayerOperationAgent":GisLayerOperationAgent
  18. }
  19. AgentCNNameDict = {
  20. "generate_chart": "图表生成",
  21. "GisGeocoderAgent": "Gis 地理编码",
  22. "summary": "总结摘要",
  23. "plan_dispatcher": "任务分发",
  24. "Chat": "聊天机器人",
  25. "LandSiteSelectionSqlAgent": "智能选址",
  26. "LandFindSqlAgent": "找图找数",
  27. "LandSupplySqlAgent": "供地合同信息查询",
  28. "land_site_selection_planner": "地块智能选址plan",
  29. "land_find_planner": "找图找数plan",
  30. "land_supply_planner": "企业信息查询plan",
  31. "layer_operation_planner": "用于GIS图层控制系统的Agent",
  32. "GisLayerOperationAgent": "Gis 图层控制",
  33. }
  34. LLMDict_Qwen72 = {
  35. "plan_dispatcher": 'qwen-72b-chat',
  36. "generate_chart": 'qwen-72b-chat',
  37. "summary": 'qwen-72b-chat',
  38. "TenderResultSqlAgent": 'qwen-72b-chat',
  39. "planner": "qwen-72b-chat",
  40. "show_case": "qwen-72b-chat",
  41. "Chat": "qwen-72b-chat",
  42. }
  43. LLMDict_Qwen_72B_1211 = {
  44. "plan_dispatcher": 'Qwen_72B_1211',
  45. "generate_chart": 'Qwen_72B_1211',
  46. "summary": 'Qwen_72B_1211',
  47. "TenderResultSqlAgent": 'Qwen_72B_1211',
  48. "planner": "Qwen_72B_1211",
  49. "show_case": "Qwen_72B_1211",
  50. "Chat": "Qwen_72B_1211",
  51. }
  52. LLMDict = {
  53. "plan_dispatcher": 'qwen-plus',
  54. "generate_chart": 'Code2',
  55. "summary": 'qwen-plus',
  56. "TenderResultSqlAgent": 'Code',
  57. "planner": "Code2",
  58. "show_case": "Code2",
  59. "Chat": "qwen-plus",
  60. }
  61. LLMDict_Code = {
  62. "plan_dispatcher": 'Code2',
  63. "generate_chart": 'Code2',
  64. "summary": 'Code2',
  65. "TenderResultSqlAgent": 'Code2',
  66. "planner": "Code2",
  67. "show_case": "Code2",
  68. "Chat": "Code2",
  69. }
  70. LLMDict_GPT4_TURBO = {
  71. "plan_dispatcher": 'gpt-4-turbo',
  72. "generate_chart": 'gpt-4-turbo',
  73. "summary": 'gpt-4-turbo',
  74. "TenderResultSqlAgent": 'gpt-4-turbo',
  75. "planner": "gpt-4-turbo",
  76. "show_case": "gpt-4-turbo",
  77. "Chat": "gpt-4-turbo",
  78. }
  79. LLMDict_GPT4 = {
  80. "generate_chart": 'gpt-4',
  81. "summary": 'gpt-4',
  82. "TenderResultSqlAgent": 'gpt-4',
  83. "planner": "gpt-4",
  84. "ProductRecallAgent": "gpt-4",
  85. "show_case": "gpt-4",
  86. "Chat": "gpt-4",
  87. }
  88. LLMDict_DS_R1_21B = {
  89. "plan_dispatcher": 'DeepSeek-R1-Distill-Qwen-32B',
  90. "generate_chart": 'DeepSeek-R1-Distill-Qwen-32B',
  91. "summary": 'DeepSeek-R1-Distill-Qwen-32B',
  92. "planner": "DeepSeek-R1-Distill-Qwen-32B",
  93. "show_case": "DeepSeek-R1-Distill-Qwen-32B",
  94. "Chat": "DeepSeek-R1-Distill-Qwen-32B",
  95. "LandSupplySqlAgent": "DeepSeek-R1-Distill-Qwen-32B",
  96. # 智能选址
  97. "LandSiteSelectionSqlAgent": "DeepSeek-R1-Distill-Qwen-32B",
  98. # 找图找数
  99. "LandFindSqlAgent": "DeepSeek-R1-Distill-Qwen-32B",
  100. "GisGeocoderAgent": "DeepSeek-R1-Distill-Qwen-32B",
  101. "GisLayerOperationAgent": "DeepSeek-R1-Distill-Qwen-32B"
  102. }
  103. LLMDict_Qwen_72B_1211 = {
  104. "plan_dispatcher": 'qwen2.5-instruct',
  105. "generate_chart": 'qwen2.5-instruct',
  106. "summary": 'qwen2.5-instruct',
  107. "planner": "qwen2.5-instruct",
  108. "show_case": "qwen2.5-instruct",
  109. "Chat": "qwen2.5-instruct",
  110. "LandSupplySqlAgent": "qwen2.5-instruct",
  111. # 智能选址
  112. "LandSiteSelectionSqlAgent": "qwen2.5-instruct",
  113. # 找图找数
  114. "LandFindSqlAgent": "qwen2.5-instruct",
  115. # 空间分析
  116. "SpatialAnalysisAgent": "qwen2.5-instruct",
  117. "GisGeocoderAgent": "qwen2.5-instruct",
  118. "GisLayerOperationAgent": "qwen2.5-instruct"
  119. }