@arcgis/ai-components 5.1.0-next.98 → 5.2.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/README.md +2 -2
  2. package/dist/agent-utils/BaseAgent.d.ts +90 -0
  3. package/dist/agent-utils/BaseAgent.js +87 -0
  4. package/dist/agent-utils/FunctionAgent.d.ts +64 -0
  5. package/dist/agent-utils/FunctionAgent.js +98 -0
  6. package/dist/agent-utils/LLMAgent.d.ts +65 -0
  7. package/dist/agent-utils/LLMAgent.js +139 -0
  8. package/dist/agent-utils/WorkflowAgent.d.ts +44 -0
  9. package/dist/agent-utils/WorkflowAgent.js +70 -0
  10. package/dist/agent-utils/middlewares/humanInTheLoop.d.ts +152 -0
  11. package/dist/agent-utils/middlewares/humanInTheLoop.js +94 -0
  12. package/dist/agent-utils/middlewares/middleware.d.ts +25 -0
  13. package/dist/agent-utils/middlewares/middleware.js +44 -0
  14. package/dist/agent-utils/middlewares/trace.d.ts +25 -0
  15. package/dist/agent-utils/middlewares/trace.js +50 -0
  16. package/dist/agent-utils/middlewares/types.d.ts +123 -0
  17. package/dist/agent-utils/middlewares/types.js +2 -0
  18. package/dist/agent-utils/tools/FunctionTool.d.ts +127 -0
  19. package/dist/agent-utils/tools/FunctionTool.js +80 -0
  20. package/dist/agent-utils/types.d.ts +152 -0
  21. package/dist/agent-utils/workflows/BaseWorkflow.d.ts +87 -0
  22. package/dist/agent-utils/workflows/ConditionalWorkflow.d.ts +72 -0
  23. package/dist/agent-utils/workflows/ConditionalWorkflow.js +61 -0
  24. package/dist/agent-utils/workflows/LoopWorkflow.d.ts +58 -0
  25. package/dist/agent-utils/workflows/LoopWorkflow.js +56 -0
  26. package/dist/agent-utils/workflows/ParallelWorkflow.d.ts +68 -0
  27. package/dist/agent-utils/workflows/ParallelWorkflow.js +129 -0
  28. package/dist/agent-utils/workflows/RouterWorkflow.d.ts +63 -0
  29. package/dist/agent-utils/workflows/RouterWorkflow.js +75 -0
  30. package/dist/agent-utils/workflows/SequentialWorkflow.d.ts +56 -0
  31. package/dist/agent-utils/workflows/SequentialWorkflow.js +69 -0
  32. package/dist/agent-utils/workflows/SwitchWorkflow.d.ts +74 -0
  33. package/dist/agent-utils/workflows/SwitchWorkflow.js +84 -0
  34. package/dist/assets/embeddings.worker-k9_Ou679.js +1 -0
  35. package/dist/cdn/{24MYCR6F.js → 23EQTPO3.js} +2 -2
  36. package/dist/cdn/{Z3DVGFEE.js → 2AXF774U.js} +2 -2
  37. package/dist/cdn/{UK6CP7BR.js → 3PKJWIC3.js} +2 -2
  38. package/dist/cdn/462JBSEV.js +422 -0
  39. package/dist/cdn/5QAHYX7Y.js +5 -0
  40. package/dist/cdn/{YVTKUITE.js → 5ZZGKP7N.js} +2 -2
  41. package/dist/cdn/{VHOF6SUZ.js → 6MAINSY5.js} +4 -3
  42. package/dist/cdn/6R6AY3D3.js +42 -0
  43. package/dist/cdn/{DMLSCJAM.js → 6YMR4QSD.js} +2 -2
  44. package/dist/cdn/{LXFCO34K.js → 7BCR6TUO.js} +2 -2
  45. package/dist/cdn/{EUNEQNYC.js → 7GH7VSB2.js} +1 -1
  46. package/dist/cdn/{YNJYG2RG.js → 7PLV4QH6.js} +2 -2
  47. package/dist/cdn/{JDL3HFFX.js → 7RCQFLPP.js} +2 -2
  48. package/dist/cdn/AMP6IALT.js +2 -0
  49. package/dist/cdn/{Y3AUHNRX.js → AO7BQHKC.js} +2 -2
  50. package/dist/cdn/AXDZBBNL.js +45 -0
  51. package/dist/cdn/{WBRZZ4FB.js → DDLZOMUY.js} +2 -2
  52. package/dist/cdn/DHOVCT6R.js +2 -0
  53. package/dist/cdn/EF453FJ2.js +3 -0
  54. package/dist/cdn/{ESTSYVJP.js → F2AHA4GB.js} +2 -2
  55. package/dist/cdn/FB5DRKEB.js +14 -0
  56. package/dist/cdn/FX5JFRDL.js +2 -0
  57. package/dist/cdn/{CFT5BBC6.js → FX7UOGHP.js} +2 -2
  58. package/dist/cdn/{5PT7ZFXF.js → GM3QP65I.js} +2 -2
  59. package/dist/cdn/H7422XUG.js +2 -0
  60. package/dist/cdn/HB5A5R2E.js +2 -0
  61. package/dist/cdn/{LSGRWCAO.js → KMQ3SP4I.js} +2 -2
  62. package/dist/cdn/{7EXACS27.js → LBVX2JYG.js} +2 -2
  63. package/dist/cdn/{MZJGADGH.js → LQ6R5YRN.js} +2 -2
  64. package/dist/cdn/METXWS7V.js +166 -0
  65. package/dist/cdn/{3QC3BRZP.js → MH5RPXHM.js} +2 -2
  66. package/dist/cdn/N2VQD46V.js +106 -0
  67. package/dist/cdn/{54ATSQPS.js → NAUXSHIE.js} +18 -18
  68. package/dist/cdn/{SFREIREB.js → NE7E52YR.js} +2 -2
  69. package/dist/cdn/{2YEKZADB.js → NVI3I46B.js} +2 -2
  70. package/dist/cdn/{YGW7TUNX.js → OAVEHGB6.js} +1 -1
  71. package/dist/cdn/{DSEMD4M2.js → OH64RMOR.js} +3 -3
  72. package/dist/cdn/{PTGKT5P6.js → P6OPJQMC.js} +2 -2
  73. package/dist/cdn/QDO2AO53.js +36 -0
  74. package/dist/cdn/{TRDKA5Y6.js → QR54T33D.js} +2 -2
  75. package/dist/cdn/{457RLS3H.js → RVOAPUBN.js} +2 -2
  76. package/dist/cdn/{5JBT3YNY.js → SXDLXCIM.js} +2 -2
  77. package/dist/cdn/SZOVY2QU.js +2 -0
  78. package/dist/cdn/U3QQW6VA.js +16 -0
  79. package/dist/cdn/{G4SVCCJH.js → USMDJUFS.js} +2 -2
  80. package/dist/cdn/{Q5D5LJS5.js → V2P4AIGG.js} +2 -2
  81. package/dist/cdn/Y333DGV6.js +2 -0
  82. package/dist/cdn/Y67XAMT4.js +22 -0
  83. package/dist/cdn/{CFDTXKJ6.js → YIMNOUTF.js} +1 -1
  84. package/dist/cdn/ZS2TZ6BF.js +31 -0
  85. package/dist/cdn/{W5CHGOOR.js → ZTBA5PM7.js} +2 -2
  86. package/dist/cdn/assets/assistant/t9n/messages.ar.json +1 -1
  87. package/dist/cdn/assets/assistant/t9n/messages.bg.json +1 -1
  88. package/dist/cdn/assets/assistant/t9n/messages.bs.json +1 -1
  89. package/dist/cdn/assets/assistant/t9n/messages.ca.json +1 -1
  90. package/dist/cdn/assets/assistant/t9n/messages.cs.json +1 -1
  91. package/dist/cdn/assets/assistant/t9n/messages.da.json +1 -1
  92. package/dist/cdn/assets/assistant/t9n/messages.de.json +1 -1
  93. package/dist/cdn/assets/assistant/t9n/messages.el.json +1 -1
  94. package/dist/cdn/assets/assistant/t9n/messages.es.json +1 -1
  95. package/dist/cdn/assets/assistant/t9n/messages.et.json +1 -1
  96. package/dist/cdn/assets/assistant/t9n/messages.fi.json +1 -1
  97. package/dist/cdn/assets/assistant/t9n/messages.fr.json +1 -1
  98. package/dist/cdn/assets/assistant/t9n/messages.he.json +1 -1
  99. package/dist/cdn/assets/assistant/t9n/messages.hr.json +1 -1
  100. package/dist/cdn/assets/assistant/t9n/messages.hu.json +1 -1
  101. package/dist/cdn/assets/assistant/t9n/messages.id.json +1 -1
  102. package/dist/cdn/assets/assistant/t9n/messages.it.json +1 -1
  103. package/dist/cdn/assets/assistant/t9n/messages.ja.json +1 -1
  104. package/dist/cdn/assets/assistant/t9n/messages.ko.json +1 -1
  105. package/dist/cdn/assets/assistant/t9n/messages.lt.json +1 -1
  106. package/dist/cdn/assets/assistant/t9n/messages.lv.json +1 -1
  107. package/dist/cdn/assets/assistant/t9n/messages.nl.json +1 -1
  108. package/dist/cdn/assets/assistant/t9n/messages.no.json +1 -1
  109. package/dist/cdn/assets/assistant/t9n/messages.pl.json +1 -1
  110. package/dist/cdn/assets/assistant/t9n/messages.pt-BR.json +1 -1
  111. package/dist/cdn/assets/assistant/t9n/messages.pt-PT.json +1 -1
  112. package/dist/cdn/assets/assistant/t9n/messages.ro.json +1 -1
  113. package/dist/cdn/assets/assistant/t9n/messages.ru.json +1 -1
  114. package/dist/cdn/assets/assistant/t9n/messages.sk.json +1 -1
  115. package/dist/cdn/assets/assistant/t9n/messages.sl.json +1 -1
  116. package/dist/cdn/assets/assistant/t9n/messages.sr.json +1 -1
  117. package/dist/cdn/assets/assistant/t9n/messages.sv.json +1 -1
  118. package/dist/cdn/assets/assistant/t9n/messages.th.json +1 -1
  119. package/dist/cdn/assets/assistant/t9n/messages.tr.json +1 -1
  120. package/dist/cdn/assets/assistant/t9n/messages.uk.json +1 -1
  121. package/dist/cdn/assets/assistant/t9n/messages.vi.json +1 -1
  122. package/dist/cdn/assets/assistant/t9n/messages.zh-CN.json +1 -1
  123. package/dist/cdn/assets/assistant/t9n/messages.zh-HK.json +1 -1
  124. package/dist/cdn/assets/assistant/t9n/messages.zh-TW.json +1 -1
  125. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ar.json +1 -1
  126. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.bg.json +1 -1
  127. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.bs.json +1 -1
  128. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ca.json +1 -1
  129. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.cs.json +1 -1
  130. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.da.json +1 -1
  131. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.de.json +1 -1
  132. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.el.json +1 -1
  133. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.es.json +1 -1
  134. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.et.json +1 -1
  135. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.fi.json +1 -1
  136. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.fr.json +1 -1
  137. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.he.json +1 -1
  138. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.hr.json +1 -1
  139. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.hu.json +1 -1
  140. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.id.json +1 -1
  141. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.it.json +1 -1
  142. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ja.json +1 -1
  143. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ko.json +1 -1
  144. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.lt.json +1 -1
  145. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.lv.json +1 -1
  146. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.nl.json +1 -1
  147. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.no.json +1 -1
  148. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.pl.json +1 -1
  149. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.pt-BR.json +1 -1
  150. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.pt-PT.json +1 -1
  151. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ro.json +1 -1
  152. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ru.json +1 -1
  153. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.sk.json +1 -1
  154. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.sl.json +1 -1
  155. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.sr.json +1 -1
  156. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.sv.json +1 -1
  157. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.th.json +1 -1
  158. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.tr.json +1 -1
  159. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.uk.json +1 -1
  160. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.vi.json +1 -1
  161. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.zh-CN.json +1 -1
  162. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.zh-HK.json +1 -1
  163. package/dist/cdn/assets/assistant-message-feedback/t9n/messages.zh-TW.json +1 -1
  164. package/dist/cdn/assets/assistant-message-footer/t9n/messages.ar.json +1 -1
  165. package/dist/cdn/assets/assistant-message-footer/t9n/messages.bg.json +1 -1
  166. package/dist/cdn/assets/assistant-message-footer/t9n/messages.bs.json +1 -1
  167. package/dist/cdn/assets/assistant-message-footer/t9n/messages.ca.json +1 -1
  168. package/dist/cdn/assets/assistant-message-footer/t9n/messages.cs.json +1 -1
  169. package/dist/cdn/assets/assistant-message-footer/t9n/messages.da.json +1 -1
  170. package/dist/cdn/assets/assistant-message-footer/t9n/messages.de.json +1 -1
  171. package/dist/cdn/assets/assistant-message-footer/t9n/messages.el.json +1 -1
  172. package/dist/cdn/assets/assistant-message-footer/t9n/messages.es.json +1 -1
  173. package/dist/cdn/assets/assistant-message-footer/t9n/messages.et.json +1 -1
  174. package/dist/cdn/assets/assistant-message-footer/t9n/messages.fi.json +1 -1
  175. package/dist/cdn/assets/assistant-message-footer/t9n/messages.fr.json +1 -1
  176. package/dist/cdn/assets/assistant-message-footer/t9n/messages.he.json +1 -1
  177. package/dist/cdn/assets/assistant-message-footer/t9n/messages.hr.json +1 -1
  178. package/dist/cdn/assets/assistant-message-footer/t9n/messages.hu.json +1 -1
  179. package/dist/cdn/assets/assistant-message-footer/t9n/messages.id.json +1 -1
  180. package/dist/cdn/assets/assistant-message-footer/t9n/messages.it.json +1 -1
  181. package/dist/cdn/assets/assistant-message-footer/t9n/messages.ja.json +1 -1
  182. package/dist/cdn/assets/assistant-message-footer/t9n/messages.ko.json +1 -1
  183. package/dist/cdn/assets/assistant-message-footer/t9n/messages.lt.json +1 -1
  184. package/dist/cdn/assets/assistant-message-footer/t9n/messages.lv.json +1 -1
  185. package/dist/cdn/assets/assistant-message-footer/t9n/messages.nl.json +1 -1
  186. package/dist/cdn/assets/assistant-message-footer/t9n/messages.no.json +1 -1
  187. package/dist/cdn/assets/assistant-message-footer/t9n/messages.pl.json +1 -1
  188. package/dist/cdn/assets/assistant-message-footer/t9n/messages.pt-BR.json +1 -1
  189. package/dist/cdn/assets/assistant-message-footer/t9n/messages.pt-PT.json +1 -1
  190. package/dist/cdn/assets/assistant-message-footer/t9n/messages.ro.json +1 -1
  191. package/dist/cdn/assets/assistant-message-footer/t9n/messages.ru.json +1 -1
  192. package/dist/cdn/assets/assistant-message-footer/t9n/messages.sk.json +1 -1
  193. package/dist/cdn/assets/assistant-message-footer/t9n/messages.sl.json +1 -1
  194. package/dist/cdn/assets/assistant-message-footer/t9n/messages.sr.json +1 -1
  195. package/dist/cdn/assets/assistant-message-footer/t9n/messages.sv.json +1 -1
  196. package/dist/cdn/assets/assistant-message-footer/t9n/messages.th.json +1 -1
  197. package/dist/cdn/assets/assistant-message-footer/t9n/messages.tr.json +1 -1
  198. package/dist/cdn/assets/assistant-message-footer/t9n/messages.uk.json +1 -1
  199. package/dist/cdn/assets/assistant-message-footer/t9n/messages.vi.json +1 -1
  200. package/dist/cdn/assets/assistant-message-footer/t9n/messages.zh-CN.json +1 -1
  201. package/dist/cdn/assets/assistant-message-footer/t9n/messages.zh-HK.json +1 -1
  202. package/dist/cdn/assets/assistant-message-footer/t9n/messages.zh-TW.json +1 -1
  203. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ar.json +1 -1
  204. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.bg.json +1 -1
  205. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.bs.json +1 -1
  206. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ca.json +1 -1
  207. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.cs.json +1 -1
  208. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.da.json +1 -1
  209. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.de.json +1 -1
  210. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.el.json +1 -1
  211. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.es.json +1 -1
  212. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.et.json +1 -1
  213. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.fi.json +1 -1
  214. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.fr.json +1 -1
  215. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.he.json +1 -1
  216. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.hr.json +1 -1
  217. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.hu.json +1 -1
  218. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.id.json +1 -1
  219. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.it.json +1 -1
  220. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ja.json +1 -1
  221. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ko.json +1 -1
  222. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.lt.json +1 -1
  223. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.lv.json +1 -1
  224. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.nl.json +1 -1
  225. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.no.json +1 -1
  226. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.pl.json +1 -1
  227. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.pt-BR.json +1 -1
  228. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.pt-PT.json +1 -1
  229. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ro.json +1 -1
  230. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ru.json +1 -1
  231. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.sk.json +1 -1
  232. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.sl.json +1 -1
  233. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.sr.json +1 -1
  234. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.sv.json +1 -1
  235. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.th.json +1 -1
  236. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.tr.json +1 -1
  237. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.uk.json +1 -1
  238. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.vi.json +1 -1
  239. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.zh-CN.json +1 -1
  240. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.zh-HK.json +1 -1
  241. package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.zh-TW.json +1 -1
  242. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ar.json +1 -1
  243. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.bg.json +1 -1
  244. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.bs.json +1 -1
  245. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ca.json +1 -1
  246. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.cs.json +1 -1
  247. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.da.json +1 -1
  248. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.de.json +1 -1
  249. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.el.json +1 -1
  250. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.es.json +1 -1
  251. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.et.json +1 -1
  252. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.fi.json +1 -1
  253. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.fr.json +1 -1
  254. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.he.json +1 -1
  255. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.hr.json +1 -1
  256. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.hu.json +1 -1
  257. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.id.json +1 -1
  258. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.it.json +1 -1
  259. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ja.json +1 -1
  260. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ko.json +1 -1
  261. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.lt.json +1 -1
  262. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.lv.json +1 -1
  263. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.nl.json +1 -1
  264. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.no.json +1 -1
  265. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.pl.json +1 -1
  266. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.pt-BR.json +1 -1
  267. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.pt-PT.json +1 -1
  268. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ro.json +1 -1
  269. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ru.json +1 -1
  270. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.sk.json +1 -1
  271. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.sl.json +1 -1
  272. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.sr.json +1 -1
  273. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.sv.json +1 -1
  274. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.th.json +1 -1
  275. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.tr.json +1 -1
  276. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.uk.json +1 -1
  277. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.vi.json +1 -1
  278. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.zh-CN.json +1 -1
  279. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.zh-HK.json +1 -1
  280. package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.zh-TW.json +1 -1
  281. package/dist/cdn/index.js +2 -2
  282. package/dist/cdn/main.css +1 -1
  283. package/dist/chunks/BaseWorkflow.js +107 -0
  284. package/dist/chunks/adapter.js +2964 -0
  285. package/dist/chunks/arcgisKnowledgeGraph.js +174 -0
  286. package/dist/chunks/arcgis_knowledge_current_lc_context.js +8 -0
  287. package/dist/chunks/arcgis_knowledge_current_map_context.js +8 -0
  288. package/dist/chunks/arcgis_knowledge_lucene_generation_prompt.js +101 -0
  289. package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +48 -0
  290. package/dist/chunks/arcgis_knowledge_tool_prompt.js +34 -0
  291. package/dist/chunks/converterUtils.js +1 -1
  292. package/dist/chunks/dataExplorationGraph.js +289 -0
  293. package/dist/chunks/data_explore_filter_prompt.js +125 -0
  294. package/dist/chunks/data_explore_query_prompt.js +131 -0
  295. package/dist/chunks/embeddings.worker.js +25 -0
  296. package/dist/chunks/field_descriptions_prompt.js +112 -0
  297. package/dist/chunks/generateLayerDescriptions.js +413 -0
  298. package/dist/chunks/graph.js +86 -0
  299. package/dist/chunks/helpGraph.js +123 -0
  300. package/dist/chunks/help_prompt.js +57 -0
  301. package/dist/chunks/intent_prompt.js +124 -0
  302. package/dist/chunks/layerStylingGraph.js +189 -0
  303. package/dist/chunks/layer_descriptions_prompt.js +59 -0
  304. package/dist/chunks/layer_styling_prompt.js +72 -0
  305. package/dist/chunks/navigationGraph.js +266 -0
  306. package/dist/chunks/navigation_intent_prompt.js +46 -0
  307. package/dist/chunks/navigation_tool_prompt.js +39 -0
  308. package/dist/chunks/orchestrator.js +528 -0
  309. package/dist/chunks/runtime.js +2 -2
  310. package/dist/chunks/slottableRequestUtils.js +1 -1
  311. package/dist/chunks/state.js +71 -0
  312. package/dist/chunks/summarize_query_response_prompt.js +77 -0
  313. package/dist/chunks/toolCallResponse.js +29 -0
  314. package/dist/chunks/useT9n.js +1 -1
  315. package/dist/chunks/utils.js +47 -29
  316. package/dist/chunks/utils2.js +42 -7
  317. package/dist/chunks/utils3.js +16 -0
  318. package/dist/components/arcgis-assistant/customElement.d.ts +60 -8
  319. package/dist/components/arcgis-assistant/customElement.js +32 -24
  320. package/dist/components/arcgis-assistant/types.d.ts +1 -1
  321. package/dist/components/arcgis-assistant-agent/customElement.d.ts +1 -1
  322. package/dist/components/arcgis-assistant-agent/customElement.js +2 -2
  323. package/dist/components/arcgis-assistant-chat/customElement.js +1 -1
  324. package/dist/components/arcgis-assistant-chat-entry/customElement.js +1 -1
  325. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +25 -9
  326. package/dist/components/arcgis-assistant-help-agent/customElement.js +28 -9
  327. package/dist/components/arcgis-assistant-interrupt/customElement.js +8 -12
  328. package/dist/components/arcgis-assistant-knowledge-agent/customElement.d.ts +158 -0
  329. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +68 -0
  330. package/dist/components/arcgis-assistant-knowledge-agent/index.d.ts +1 -0
  331. package/dist/components/arcgis-assistant-knowledge-agent/index.js +1 -0
  332. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +28 -9
  333. package/dist/components/arcgis-assistant-message/customElement.js +1 -1
  334. package/dist/components/arcgis-assistant-message-block/customElement.d.ts +1 -1
  335. package/dist/components/arcgis-assistant-message-block/customElement.js +1 -1
  336. package/dist/components/arcgis-assistant-message-feedback/customElement.js +1 -1
  337. package/dist/components/arcgis-assistant-message-footer/customElement.js +1 -1
  338. package/dist/components/arcgis-assistant-message-loading/customElement.js +1 -1
  339. package/dist/components/arcgis-assistant-message-log/customElement.js +1 -1
  340. package/dist/components/arcgis-assistant-message-read-aloud/customElement.js +24 -28
  341. package/dist/components/arcgis-assistant-message-text/customElement.js +1 -1
  342. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +26 -8
  343. package/dist/components/arcgis-assistant-speech-input/customElement.js +1 -1
  344. package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +1 -1
  345. package/dist/components/arcgis-assistant-user-message/customElement.js +1 -1
  346. package/dist/docs/api.json +1 -1
  347. package/dist/docs/docs.json +1 -1
  348. package/dist/docs/vscode.html-custom-data.json +1 -1
  349. package/dist/docs/web-types.json +1 -1
  350. package/dist/index.d.ts +4 -0
  351. package/dist/index.js +1 -1
  352. package/dist/loader.js +2 -1
  353. package/dist/types/lumina.d.ts +6 -1
  354. package/dist/types/preact.d.ts +7 -1
  355. package/dist/types/react.d.ts +8 -1
  356. package/dist/types/stencil.d.ts +6 -1
  357. package/dist/utils/index.d.ts +203 -9
  358. package/dist/utils/index.js +109 -11
  359. package/package.json +26 -11
  360. package/dist/cdn/4CPZZBYD.js +0 -2
  361. package/dist/cdn/5JS65BCP.js +0 -29
  362. package/dist/cdn/7EHQLXMU.js +0 -2
  363. package/dist/cdn/AKOWC7YT.js +0 -18
  364. package/dist/cdn/ARCP5UZY.js +0 -2
  365. package/dist/cdn/B4DEC7PH.js +0 -2
  366. package/dist/cdn/D7WNBUVK.js +0 -106
  367. package/dist/cdn/I2KPFZDL.js +0 -2
  368. package/dist/cdn/KVH3PDVW.js +0 -2
  369. package/dist/cdn/M73KKJSM.js +0 -2
  370. package/dist/cdn/O62HTIOD.js +0 -2
  371. package/dist/cdn/R5FWFRWW.js +0 -2
  372. package/dist/cdn/YW52XJMM.js +0 -396
  373. package/dist/cdn/Z4N6N4OZ.js +0 -271
  374. package/dist/cdn/ZLO73NU6.js +0 -2
  375. package/dist/cdn/ZPNJGIAF.js +0 -2
@@ -0,0 +1,174 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { StateGraph as w, START as y, END as h } from "@langchain/langgraph/web";
3
+ import { a as f, c as x, b as k, d as _, e as b, s as K, q as v, g as p, h as A, t as g, r as M, i as S, G as T, j as u } from "./adapter.js";
4
+ import "@arcgis/core/identity/IdentityManager.js";
5
+ import "@arcgis/core/portal/Portal.js";
6
+ import { j as q, s as c, h as C } from "./generateLayerDescriptions.js";
7
+ import { AIMessage as E } from "@langchain/core/messages";
8
+ import "@langchain/core/callbacks/dispatch/web";
9
+ import "@langchain/openai";
10
+ import "@arcgis/core/core/reactiveUtils.js";
11
+ import "@arcgis/core/layers/FeatureLayer.js";
12
+ import "@arcgis/core/request.js";
13
+ import { ToolNode as G } from "@langchain/langgraph/prebuilt";
14
+ import "@langchain/core/prompts";
15
+ const m = [
16
+ f,
17
+ x,
18
+ k,
19
+ _,
20
+ b,
21
+ K,
22
+ v
23
+ ];
24
+ async function R(e, o) {
25
+ const l = await p("arcgis_knowledge_tool_prompt"), a = A(o), r = {
26
+ assignedTask: e.agentExecutionContext.assignedTask,
27
+ userRequest: e.agentExecutionContext.userRequest,
28
+ priorSteps: e.agentExecutionContext.priorSteps,
29
+ contextType: a
30
+ }, n = await q({
31
+ promptText: l,
32
+ messages: e.arcgisKnowledgeMessages,
33
+ inputVariables: r,
34
+ tools: m
35
+ }), t = (n.tool_calls?.length ?? 0) > 0, s = typeof n.text == "string" ? n.text.trim() : "", i = s.length > 0, d = n.content.toString();
36
+ return !t && (a === "map" || a === "knowledgeGraph") ? {
37
+ ...e,
38
+ arcgisKnowledgeMessages: [...e.arcgisKnowledgeMessages, n],
39
+ outputMessage: a === "map" ? "No tools were found for the current view and prompt. Maps do not support changing nonspatial visibility, layout changes, or generation from queries." : "No tools were found for the current prompt and knowledge graph service. A knowledge graph service only supports search and query.",
40
+ status: "success"
41
+ } : {
42
+ ...e,
43
+ arcgisKnowledgeMessages: [...e.arcgisKnowledgeMessages, n],
44
+ outputMessage: t ? d : s,
45
+ status: t ? e.status : i ? "success" : "failed",
46
+ summary: d ? g(d) : "ArcGIS Knowledge Agent tool executed."
47
+ };
48
+ }
49
+ async function N(e, o) {
50
+ const l = new G(m);
51
+ try {
52
+ const a = await l.invoke(
53
+ {
54
+ messages: e.arcgisKnowledgeMessages
55
+ },
56
+ o
57
+ ), r = [];
58
+ for (const t of a.messages) {
59
+ let s;
60
+ if (typeof t.content != "string")
61
+ throw new Error(`Unexpected tool message content type: ${typeof t.content}. Expected string.`);
62
+ try {
63
+ s = JSON.parse(t.content);
64
+ } catch {
65
+ throw new Error(`Failed to parse tool message content as JSON. Tool: ${t.name ?? "unknown"}`);
66
+ }
67
+ if (!s || typeof s != "object" || !("toolName" in s))
68
+ throw new Error(
69
+ `Parsed tool message content does not have expected structure. Parsed content: ${JSON.stringify(s)}`
70
+ );
71
+ r.push(s);
72
+ }
73
+ await c(
74
+ {
75
+ text: `Finished executing ArcGIS Knowledge Agent tools: ${a.messages.filter((t) => t.name).map((t) => t.name).join(", ")}`
76
+ },
77
+ o
78
+ );
79
+ const n = r.filter((t) => typeof t != "string").map((t) => `- Called Tool: ${t.toolName}, Status: ${t.status}`);
80
+ return {
81
+ ...e,
82
+ outputMessage: n.join(`
83
+ `),
84
+ summary: n.length ? g(n.join(`
85
+ `)) : "ArcGIS Knowledge Agent did not execute any tools or return any results.",
86
+ arcgisKnowledgeMessages: [...e.arcgisKnowledgeMessages, ...a.messages],
87
+ arcgisKnowledgeToolResult: r
88
+ };
89
+ } catch (a) {
90
+ const r = a instanceof Error ? a.message : String(a);
91
+ return await c({ text: `ArcGIS Knowledge Agent tool execution failed: ${r}` }, o), {
92
+ ...e,
93
+ outputMessage: `ArcGIS Knowledge Agent tool execution failed: ${r}`,
94
+ status: "failed",
95
+ summary: `ArcGIS Knowledge Agent tool execution failed: ${r}`,
96
+ arcgisKnowledgeMessages: [...e.arcgisKnowledgeMessages]
97
+ };
98
+ }
99
+ }
100
+ const L = (e, o) => (
101
+ //agent services (ex: embeddingsWorker) would go in the array below, if required.
102
+ M([], "ArcgisKnowledge Agent")(e, o)
103
+ );
104
+ async function z(e, o) {
105
+ const a = (e.arcgisKnowledgeToolResult ?? []).map((d) => ({
106
+ ...d,
107
+ details: void 0
108
+ // Remove details to avoid overwhelming the LLM with too much info
109
+ })), { knowledgeGraph: r } = await S(o), n = T.getDataModelTypesSummary(r.dataModel), t = {
110
+ assignedTask: e.agentExecutionContext.assignedTask,
111
+ userRequest: e.agentExecutionContext.userRequest,
112
+ toolResult: a,
113
+ dataModelSummary: n
114
+ }, s = await C({
115
+ promptText: await p("arcgis_knowledge_summarize_result_prompt"),
116
+ modelTier: "default",
117
+ inputVariables: t
118
+ }), i = typeof s == "string" ? s : s.content;
119
+ return {
120
+ ...e,
121
+ outputMessage: i,
122
+ status: "success",
123
+ summary: g(i),
124
+ arcgisKnowledgeMessages: [...e.arcgisKnowledgeMessages, new E(i)]
125
+ };
126
+ }
127
+ const D = () => new w(u).addNode("requireArcgisKnowledgeServices", L).addNode("agent", R).addNode("tools", N).addNode("summarizationLLM", z).addEdge(y, "requireArcgisKnowledgeServices").addEdge("requireArcgisKnowledgeServices", "agent").addConditionalEdges("agent", (o) => (o.arcgisKnowledgeMessages[o.arcgisKnowledgeMessages.length - 1]?.tool_calls?.length ?? 0) > 0 ? "tools" : h).addConditionalEdges("tools", (o) => o.status === "failed" ? h : "summarizationLLM").addEdge("summarizationLLM", h), F = String.raw`The purpose of this agent is to work with Knowledge Graph data, a graph database technology that represents and stores data as interconnected entities (nodes) and relationships (edges).
128
+ This agent has two categories of skills: those that work with an active link chart visualization of a subset of the data in the knowledge graph, and those that work with the knowledge graph data more generally against the entire dataset in the service and database.
129
+ For link charts, the agent enables users to interact with a link chart by adding new entities (also called nodes) or relationships (also called edges), removing existing entities or relationships,
130
+ expanding the graph from particular entities, finding relationships between specified entities on the link chart and adding them to the link chart, finding all relationships
131
+ that exist out from specified entities and adding those to the link chart, changing whether or not nonspatial data is visible, or changing the layout of the link chart.
132
+ This agent is designed to handle requests that manipulate the specific link chart.
133
+ For knowledge graph data more generally, the agent can generate Open Cypher queries based on user prompts that represent inquiries into the data of the knowledge service and its graph database,
134
+ and can alternatively use those queries to create a new link chart visualization from the results if requested.
135
+
136
+ Supported actions:
137
+ - **Change or Apply Layout**: Changes the current layout visualization strategy of the link chart (e.g., "Change the layout to basic-grid", "Apply hierarchical layout"). Valid layout types include organic-standard, organic-community, basic-grid, hierarchical-bottom-to-top, radial-root-centric, tree-left-to-right, geographic-organic-standard, chronological-mono-timeline. A best effort should be made to transform the user's request into one of these layout types.
138
+ - **Change Nonspatial Data Visibility**: Changes whether or not nonspatial data is visible on the link chart (e.g., "Show nonspatial data", "Hide nonspatial data"). Valid settings are "hidden" and "visible". A best effort should be made to transform the user's request into one of these settings.
139
+ - **Generate a cypher query**: Generates an Open Cypher query based on the user's prompt which represents an inquiry into the data of the knowledge service and its graph database, attempting to filter based on certain conditions and traverse specified relationships. The generated query should be syntactically correct and optimized for performance. The user should explicitly request that a cypher query be returned - if they do not, the purpose of the query is for one of the other tools or skills.
140
+ - **Create a New Link Chart from a user prompt**: Identifies that the users prompt is an inquiry into the data of the knowledge service and its graph database and creates a new link chart from the results. The user should have requested that a link chart be created or made(or similar term) from their prompt
141
+ - **Add Records (entities or relationships)**: Identifies that the users prompt is an inquiry into the data of the knowledge graph service and its graph database, and that the user wants to take the result of the inquiry and add those entities and/or relationships to the link chart. The generated query should be syntactically correct and optimized for performance.
142
+ - **Search Graph Data**: Generates and runs a lucene syntax query based on the user's prompt, returning matching entity and relationship records from the knowledge graph.
143
+ - **Query Graph Data**: Generates and executes a cypher query based on the user's prompt, and displays the results in the chat pane, allowing the user to explore the data in their knowledge graph.
144
+
145
+ _example: "Change the layout to hierarchical-bottom-to-top"_
146
+ _example: "Apply radial-root-centric layout"_
147
+ _example: "Show nonspatial data"_
148
+ _example: "Hide nonspatial data"_
149
+ _example: "Turn off nonspatial visibility"_
150
+ _example: "Generate a cypher query to find all entities connected to 'Entity A' via 'Relationship X' that were created after 2020"_
151
+ _example: "Generate a query to find all employees of Company Esri who joined after 2015 and are located in California"_
152
+ _example: "Tell me how to find all products supplied by Supplier Y that have a price greater than $1000"_
153
+ _example: "Create a new link chart showing all entities related to 'Entity B' through 'Relationship Y'"_
154
+ _example: "Find all people who work for Microsoft and put them on a new link chart"_
155
+ _example: "Add all entities connected to 'Entity C' via 'Relationship Z' to the current link chart"_
156
+ _example: "Add all the people who work for Esri to the current link chart, and all the cars that they drive"_
157
+ _example: "Find all the products supplied by Supplier X and add them to my visualization"_
158
+ _example: "Expand the link chart from 'Entity D' to show its direct connections"_
159
+ _example: "Find all the cars and then add everything up to two hops away from them on the link chart"_
160
+ _example: "Connect Emma and Rob on the link chart if there is a relationship between them"
161
+ _example: "Discover and add all the relationships originating at 'Entity E' to the link chart"_
162
+ _example: "Show me all entities with a name similar to 'Smith' and add them to the link chart"_
163
+ _example: "Find reports in my graph that have a title similar to 'Quarterly Earnings'"_
164
+ _example: "Find John Smith and all people he has made phone calls to in the last year"_
165
+ _example: "What is the average age of all people who work for Esri?"_`, W = {
166
+ id: "arcgisKnowledge",
167
+ name: "ArcgisKnowledge Agent",
168
+ description: F,
169
+ createGraph: D,
170
+ workspace: u
171
+ };
172
+ export {
173
+ W as A
174
+ };
@@ -0,0 +1,8 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ const e = `## Additional System Context
3
+
4
+ In addition to the user's inquiry prompt that precedes this system context, the current link chart has entities and relationships on it already, in the format of an array of objects containing identifiers and typeNames, in case this is needed for query generation (for example 'Add all records that are connected to people on this link chart to the link chart'). If the user is asking for a query that acts on 'the current link chart', 'my link chart', or similar then the cypher query should be filtered by the ids. For example, 'Match (n:Person)-[\\r]->(m) WHERE id(n) IN [\\'identifier1','identifier2'] return r, m. Curly braces (the '{' and '}' characters) are often part of identifier strings and should not be stripped out - the process of filtering by ids should not be altering the id strings. The entities and relationships that are on the current link chart are as follows:
5
+ `;
6
+ export {
7
+ e as default
8
+ };
@@ -0,0 +1,8 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ const e = `## Additional System Context
3
+
4
+ In addition to the user's inquiry prompt that precedes this system context, the current map has entities and relationships on it already, in the format of an array of objects containing identifiers and typeNames or type names that contain all entities or relationships of that type, in case this is needed for query generation (for example 'Add all records that are connected to people on this map to the map'). If the user is asking for a query that acts on 'the current map', 'my map', or similar then the cypher query should be filtered by the ids. For example, 'Match (n:Person)-[\\r]->(m) WHERE id(n) IN [\\'identifier1','identifier2'] return r, m. Curly braces (the '{' and '}' characters) are often part of identifier strings and should not be stripped out - the process of filtering by ids should not be altering the id strings. The entities and relationships that are on the current map are as follows:
5
+ `;
6
+ export {
7
+ e as default
8
+ };
@@ -0,0 +1,101 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ const e = `## ArcgisKnowledge Agent - Lucene Generation for Graph Search
3
+
4
+ You are an assistant that generates a lucene query for graph query searching.
5
+
6
+ The knowledge graph you will be searching has the following named types, and next to each named type is a list of its searchable text fields corresponding to graph properties.
7
+
8
+ The search model data below is structured as follows:
9
+ <TYPE_NAME> - [array, of, searchable, field, names]
10
+
11
+ {dataModelForSearch}
12
+
13
+ The user is trying to answer the following inquiry via text search:
14
+ {inquiry}
15
+
16
+ Return a lucene search query that will answer the user's inquiry. The generated response should be an object with the following properties:
17
+
18
+ - \`query\` - string - the generated lucene query expression that answers the user's inquiry.
19
+ - \`typeFilters\` - array of strings - restricts the search to only use the named types specified. If the search should not be restricted to specific named types, return null.
20
+ - \`typeCategoryFilter\` - either 'entity', 'relationship' or 'both' - determines whether search should be limited to only entity or relationship types, or to search both. Generally should be set to 'entity' unless the user specifies they want to search both record types or specifically mentions relationships or refers to relationship types in their inquiry. If 'entity' is selected, then no relationship types should be included in \`typeFilters\` and vice-versa.
21
+ - \`resultLimit\` - number (min 1) or null - the max number of search results to return. Set to 10 unless the user specifies they want a specific number of results returned. If the user specifically requests all search results to be returned or that the results should not be limited, return null.
22
+
23
+ Additional rules for the generated arguments:
24
+
25
+ - Only include specific search fields in the lucene query expression if the user inquiry specifies specific fields or properties, and the fields are present in the searchable field list of the corresponding named type shown above, otherwise search across all fields.
26
+ - If the user's inquiry is specific to certain entity or relationship types in the graph, then return those types as the \`typeFilters\` property. Do not attempt to use search fields for this purpose. If no specific type filtering is requested or needed, then return null for this property.
27
+ - Regular expressions are not supported in the lucene search syntax, so do not include such queries in the \`query\` property.
28
+
29
+ **START EXAMPLE**
30
+
31
+ ### Example searchable property data:
32
+
33
+ Entity Types:
34
+ Author - [name, title]
35
+ Report - [organization, summary, full_text, tags]
36
+
37
+ Relationship Types:
38
+ authored - [contribution_type]
39
+
40
+ Searchable fields per type:
41
+
42
+ Author:
43
+ name
44
+ title
45
+
46
+ Report:
47
+ organization
48
+ summary
49
+ full_text
50
+ tags
51
+
52
+ authored:
53
+ contributionType
54
+
55
+ ### User Inquiry 1:
56
+
57
+ Find the first 5 reports where summary mentions flood zoning near Sacramento, and the organization name is close to City of Sacramento Utilities, and tags containing stormwater.
58
+
59
+ ### Example generated query arguments 1:
60
+
61
+ query: 'summary:"flood zoning" AND summary:Sacramento AND organization:"City of Sacramento Utilities"~2 AND tags:stormwater'
62
+
63
+ typeFilters: ['Report']
64
+
65
+ typeCategoryFilter: "entity"
66
+
67
+ resultLimit: 5
68
+
69
+ ### User Inquiry 2:
70
+
71
+ Find entities containing text like 'City of Sacramento Utilities'
72
+
73
+ ### Example generated query arguments 2:
74
+
75
+ query: '"City of Sacramento Utilities"~2'
76
+
77
+ typeFilters: null
78
+
79
+ typeCategoryFilter: "entity"
80
+
81
+ resultLimit: 10
82
+
83
+ ### User Inquiry 3:
84
+
85
+ Find all reports authored by someone with the title of 'Researcher'
86
+
87
+ ### Example generated query arguments 3:
88
+
89
+ query: 'title:"Researcher"'
90
+
91
+ typeFilters: ['Author']
92
+
93
+ typeCategoryFilter: "entity"
94
+
95
+ resultLimit: null
96
+
97
+ **END EXAMPLE**
98
+ `;
99
+ export {
100
+ e as default
101
+ };
@@ -0,0 +1,48 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ const e = `## ArcgisKnowledge Agent - Action Summary
3
+
4
+ You are a helpful Knowledge Graph assistant agent that has received a user inquiry and performed some tool call actions to answer their question or perform the desired operation.
5
+
6
+ The knowledge graph you are working with has the following data model:
7
+
8
+ {dataModelSummary}
9
+
10
+ ## User Input:
11
+
12
+ Assigned task:
13
+ {assignedTask}
14
+
15
+ Latest user request:
16
+ {userRequest}
17
+
18
+ ## Tool Call Result:
19
+
20
+ {toolResult}
21
+
22
+ ## Your Goal:
23
+
24
+ Based on the user request and tool call result above, generate a concise response that answers their question fully.
25
+
26
+ If the above tool calls do not provide the information required to answer the users question, state this, and do not speculate.
27
+
28
+ The general format for the summary should be (paragraphs of content separated by new lines, not bullet points):
29
+
30
+ - A short, easy to read summary of the results and answer to the users inquiry, in the form of a concise 1-3 sentence summary. This can include the tool called and a brief summary of its settings. For multiple or complex settings (e.g. cypher or search query), these should instead be displayed in the code block below. It should always include any limitations in the results that the user should be aware of.
31
+ - _Optional_ - Code block containing tool settings / query or search used etc for tool calls with multiple or complex settings
32
+ - _Optional_ - Markdown table of query or search results preview if these tools were used, and this is appropriate to answer the user's question. Ensure long property values are truncated to short lengths (20 chars) in the table if not directly relevant to the user's query. Do not re-order data in the table. If a query or search of graph data was done, this should be displayed.
33
+ - _Important_ If the summary or markdown table was generated based on data where only a limited preview of the full results of e.g. a search/query was available, indicate this at the end of the summary in a separate paragraph in italics, along the lines of 'NOTE: This summary was generated from a limited preview of the search / query results, and may not be accurate.'
34
+
35
+ ### STRICT OUTPUT RULES
36
+
37
+ - Do NOT ask follow-up questions.
38
+ - Do NOT offer additional actions or suggestions.
39
+ - Do NOT explain what you can do next.
40
+ - End the response immediately after the summary.
41
+ - Do NOT include introductory phrases (e.g., "Found", "Here are", "The results show").
42
+ - Do NOT restate the assigned task or user’s question.
43
+ - Use Markdown formatting for the response, formatting in a way that makes the summary easy to read.
44
+ - When presenting tabular data, output a valid Markdown table.
45
+ `;
46
+ export {
47
+ e as default
48
+ };
@@ -0,0 +1,34 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ const e = `# ArcgisKnowledge Tool Instructions
3
+
4
+ You are an assistant that helps users answer questions and perform operations on their knowledge graph, map or link chart. You have been assigned the task below, which must be achieved by calling a single tool.
5
+
6
+ ## Task Details:
7
+
8
+ Assigned task:
9
+ {assignedTask}
10
+
11
+ User Request:
12
+ {userRequest}
13
+
14
+ Prior steps:
15
+ {priorSteps}
16
+
17
+ Context type:
18
+ {contextType}
19
+
20
+ ## Rules:
21
+
22
+ 1. Use the provided context type above for the following rule. If the context type is a map, you may never call any of the following arcgisKnowledge tools: changeNonspatialVisibility, applyLayout, createLinkChart.
23
+
24
+ 2. Use the provided context type above for the following rule. If the context type is a knowledgeGraph, you may never call any of the following arcgisKnowledge tools: changeNonspatialVisibility, applyLayout, createLinkChart, addRecords.
25
+
26
+ 3. If no tools apply to the assigned task, return zero tool calls and an empty message.
27
+
28
+ 4. If a tool is found for the assigned task, call exactly one arcgisKnowledge tool, with the appropriate arguments given the assigned task. Use the provided user request or prior steps only if needed for context based on the assigned task.
29
+
30
+ 5. CRITICAL: You are FORBIDDEN from making multiple tool calls. You MUST make exactly ONE tool call or ZERO tool calls.
31
+ `;
32
+ export {
33
+ e as default
34
+ };
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import g from "@esri/arcgis-html-sanitizer";
3
3
  import { marked as S } from "marked";
4
4
  S.use({