data.tsx 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. import { SmileOutlined, CoffeeOutlined, FireOutlined } from "@ant-design/icons";
  2. import type { PromptsProps } from "@ant-design/x";
  3. import icon1 from "@/assets/icon-ai-1.png";
  4. import icon2 from "@/assets/icon-ai-2.png";
  5. import icon3 from "@/assets/icon-ai-3.png";
  6. import icon4 from "@/assets/icon-ai-4.png";
  7. import icon5 from "@/assets/icon-ai-5.png";
  8. import icon6 from "@/assets/icon-ai-6.png";
  9. export type AgentItem = {
  10. key: string;
  11. name: string;
  12. icon: string;
  13. description?: string;
  14. promptsItems?: PromptsProps["items"]
  15. }
  16. export const assistantList: AgentItem[] = [
  17. {
  18. key: "normal_ask",
  19. name: "综合问答",
  20. icon: icon1,
  21. description: "基于LLM的智能助手,可以进行各种使用查询、知识问答等~",
  22. promptsItems: [
  23. {
  24. key: "1",
  25. icon: <CoffeeOutlined style={{ color: "#964B00" }} />,
  26. description: "怎么创建我的应用?",
  27. },
  28. {
  29. key: "2",
  30. icon: <SmileOutlined style={{ color: "#FAAD14" }} />,
  31. description: "页面设计器如何使用?",
  32. },
  33. {
  34. key: "3",
  35. icon: <FireOutlined style={{ color: "#FF4D4F" }} />,
  36. description: "如何生成页面SQL?",
  37. },
  38. ],
  39. },
  40. {
  41. key: "system_design",
  42. name: "系统设计",
  43. icon: icon2,
  44. description: "可以进行各种系统方面的图形创建、使用说明,如: 流程图、系统架构图等等",
  45. promptsItems: [
  46. {
  47. key: "1",
  48. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  49. description: "如何创建流程图?",
  50. },
  51. {
  52. key: "2",
  53. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  54. description: "如何设置画布样式?",
  55. },
  56. ]
  57. },
  58. {
  59. key: "data_model",
  60. name: "数据模型",
  61. icon: icon3,
  62. description: "关于数据模型的一些问题~",
  63. promptsItems: [
  64. {
  65. key: "1",
  66. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  67. description: "如何创建表格?",
  68. },
  69. {
  70. key: "2",
  71. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  72. description: "如何使用在系统中使用数据模型?",
  73. },
  74. ]
  75. },
  76. {
  77. key: "page_design",
  78. name: "页面设计",
  79. icon: icon4,
  80. description: "表单设计器方面的使用方法~",
  81. promptsItems: [
  82. {
  83. key: "1",
  84. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  85. description: "如何使用表单设计器?",
  86. },
  87. {
  88. key: "2",
  89. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  90. description: "如何在表单设计器中添加弹窗?",
  91. },
  92. ]
  93. },
  94. {
  95. key: "workflow_design",
  96. name: "流程设计",
  97. icon: icon5,
  98. description: "不同流程的创建和使用",
  99. promptsItems: [
  100. {
  101. key: "1",
  102. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  103. description: "如何在系统中使用流程图?",
  104. },
  105. {
  106. key: "2",
  107. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  108. description: "流程异常如何处理?",
  109. },
  110. ]
  111. },
  112. {
  113. key: "doc_generate",
  114. name: "文档生成",
  115. icon: icon6,
  116. description: "文档管理方面的一些问题",
  117. promptsItems: [
  118. {
  119. key: "1",
  120. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  121. description: "生成一份系统操作手册文档?",
  122. },
  123. {
  124. key: "2",
  125. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  126. description: "如何将文档保存为模板?",
  127. },
  128. ]
  129. },
  130. {
  131. key: "code_generate",
  132. name: "代码生成",
  133. icon: icon4,
  134. description: "我可以帮你生成页面代码、JS代码、后端代码等",
  135. promptsItems: [
  136. {
  137. key: "1",
  138. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  139. description: "写一个登陆页面",
  140. },
  141. {
  142. key: "2",
  143. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  144. description: "帮我写一个登陆方法?",
  145. },
  146. ]
  147. },
  148. {
  149. key: "sql_generate",
  150. name: "SQL生成",
  151. icon: icon3,
  152. description: "我可以帮你生成各种各样的查询、创建、更新方法~",
  153. promptsItems: [
  154. {
  155. key: "1",
  156. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  157. description: "用户统计",
  158. },
  159. {
  160. key: "2",
  161. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  162. description: "视图查询",
  163. },
  164. ]
  165. },
  166. {
  167. key: "app_generate",
  168. name: "指令生成",
  169. icon: icon1,
  170. description: "我可以帮你快速创建应用~",
  171. promptsItems: [
  172. {
  173. key: "1",
  174. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  175. description: "创建一个用户管理系统",
  176. },
  177. {
  178. key: "2",
  179. icon: <SmileOutlined style={{ color: "#52C41A" }} />,
  180. description: "创建一个订单管理系统",
  181. },
  182. ]
  183. },
  184. ];