@arcgis/ai-components 5.2.0-next.1 → 5.2.0-next.100

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 (325) hide show
  1. package/LICENSE.md +4 -2
  2. package/README.md +2 -2
  3. package/dist/agent-utils/FunctionAgent.d.ts +2 -2
  4. package/dist/agent-utils/LLMAgent.d.ts +7 -4
  5. package/dist/agent-utils/LLMAgent.js +26 -24
  6. package/dist/agent-utils/WorkflowAgent.d.ts +2 -2
  7. package/dist/agent-utils/WorkflowAgent.js +14 -15
  8. package/dist/agent-utils/index.d.ts +177 -0
  9. package/dist/agent-utils/index.js +167 -0
  10. package/dist/agent-utils/middlewares/trace.d.ts +2 -0
  11. package/dist/agent-utils/middlewares/trace.js +25 -33
  12. package/dist/agent-utils/tools/FunctionTool.d.ts +2 -2
  13. package/dist/agent-utils/types.d.ts +37 -8
  14. package/dist/agent-utils/workflows/ConditionalWorkflow.d.ts +2 -2
  15. package/dist/agent-utils/workflows/LoopWorkflow.d.ts +2 -2
  16. package/dist/agent-utils/workflows/ParallelWorkflow.d.ts +2 -2
  17. package/dist/agent-utils/workflows/RouterWorkflow.d.ts +2 -2
  18. package/dist/agent-utils/workflows/SequentialWorkflow.d.ts +2 -2
  19. package/dist/agent-utils/workflows/SwitchWorkflow.d.ts +2 -2
  20. package/dist/agentic-workflow/AgenticWorkflowRuntime.d.ts +24 -0
  21. package/dist/agentic-workflow/Edge.d.ts +16 -0
  22. package/dist/agentic-workflow/WebAgent.d.ts +39 -0
  23. package/dist/agentic-workflow/jsonTypes.d.ts +189 -0
  24. package/dist/agentic-workflow/nodes/AgentNode.d.ts +28 -0
  25. package/dist/agentic-workflow/nodes/BaseNode.d.ts +35 -0
  26. package/dist/agentic-workflow/nodes/EndMessageNode.d.ts +25 -0
  27. package/dist/agentic-workflow/nodes/StartNode.d.ts +21 -0
  28. package/dist/agentic-workflow/nodes/tools/ArcgisTool.d.ts +21 -0
  29. package/dist/agentic-workflow/types.d.ts +29 -0
  30. package/dist/agents/tools/filter/clearFilters/adapter.d.ts +8 -0
  31. package/dist/agents/tools/filter/clearFilters/adapter.js +22 -0
  32. package/dist/agents/tools/filter/resetMap/adapter.d.ts +8 -0
  33. package/dist/agents/tools/filter/resetMap/adapter.js +22 -0
  34. package/dist/agents/tools/filter/setFeatureEffect/adapter.d.ts +8 -0
  35. package/dist/agents/tools/filter/setFeatureEffect/adapter.js +121 -0
  36. package/dist/agents/tools/help/listFields/adapter.d.ts +11 -0
  37. package/dist/agents/tools/help/listFields/adapter.js +30 -0
  38. package/dist/agents/tools/navigation/goToAddress/adapter.d.ts +10 -0
  39. package/dist/agents/tools/navigation/goToAddress/adapter.js +60 -0
  40. package/dist/agents/tools/navigation/goToBookmark/adapter.d.ts +8 -0
  41. package/dist/agents/tools/navigation/goToBookmark/adapter.js +30 -0
  42. package/dist/agents/tools/navigation/goToFeatures/adapter.d.ts +8 -0
  43. package/dist/agents/tools/navigation/goToFeatures/adapter.js +50 -0
  44. package/dist/agents/tools/navigation/goToFullExtent/adapter.d.ts +8 -0
  45. package/dist/agents/tools/navigation/goToFullExtent/adapter.js +27 -0
  46. package/dist/agents/tools/navigation/goToHomeExtent/adapter.d.ts +8 -0
  47. package/dist/agents/tools/navigation/goToHomeExtent/adapter.js +24 -0
  48. package/dist/agents/tools/navigation/goToLayer/adapter.d.ts +8 -0
  49. package/dist/agents/tools/navigation/goToLayer/adapter.js +26 -0
  50. package/dist/agents/tools/navigation/goToScale/adapter.d.ts +8 -0
  51. package/dist/agents/tools/navigation/goToScale/adapter.js +21 -0
  52. package/dist/agents/tools/navigation/goToViewpoint/adapter.d.ts +8 -0
  53. package/dist/agents/tools/navigation/goToViewpoint/adapter.js +42 -0
  54. package/dist/agents/tools/navigation/goToZoom/adapter.d.ts +8 -0
  55. package/dist/agents/tools/navigation/goToZoom/adapter.js +21 -0
  56. package/dist/agents/tools/query/getAttribute/adapter.d.ts +8 -0
  57. package/dist/agents/tools/query/getAttribute/adapter.js +40 -0
  58. package/dist/agents/tools/query/getStatistics/adapter.d.ts +8 -0
  59. package/dist/agents/tools/query/getStatistics/adapter.js +157 -0
  60. package/dist/agents/tools/query/getTopFeatures/adapter.d.ts +8 -0
  61. package/dist/agents/tools/query/getTopFeatures/adapter.js +144 -0
  62. package/dist/agents/tools/query/queryFeatures/adapter.d.ts +8 -0
  63. package/dist/agents/tools/query/queryFeatures/adapter.js +130 -0
  64. package/dist/agents/tools/search/findRelevantFields/adapter.d.ts +8 -0
  65. package/dist/agents/tools/search/findRelevantFields/adapter.js +57 -0
  66. package/dist/agents/tools/search/findRelevantLayers/adapter.d.ts +8 -0
  67. package/dist/agents/tools/search/findRelevantLayers/adapter.js +38 -0
  68. package/dist/cdn/22KHSDJI.js +2 -0
  69. package/dist/cdn/2EY3BQQX.js +2 -0
  70. package/dist/cdn/2O4DON37.js +2 -0
  71. package/dist/cdn/34O57OGV.js +2 -0
  72. package/dist/cdn/{AMP6IALT.js → 3UEKINYC.js} +1 -1
  73. package/dist/cdn/434TAA3J.js +2 -0
  74. package/dist/cdn/4OGR5QKS.js +2 -0
  75. package/dist/cdn/5FL5BTTX.js +66 -0
  76. package/dist/cdn/5HBAJ57P.js +2 -0
  77. package/dist/cdn/5K5ZY267.js +2 -0
  78. package/dist/cdn/5MK44FNO.js +2 -0
  79. package/dist/cdn/5WYRJMBW.js +2 -0
  80. package/dist/cdn/5X7EG7D2.js +2 -0
  81. package/dist/cdn/5XZLS7UO.js +2 -0
  82. package/dist/cdn/5ZFUGNRN.js +2 -0
  83. package/dist/cdn/655YIKL3.js +11 -0
  84. package/dist/cdn/6ECRQVHY.js +2 -0
  85. package/dist/cdn/6OOZSZRJ.js +2 -0
  86. package/dist/cdn/{3PKJWIC3.js → 6P44KOKX.js} +1 -1
  87. package/dist/cdn/6YYPVU7H.js +3 -0
  88. package/dist/cdn/7BCQMK6D.js +2 -0
  89. package/dist/cdn/7SRLZQVC.js +5 -0
  90. package/dist/cdn/7V6OSTFC.js +2 -0
  91. package/dist/cdn/7VAQUCBU.js +9 -0
  92. package/dist/cdn/7VUSIGEM.js +2 -0
  93. package/dist/cdn/ACJTJLZN.js +2 -0
  94. package/dist/cdn/AI6DYOKR.js +181 -0
  95. package/dist/cdn/AKD5UOVX.js +2 -0
  96. package/dist/cdn/ANRQWYU2.js +2 -0
  97. package/dist/cdn/{ZS2TZ6BF.js → AOVJ34QE.js} +1 -1
  98. package/dist/cdn/APFZY4PI.js +2 -0
  99. package/dist/cdn/B2JDVLA6.js +2 -0
  100. package/dist/cdn/BE7BRJZD.js +2 -0
  101. package/dist/cdn/{FL4W4VYN.js → BL273EGZ.js} +17 -1
  102. package/dist/cdn/C4FEETBZ.js +2 -0
  103. package/dist/cdn/C4JT4S5E.js +2 -0
  104. package/dist/cdn/CCC6LBMY.js +2 -0
  105. package/dist/cdn/{5ZZGKP7N.js → CEKOEHB3.js} +1 -1
  106. package/dist/cdn/CJMUJXPL.js +2 -0
  107. package/dist/cdn/COH3QXWG.js +4 -0
  108. package/dist/cdn/CP5BVGJU.js +2 -0
  109. package/dist/cdn/D5UFYQHN.js +44 -0
  110. package/dist/cdn/EWLXNGKH.js +208 -0
  111. package/dist/cdn/EYOWRGDP.js +2 -0
  112. package/dist/cdn/F5NIRETW.js +2 -0
  113. package/dist/cdn/FDOMMK2M.js +2 -0
  114. package/dist/cdn/FG647IP6.js +2 -0
  115. package/dist/cdn/FJO4KNOZ.js +2 -0
  116. package/dist/cdn/FUF3NAU7.js +2 -0
  117. package/dist/cdn/FXP5UIQU.js +156 -0
  118. package/dist/cdn/{ZLXN7NMF.js → FYZATVB3.js} +10 -8
  119. package/dist/cdn/G2EGT3CF.js +6 -0
  120. package/dist/cdn/G3SF6U2U.js +2 -0
  121. package/dist/cdn/G7OMHU2B.js +2 -0
  122. package/dist/cdn/HAEFC2SJ.js +2 -0
  123. package/dist/cdn/HDACNIZF.js +2 -0
  124. package/dist/cdn/HHFNQR6Z.js +2 -0
  125. package/dist/cdn/HHUQXL3R.js +2 -0
  126. package/dist/cdn/IBZ2NEAO.js +2 -0
  127. package/dist/cdn/{FX7UOGHP.js → ICBIUFK7.js} +1 -1
  128. package/dist/cdn/ICQCK5D3.js +2 -0
  129. package/dist/cdn/IHP25JWI.js +99 -0
  130. package/dist/cdn/IJVMUS2L.js +14 -0
  131. package/dist/cdn/J6A4AS7E.js +22 -0
  132. package/dist/cdn/J6SZIQJA.js +2 -0
  133. package/dist/cdn/JCOA24UH.js +3 -0
  134. package/dist/cdn/{NE7E52YR.js → JEBRN3EU.js} +9 -3
  135. package/dist/cdn/JO5ETMPS.js +2 -0
  136. package/dist/cdn/K2R6XVK3.js +2 -0
  137. package/dist/cdn/KITIP6J2.js +2 -0
  138. package/dist/cdn/KWD2ECTM.js +2 -0
  139. package/dist/cdn/{4HU7735A.js → LAYVGCPL.js} +6 -4
  140. package/dist/cdn/{7RCQFLPP.js → LK7ZIQW6.js} +1 -1
  141. package/dist/cdn/LLUGJKAQ.js +2 -0
  142. package/dist/cdn/MWYBF3F3.js +66 -0
  143. package/dist/cdn/{V2P4AIGG.js → MXTXJKFE.js} +1 -1
  144. package/dist/cdn/MY47B3CE.js +3 -0
  145. package/dist/cdn/NEV6OZN3.js +71 -0
  146. package/dist/cdn/NNXISHCA.js +14 -0
  147. package/dist/cdn/NZSOJ726.js +2 -0
  148. package/dist/cdn/O4NVW75A.js +2 -0
  149. package/dist/cdn/OE3GW5LE.js +2 -0
  150. package/dist/cdn/{23EQTPO3.js → OKVLGJAG.js} +1 -1
  151. package/dist/cdn/ONQ6JSBJ.js +2 -0
  152. package/dist/cdn/OX64WOEL.js +22 -0
  153. package/dist/cdn/{LQ6R5YRN.js → PQ2DPOFM.js} +1 -1
  154. package/dist/cdn/PUHRBGKB.js +2 -0
  155. package/dist/cdn/Q57QWN5W.js +2 -0
  156. package/dist/cdn/QUKNPVAF.js +2 -0
  157. package/dist/cdn/R2PQVY4O.js +2 -0
  158. package/dist/cdn/R74ZHFA6.js +2 -0
  159. package/dist/cdn/RBE55SWR.js +2 -0
  160. package/dist/cdn/RHYNE5OE.js +2 -0
  161. package/dist/cdn/RLEHNAIA.js +2 -0
  162. package/dist/cdn/RVSTAUQS.js +2 -0
  163. package/dist/cdn/{X2ZDYHCG.js → SDWWUWAF.js} +10 -5
  164. package/dist/cdn/SXM4NUT5.js +2 -0
  165. package/dist/cdn/SZ2QSSB3.js +2 -0
  166. package/dist/cdn/T4RIGOXB.js +2 -0
  167. package/dist/cdn/TCH5I5LS.js +2 -0
  168. package/dist/cdn/TEPP7YPR.js +2 -0
  169. package/dist/cdn/TMVF2W5N.js +36 -0
  170. package/dist/cdn/TPULIO6I.js +34 -0
  171. package/dist/cdn/UDRKUVZP.js +2 -0
  172. package/dist/cdn/{6YMR4QSD.js → UHEYPSOR.js} +1 -1
  173. package/dist/cdn/UHNVDALX.js +18 -0
  174. package/dist/cdn/UZLQALHY.js +2 -0
  175. package/dist/cdn/V6HOUZPZ.js +2 -0
  176. package/dist/cdn/VAXH6RUQ.js +134 -0
  177. package/dist/cdn/VLLZ2FFU.js +2 -0
  178. package/dist/cdn/VOKXKU7M.js +56 -0
  179. package/dist/cdn/VXFQANGJ.js +2 -0
  180. package/dist/cdn/WGO5SER7.js +6 -0
  181. package/dist/cdn/WJXXOKGA.js +9 -0
  182. package/dist/cdn/WKTQVBFJ.js +2 -0
  183. package/dist/cdn/{DHOVCT6R.js → WSWB3B7B.js} +1 -1
  184. package/dist/cdn/XX6GHMNR.js +2 -0
  185. package/dist/cdn/Y7XD7ZRD.js +2 -0
  186. package/dist/cdn/YEZ3AMNX.js +2 -0
  187. package/dist/cdn/YLVJA4ZE.js +2 -0
  188. package/dist/cdn/Z5HWPSZN.js +2 -0
  189. package/dist/cdn/Z5W4V7RC.js +2 -0
  190. package/dist/cdn/ZDV4K4WG.js +2 -0
  191. package/dist/cdn/ZOEMBHRF.js +2 -0
  192. package/dist/cdn/ZRVZMPFN.js +2 -0
  193. package/dist/cdn/{ZTBA5PM7.js → ZU2FHVNK.js} +1 -1
  194. package/dist/cdn/agent-utils/index.js +2 -0
  195. package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +3 -0
  196. package/dist/cdn/agent-utils/middlewares/middleware.js +2 -0
  197. package/dist/cdn/agent-utils/middlewares/trace.js +2 -0
  198. package/dist/cdn/assets/assistant/t9n/messages.en.json +1 -1
  199. package/dist/cdn/assets/assistant-interrupt/t9n/messages.en.json +1 -1
  200. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.en.json +1 -0
  201. package/dist/cdn/assets/assistant-message/t9n/messages.en.json +1 -0
  202. package/dist/cdn/assets/assistant-message-loading/t9n/messages.en.json +1 -0
  203. package/dist/cdn/index.js +1 -1
  204. package/dist/cdn/main.css +1 -1
  205. package/dist/chunks/adapter.js +1299 -2113
  206. package/dist/chunks/arcgisKnowledgeGraph.js +128 -72
  207. package/dist/chunks/arcgis_knowledge_current_lc_context.js +19 -2
  208. package/dist/chunks/arcgis_knowledge_current_map_context.js +31 -2
  209. package/dist/chunks/arcgis_knowledge_cypher_query_prompt.js +102 -0
  210. package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +116 -27
  211. package/dist/chunks/baseAgentState.js +58 -0
  212. package/dist/chunks/converterUtils.js +66 -41
  213. package/dist/chunks/dataExplorationGraph.js +135 -179
  214. package/dist/chunks/data_explore_query_prompt.js +9 -4
  215. package/dist/chunks/fetchAgentContext.js +13 -0
  216. package/dist/chunks/fetchService.js +10 -0
  217. package/dist/chunks/fieldStatistics.js +79 -0
  218. package/dist/chunks/formatFeatureAttributes.js +132 -0
  219. package/dist/chunks/generateLayerDescriptions.js +250 -246
  220. package/dist/chunks/helpGraph.js +35 -25
  221. package/dist/chunks/help_prompt.js +34 -17
  222. package/dist/chunks/index.js +11 -0
  223. package/dist/chunks/intent_prompt.js +16 -0
  224. package/dist/chunks/layerStylingGraph.js +37 -31
  225. package/dist/chunks/mergeWhereClauses.js +15 -0
  226. package/dist/chunks/navigationGraph.js +135 -111
  227. package/dist/chunks/navigation_intent_prompt.js +8 -2
  228. package/dist/chunks/orchestrator.js +530 -280
  229. package/dist/chunks/resolvePointGeometryFilter.js +92 -0
  230. package/dist/chunks/slottableRequestUtils.js +3 -7
  231. package/dist/chunks/state.js +21 -27
  232. package/dist/chunks/summarize_query_response_prompt.js +9 -7
  233. package/dist/chunks/toolCallResponse.js +14 -10
  234. package/dist/chunks/utils2.js +11 -11
  235. package/dist/components/arcgis-assistant/customElement.d.ts +96 -0
  236. package/dist/components/arcgis-assistant/customElement.js +398 -149
  237. package/dist/components/arcgis-assistant/index.js +2 -3
  238. package/dist/components/arcgis-assistant/types.d.ts +14 -1
  239. package/dist/components/arcgis-assistant-agent/customElement.d.ts +13 -1
  240. package/dist/components/arcgis-assistant-agent/customElement.js +614 -10
  241. package/dist/components/arcgis-assistant-chat/customElement.d.ts +8 -2
  242. package/dist/components/arcgis-assistant-chat/customElement.js +23 -18
  243. package/dist/components/arcgis-assistant-chat-entry/customElement.d.ts +4 -1
  244. package/dist/components/arcgis-assistant-chat-entry/customElement.js +25 -18
  245. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +20 -4
  246. package/dist/components/arcgis-assistant-help-agent/customElement.js +29 -7
  247. package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +8 -1
  248. package/dist/components/arcgis-assistant-interrupt/customElement.js +17 -14
  249. package/dist/components/arcgis-assistant-interrupt-preview/customElement.js +24 -0
  250. package/dist/components/arcgis-assistant-interrupt-preview/index.js +2 -0
  251. package/dist/components/arcgis-assistant-knowledge-agent/customElement.d.ts +7 -7
  252. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +40 -16
  253. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +30 -7
  254. package/dist/components/arcgis-assistant-message/customElement.d.ts +26 -0
  255. package/dist/components/arcgis-assistant-message/customElement.js +29 -26
  256. package/dist/components/arcgis-assistant-message/index.d.ts +1 -0
  257. package/dist/components/arcgis-assistant-message/index.js +2 -0
  258. package/dist/components/arcgis-assistant-message-block/customElement.d.ts +1 -1
  259. package/dist/components/arcgis-assistant-message-block/customElement.js +18 -11
  260. package/dist/components/arcgis-assistant-message-block/index.js +1 -0
  261. package/dist/components/arcgis-assistant-message-feedback/customElement.d.ts +4 -1
  262. package/dist/components/arcgis-assistant-message-footer/customElement.d.ts +4 -1
  263. package/dist/components/arcgis-assistant-message-loading/customElement.d.ts +11 -1
  264. package/dist/components/arcgis-assistant-message-loading/customElement.js +8 -7
  265. package/dist/components/arcgis-assistant-message-loading/index.js +1 -0
  266. package/dist/components/arcgis-assistant-message-log/customElement.d.ts +4 -1
  267. package/dist/components/arcgis-assistant-message-read-aloud/customElement.d.ts +4 -1
  268. package/dist/components/arcgis-assistant-message-text/customElement.d.ts +5 -1
  269. package/dist/components/arcgis-assistant-message-text/customElement.js +12 -12
  270. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +18 -4
  271. package/dist/components/arcgis-assistant-speech-input/customElement.d.ts +6 -1
  272. package/dist/components/arcgis-assistant-speech-input/customElement.js +34 -52
  273. package/dist/components/arcgis-assistant-suggested-prompts/customElement.d.ts +4 -1
  274. package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +8 -8
  275. package/dist/components/arcgis-assistant-user-message/customElement.d.ts +6 -1
  276. package/dist/components/arcgis-assistant-user-message/customElement.js +15 -10
  277. package/dist/docs/api.json +1 -1
  278. package/dist/docs/docs.json +1 -1
  279. package/dist/docs/vscode.html-custom-data.json +1 -1
  280. package/dist/docs/web-types.json +1 -1
  281. package/dist/index.d.ts +4 -0
  282. package/dist/loader.js +9 -8
  283. package/dist/oauth-callback.html +1 -1
  284. package/dist/orchestrator/orchestrator/orchestratorEvents.d.ts +78 -0
  285. package/dist/types/lumina.d.ts +14 -7
  286. package/dist/types/preact.d.ts +15 -7
  287. package/dist/types/react.d.ts +16 -7
  288. package/dist/types/stencil.d.ts +16 -9
  289. package/dist/utils/index.d.ts +135 -65
  290. package/dist/utils/index.js +55 -50
  291. package/package.json +32 -12
  292. package/dist/cdn/2AXF774U.js +0 -2
  293. package/dist/cdn/462JBSEV.js +0 -422
  294. package/dist/cdn/5QAHYX7Y.js +0 -5
  295. package/dist/cdn/7BCR6TUO.js +0 -2
  296. package/dist/cdn/7GH7VSB2.js +0 -2
  297. package/dist/cdn/7PLV4QH6.js +0 -2
  298. package/dist/cdn/AO7BQHKC.js +0 -2
  299. package/dist/cdn/AXDZBBNL.js +0 -45
  300. package/dist/cdn/DDLZOMUY.js +0 -2
  301. package/dist/cdn/F2AHA4GB.js +0 -54
  302. package/dist/cdn/FHVXO2WG.js +0 -166
  303. package/dist/cdn/FX5JFRDL.js +0 -2
  304. package/dist/cdn/GSEPHN3A.js +0 -106
  305. package/dist/cdn/H7422XUG.js +0 -2
  306. package/dist/cdn/HB5A5R2E.js +0 -2
  307. package/dist/cdn/JY6LLOUJ.js +0 -22
  308. package/dist/cdn/KMQ3SP4I.js +0 -5
  309. package/dist/cdn/MDVYQQUG.js +0 -14
  310. package/dist/cdn/MH5RPXHM.js +0 -2
  311. package/dist/cdn/NAUXSHIE.js +0 -72
  312. package/dist/cdn/NVI3I46B.js +0 -2
  313. package/dist/cdn/OAVEHGB6.js +0 -2
  314. package/dist/cdn/OH64RMOR.js +0 -4
  315. package/dist/cdn/ON2V5XI2.js +0 -3
  316. package/dist/cdn/P6OPJQMC.js +0 -3
  317. package/dist/cdn/QR54T33D.js +0 -2
  318. package/dist/cdn/RVOAPUBN.js +0 -2
  319. package/dist/cdn/S6W6HV4T.js +0 -36
  320. package/dist/cdn/SXDLXCIM.js +0 -2
  321. package/dist/cdn/USMDJUFS.js +0 -2
  322. package/dist/cdn/V5YEZSRY.js +0 -16
  323. package/dist/cdn/Y333DGV6.js +0 -2
  324. package/dist/cdn/YIMNOUTF.js +0 -2
  325. package/dist/cdn/YY2SBO3V.js +0 -2
@@ -8,8 +8,12 @@ import type { AnnotationRoot, BaseChannel, StateGraph } from "@langchain/langgra
8
8
  import type { ChatOpenAI } from "@langchain/openai";
9
9
  import type { ZodType } from "zod";
10
10
 
11
- export { type CustomConfigurableType } from "../orchestrator";
12
- export { Orchestrator } from "../orchestrator";
11
+ export { type CustomConfigurableType } from "../orchestrator.js";
12
+ export { Orchestrator } from "../orchestrator.js";
13
+ export { type AskOptions } from "../orchestrator.js";
14
+
15
+ /** @internal */
16
+ export type ChatModelTier = "advanced" | "default" | "fast";
13
17
 
14
18
  /**
15
19
  * Represents the chat message history between the user and the assistant, including all messages sent and received during the conversation.
@@ -140,29 +144,25 @@ export type ArcgisPromptOptions = {
140
144
  /**
141
145
  * The model tier to use. See the following options:
142
146
  *
143
- * - `default` - The default model tier, which provides a balance of performance and cost.
144
- * This is suitable for most general-purpose use cases. At JS SDK v5.0, this model
145
- * tier corresponds to GPT-5 mini model.
146
- * - `advanced` - An advanced model tier that may provide improved accuracy or capabilities compared to
147
- * the default tier. However, it may also come with increased cost and slower performance. At
148
- * JS SDK v5.0, this model tier corresponds to GPT-5.2 model.
147
+ * - `default` - The default model tier, suitable for most general-purpose use cases.
148
+ * At v5.2, this tier uses the `gpt-5.6-terra` model.
149
+ * - `advanced` - A model tier for tasks that benefit from more advanced capabilities.
150
+ * At v5.2, this tier uses the `gpt-5.6-sol` model.
151
+ * - `fast` - A model tier for tasks such as classification and summarization, where
152
+ * faster responses are preferred.
153
+ * At v5.2, this tier uses the `gpt-5.6-luna` model.
149
154
  *
150
- * The specific models available in each tier may evolve over time as new models are released and existing
151
- * models are retired. The dates models are retired depends on the model provider and therefore may not
152
- * align with the semantic versioning rules of the JS SDK. Therefore, the user experience of apps may break
153
- * in a minor version update of the JS SDK. It is important to keep your implementation flexible and test your prompts
154
- * regularly to ensure they continue to perform as expected, especially when updating the JS SDK version or
155
- * when new models are released.
156
- *
157
- * Note that the same prompt will not necessarily produce the same results across different
158
- * models. As models are updated, you will need to re-evaluate the prompts you send to the LLM, including
159
- * agent descriptions and tool node descriptions to
160
- * ensure they still return the expected responses. You should adjust your implementation as needed.
155
+ * The models available for each tier may change as models are released and retired by
156
+ * the model provider and may not align with the semantic versioning rules of the JS SDK.
157
+ * The same prompt may produce different results when a tier's model changes.
158
+ * Re-evaluate and adjust prompts, agent descriptions, and tool descriptions
159
+ * when updating the ArcGIS Maps SDK for JavaScript or when model updates occur.
161
160
  */
162
161
  modelTier?: ChatModelTier;
163
162
  /**
164
- * The temperature to use for the model (a number between 0 and 1). Higher values will result in more
165
- * creative and varied responses, while lower values will produce more focused and deterministic responses.
163
+ * This option is ignored. The model provider's default temperature is always used.
164
+ *
165
+ * @deprecated This option is no longer supported and will be removed in a future release.
166
166
  */
167
167
  temperature?: number;
168
168
  /**
@@ -172,6 +172,8 @@ export type ArcgisPromptOptions = {
172
172
  * and produce more accurate and relevant responses.
173
173
  */
174
174
  messages?: ChatHistory;
175
+ /** Optional runnable configuration used to derive runtime values (for example, conversation id and abort signal). */
176
+ config?: RunnableConfig;
175
177
  /**
176
178
  * Input variables for the prompt. This can include any relevant variables related to the context
177
179
  * provided to the agent. This may be necessary for determining tool parameters or for providing additional
@@ -248,8 +250,7 @@ export interface TraceEventData {
248
250
  * Sends a prompt to an LLM and returns a plain text response. This function should be used when you expect
249
251
  * a simple text response from the model without the need for structured parsing or tool invocation.
250
252
  *
251
- * @param options - Options for the prompt, including the prompt text, model tier,
252
- * temperature, chat history, and input variables.
253
+ * @param options - Options for the prompt, including the prompt text, model tier, chat history, and input variables.
253
254
  * @returns The model response.
254
255
  * @since 5.0
255
256
  * @see [Custom agents guide](https://developers.arcgis.com/javascript/latest/agentic-apps/ai-custom-agents/)
@@ -319,7 +320,7 @@ export function cosineSimilarity(vectorA: number[], vectorB: number[]): number;
319
320
  /**
320
321
  * The suggestions emitted by the agent to the user interface.
321
322
  *
322
- * @internal
323
+ * @since 5.1
323
324
  */
324
325
  export type UXSuggestion = {
325
326
  /** The type of suggestion being made. */
@@ -331,33 +332,44 @@ export type UXSuggestion = {
331
332
  /**
332
333
  * Execution status returned by an agent run.
333
334
  *
334
- * @internal
335
+ * @since 5.1
335
336
  */
336
337
  export type AgentStatus = "failed" | "success" | "unknown";
337
338
 
338
339
  /**
339
340
  * Summary of a previously executed agent step.
340
341
  *
341
- * @internal
342
+ * @since 5.1
342
343
  */
343
344
  export interface PriorStep {
345
+ /** The agent that handled the step. */
344
346
  agentId: string;
347
+ /** The task assigned to the agent for this step. */
345
348
  assignedTask: string;
349
+ /** A brief summary of the step's execution. */
346
350
  summary: string;
351
+ /** The execution status of the step. */
347
352
  status: AgentStatus;
348
353
  }
349
354
 
350
355
  /**
351
356
  * Runtime execution context available to agent graph nodes and tools.
352
357
  *
353
- * @internal
358
+ * @since 5.1
354
359
  */
355
360
  export interface AgentExecutionContext<TState extends Record<string, unknown> = Record<string, unknown>> {
361
+ /** The user's original request. */
356
362
  userRequest: string;
363
+ /** The task assigned to the agent. */
357
364
  assignedTask: string;
365
+ /** The message history for the run */
358
366
  messages: ChatHistory;
367
+ /** Previous steps */
359
368
  priorSteps: PriorStep[];
369
+ /** Shared state available to the agent. */
360
370
  sharedState: SharedState<TState>;
371
+ /** The 50 most recent resources created by agents in the conversation. */
372
+ sharedResources: readonly SharedResource[];
361
373
  }
362
374
 
363
375
  /** @internal */
@@ -427,6 +439,9 @@ export const createWebmapEmbeddings: (mapView: MapView) => Promise<{
427
439
  }>;
428
440
  }>;
429
441
 
442
+ /** @internal */
443
+ export type GetContext<TContext extends Record<string, unknown>> = () => Promise<TContext> | TContext;
444
+
430
445
  /** @internal */
431
446
  export interface AgentWithContext<TContext extends Record<string, unknown> = Record<string, unknown>> {
432
447
  agent: AgentRegistration;
@@ -438,62 +453,117 @@ export interface AgentWithContext<TContext extends Record<string, unknown> = Rec
438
453
  }
439
454
 
440
455
  /** @internal */
441
- export function createAgentRuntimeState<TState extends Record<string, unknown> = Record<string, unknown>>(): StatelessAgentBaseState<TState>;
456
+ export type AgentExecutionContextWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>> = AgentExecutionContext<TState>;
442
457
 
443
458
  /** @internal */
444
- export function createAgentRuntimeStateWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>>(): StatefulAgentBaseState<TState>;
459
+ export type AgentBaseState<TState extends Record<string, unknown> = Record<string, unknown>> = {
460
+ agentExecutionContext: BaseChannel<AgentExecutionContextWithSharedState<TState>, unknown, unknown>;
461
+ outputMessage: BaseChannel<string, unknown, unknown>;
462
+ summary: BaseChannel<string, unknown, unknown>;
463
+ status: BaseChannel<AgentStatus | undefined, unknown, unknown>;
464
+ sharedStatePatch: BaseChannel<SharedStatePatch<TState> | undefined, unknown, unknown>;
465
+ sharedResourceAdditions: BaseChannel<readonly SharedResourceInput[] | undefined, unknown, unknown>;
466
+ };
445
467
 
446
468
  /**
447
- * @param suggestion
448
- * @param config
449
- * @internal
469
+ * Creates the standard runtime state for a custom agent graph.
470
+ * Includes common fields used by the assistant flow and channels for shared state and shared resource updates, so you only add your agent-specific state.
471
+ *
472
+ * @since 5.1
450
473
  */
451
- export function sendUXSuggestion(suggestion: UXSuggestion, config?: RunnableConfig): Promise<void>;
452
-
453
- /** @internal */
454
- export type SharedStatePatch<T extends Record<string, unknown> = Record<string, unknown>> = {
455
- [K in keyof T]?: SharedStatePatchEntry<T[K]>;
456
- };
474
+ export function createAgentRuntimeState<TState extends Record<string, unknown> = Record<string, unknown>>(): AgentBaseState<TState>;
457
475
 
458
476
  /**
459
- * @param tier
460
- * @param temperature
461
- * @internal
477
+ * Use `createAgentRuntimeState` instead.
478
+ *
479
+ * @deprecated Use `createAgentRuntimeState` instead.
480
+ * @since 5.1
462
481
  */
463
- export function createChatModel(tier?: ChatModelTier, temperature?: number): Promise<ChatOpenAI>;
464
-
465
- export type ChatModelTier = "advanced" | "default" | "fast";
466
-
467
- export type GetContext<TContext extends Record<string, unknown>> = () => Promise<TContext> | TContext;
482
+ export function createAgentRuntimeStateWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>>(): AgentBaseState<TState>;
468
483
 
469
- export type StatelessAgentBaseState<TState extends Record<string, unknown> = Record<string, unknown>> = {
470
- agentExecutionContext: BaseChannel<AgentExecutionContextWithSharedState<TState>, unknown, unknown>;
471
- outputMessage: BaseChannel<string, unknown, unknown>;
472
- summary: BaseChannel<string, unknown, unknown>;
473
- status: BaseChannel<AgentStatus | undefined, unknown, unknown>;
474
- };
484
+ /**
485
+ * Sends an optional UX suggestion from an agent run to the host application.
486
+ * Use this for non-blocking hints (for example, recommended next actions or UI prompts) that the app may choose to display.
487
+ *
488
+ * @param suggestion
489
+ * @param config
490
+ * @since 5.1
491
+ */
492
+ export function sendUXSuggestion(suggestion: UXSuggestion, config?: RunnableConfig): Promise<void>;
475
493
 
476
- export type StatefulAgentBaseState<TState extends Record<string, unknown> = Record<string, unknown>> = StatelessAgentBaseState<TState>
477
- & {
478
- sharedStatePatch: BaseChannel<SharedStatePatch<TState> | undefined, unknown, unknown>;
494
+ /** @internal */
495
+ export type SharedStateEntry<T = unknown> = {
496
+ value: T;
497
+ meta: {
498
+ updatedByAgentId: string;
499
+ updatedAt: number;
500
+ };
479
501
  };
480
502
 
481
- /** Patch shape returned by agents. `meta` is intentionally omitted. */
503
+ /** @internal */
482
504
  export type SharedStatePatchEntry<T = unknown> = {
483
505
  value: T;
484
506
  };
485
507
 
508
+ /**
509
+ * Shared state that can be read and updated during agent execution.
510
+ *
511
+ * @since 5.1
512
+ */
486
513
  export type SharedState<T extends Record<string, unknown> = Record<string, unknown>> = {
487
514
  [K in keyof T]?: SharedStateEntry<T[K]>;
488
515
  };
489
516
 
490
- export type AgentExecutionContextWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>> = AgentExecutionContext<TState>;
517
+ /**
518
+ * Partial shared state returned by an agent for merging into the current run state.
519
+ *
520
+ * @since 5.1
521
+ */
522
+ export type SharedStatePatch<T extends Record<string, unknown> = Record<string, unknown>> = {
523
+ [K in keyof T]?: SharedStatePatchEntry<T[K]>;
524
+ };
491
525
 
492
- /** Stored shared state entry. `meta` is added by the orchestrator. */
493
- export type SharedStateEntry<T = unknown> = {
494
- value: T;
495
- meta: {
496
- updatedByAgentId: string;
497
- updatedAt: number;
498
- };
499
- };
526
+ /**
527
+ * Kinds of resources an agent can share with subsequent agents.
528
+ *
529
+ * @since 5.2
530
+ */
531
+ export type SharedResourceKind = "custom" | "extent" | "point" | "polygon" | "polyline";
532
+
533
+ /**
534
+ * Resource available to agents during a conversation.
535
+ *
536
+ * @remarks Descriptions are limited to 256 characters. Payloads must be compatible with the structured clone algorithm.
537
+ * @since 5.2
538
+ */
539
+ export type SharedResource = Readonly<{
540
+ id: string;
541
+ kind: SharedResourceKind;
542
+ description: string;
543
+ payload: unknown;
544
+ meta: {
545
+ createdByAgentId: string;
546
+ createdAt: number;
547
+ };
548
+ }>;
549
+
550
+ /**
551
+ * Resource supplied by an agent before the orchestrator adds identity and metadata.
552
+ *
553
+ * @remarks Description values longer than 256 characters are truncated. Payloads are cloned using the structured clone algorithm.
554
+ * @since 5.2
555
+ */
556
+ export type SharedResourceInput = Readonly<{
557
+ kind: SharedResourceKind;
558
+ description: string;
559
+ payload: unknown;
560
+ }>;
561
+
562
+ /**
563
+ * @param parameter0
564
+ * @internal
565
+ */
566
+ export function createChatModel(parameter0?: {
567
+ modelTier?: ChatModelTier;
568
+ config?: RunnableConfig;
569
+ }): Promise<ChatOpenAI>;
@@ -1,47 +1,49 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { g as p } from "../chunks/orchestrator.js";
3
- import { O as ye } from "../chunks/orchestrator.js";
4
- import { g as h, a as A, W as S, f, l as y, d as v, m as w, b as $, e as b, i as E, h as L, j as P, s as M, k as T, n as R, c as k, o as x } from "../chunks/generateLayerDescriptions.js";
5
- import D from "@arcgis/core/layers/FeatureLayer.js";
6
- import * as W from "@arcgis/core/core/reactiveUtils.js";
3
+ import { O as he } from "../chunks/orchestrator.js";
4
+ import { s as h, a as A } from "../chunks/index.js";
5
+ import { g as S, a as v, W as w, f, l as y, d as $, m as b, b as E, s as L, i as P, e as M, h as T, c as R } from "../chunks/generateLayerDescriptions.js";
6
+ import x from "@arcgis/core/layers/FeatureLayer.js";
7
+ import * as D from "@arcgis/core/core/reactiveUtils.js";
8
+ import { a as W, b as k } from "../chunks/baseAgentState.js";
7
9
  import { N as F } from "../chunks/navigationGraph.js";
8
10
  import { L as C } from "../chunks/layerStylingGraph.js";
9
11
  import { D as N } from "../chunks/dataExplorationGraph.js";
10
12
  import { H as z } from "../chunks/helpGraph.js";
11
13
  import { A as H } from "../chunks/arcgisKnowledgeGraph.js";
12
14
  const I = async (e) => {
13
- const t = e.allLayers.toArray(), n = [], s = /* @__PURE__ */ new Map();
15
+ const t = e.allLayers.toArray(), o = [], s = /* @__PURE__ */ new Map();
14
16
  for (const a of t)
15
- if (a instanceof D) {
17
+ if (a instanceof x) {
16
18
  const m = (async () => {
17
- const o = await h(a), r = await A(a, o);
18
- s.set(a.id, { layerItem: r, fieldRegistry: o });
19
+ const r = await S(a), n = await v(a, r);
20
+ s.set(a.id, { layerItem: n, fieldRegistry: r });
19
21
  })();
20
- n.push(m);
22
+ o.push(m);
21
23
  }
22
- return await Promise.all(n), s;
24
+ return await Promise.all(o), s;
23
25
  }, O = async (e) => {
24
- await W.whenOnce(() => e.ready);
25
- const t = await I(e.map), { layers: n } = await U(t), s = {
26
- schemaVersion: b,
26
+ await D.whenOnce(() => e.ready);
27
+ const t = await I(e.map), { layers: o } = await U(t), s = {
28
+ schemaVersion: L,
27
29
  modified: Date.now(),
28
30
  embeddings: {
29
- modelProvider: $,
30
- model: w,
31
- dimensions: v,
31
+ modelProvider: E,
32
+ model: b,
33
+ dimensions: $,
32
34
  templates: {
33
35
  layer: y,
34
36
  field: f
35
37
  }
36
38
  },
37
- layers: n
38
- }, a = S.safeParse(s);
39
+ layers: o
40
+ }, a = w.safeParse(s);
39
41
  if (!a.success)
40
42
  throw console.error("Schema Mismatch:", a.error.format()), new Error("Webmap embedding generation failed validation.");
41
43
  return a.data;
42
44
  }, U = async (e) => {
43
- const t = [], n = [];
44
- for (const [o, { fieldRegistry: r, layerItem: i }] of e.entries()) {
45
+ const t = [], o = [];
46
+ for (const [r, { fieldRegistry: n, layerItem: i }] of e.entries()) {
45
47
  const l = g(y, {
46
48
  name: i.name,
47
49
  title: i.title,
@@ -49,14 +51,14 @@ const I = async (e) => {
49
51
  });
50
52
  t.push(l);
51
53
  const d = {
52
- id: o,
54
+ id: r,
53
55
  name: i.name ?? "",
54
56
  title: i.title,
55
57
  description: i.description,
56
58
  vector: [],
57
59
  fields: []
58
60
  };
59
- for (const [, c] of r.entries()) {
61
+ for (const [, c] of n.entries()) {
60
62
  const u = g(f, {
61
63
  name: c.name,
62
64
  alias: c.alias,
@@ -69,43 +71,46 @@ const I = async (e) => {
69
71
  vector: []
70
72
  });
71
73
  }
72
- n.push(d);
74
+ o.push(d);
73
75
  }
74
76
  const s = await p(t);
75
77
  let a = 0;
76
- return { layers: n.map((o) => (o.vector = s[a++], o.fields.forEach((r) => {
77
- r.vector = s[a++];
78
- }), o)) };
79
- }, g = (e, t) => e.replace(/\{(\w+)\}/gu, (n, s) => t[s] ?? ""), V = (e, t) => {
78
+ return { layers: o.map((r) => (r.vector = s[a++], r.fields.forEach((n) => {
79
+ n.vector = s[a++];
80
+ }), r)) };
81
+ }, g = (e, t) => e.replace(/\{(\w+)\}/gu, (o, s) => t[s] ?? ""), V = (e, t) => {
80
82
  if (e.length !== t.length)
81
83
  throw new Error("Vectors must be the same length");
82
- let n = 0, s = 0, a = 0;
83
- for (let r = 0; r < e.length; ++r) {
84
- const i = e[r], l = t[r];
85
- n += i * l, s += i * i, a += l * l;
84
+ let o = 0, s = 0, a = 0;
85
+ for (let n = 0; n < e.length; ++n) {
86
+ const i = e[n], l = t[n];
87
+ o += i * l, s += i * i, a += l * l;
86
88
  }
87
89
  const m = Math.sqrt(s * a);
88
90
  if (m === 0)
89
91
  return 0;
90
- const o = n / m;
91
- return Math.max(-1, Math.min(1, o));
92
- }, Q = L, Y = E, Z = P, ee = M, te = p, ae = V, se = F, ne = C, oe = N, re = z, ie = H, ce = O, me = () => T(), le = () => R(), de = async (e, t) => await x(e, t), ge = async (e = "default", t = 0) => await k(e, t);
92
+ const r = o / m;
93
+ return Math.max(-1, Math.min(1, r));
94
+ }, Z = M, ee = P, te = T, ae = h, se = p, oe = V, re = F, ne = C, ie = N, ce = z, me = H, le = O, de = () => W(), ge = () => k(), pe = async (e, t) => await A(e, t), fe = async ({
95
+ modelTier: e = "default",
96
+ config: t
97
+ } = {}) => await R({ modelTier: e, config: t });
93
98
  export {
94
- ie as ArcgisKnowledgeAgent,
95
- oe as DataExplorationAgent,
96
- re as HelpAgent,
99
+ me as ArcgisKnowledgeAgent,
100
+ ie as DataExplorationAgent,
101
+ ce as HelpAgent,
97
102
  ne as LayerStylingAgent,
98
- se as NavigationAgent,
99
- ye as Orchestrator,
100
- ae as cosineSimilarity,
101
- me as createAgentRuntimeState,
102
- le as createAgentRuntimeStateWithSharedState,
103
- ge as createChatModel,
104
- ce as createWebmapEmbeddings,
105
- te as getEmbeddings,
106
- Y as invokeStructuredPrompt,
107
- Q as invokeTextPrompt,
108
- Z as invokeToolPrompt,
109
- ee as sendTraceMessage,
110
- de as sendUXSuggestion
103
+ re as NavigationAgent,
104
+ he as Orchestrator,
105
+ oe as cosineSimilarity,
106
+ de as createAgentRuntimeState,
107
+ ge as createAgentRuntimeStateWithSharedState,
108
+ fe as createChatModel,
109
+ le as createWebmapEmbeddings,
110
+ se as getEmbeddings,
111
+ ee as invokeStructuredPrompt,
112
+ Z as invokeTextPrompt,
113
+ te as invokeToolPrompt,
114
+ ae as sendTraceMessage,
115
+ pe as sendUXSuggestion
111
116
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/ai-components",
3
- "version": "5.2.0-next.1",
3
+ "version": "5.2.0-next.100",
4
4
  "description": "ArcGIS AI Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -9,6 +9,26 @@
9
9
  "exports": {
10
10
  ".": "./dist/index.js",
11
11
  "./loader": "./dist/loader.js",
12
+ "./agents/tools/filter/clearFilters/clearFilters.js": "./dist/agents/tools/filter/clearFilters/adapter.js",
13
+ "./agents/tools/filter/resetMap/resetMap.js": "./dist/agents/tools/filter/resetMap/adapter.js",
14
+ "./agents/tools/filter/setFeatureEffect/setFeatureEffect.js": "./dist/agents/tools/filter/setFeatureEffect/adapter.js",
15
+ "./agents/tools/help/listFields/listFields.js": "./dist/agents/tools/help/listFields/adapter.js",
16
+ "./agents/tools/navigation/goToAddress/goToAddress.js": "./dist/agents/tools/navigation/goToAddress/adapter.js",
17
+ "./agents/tools/navigation/goToBookmark/goToBookmark.js": "./dist/agents/tools/navigation/goToBookmark/adapter.js",
18
+ "./agents/tools/navigation/goToFeatures/goToFeatures.js": "./dist/agents/tools/navigation/goToFeatures/adapter.js",
19
+ "./agents/tools/navigation/goToFullExtent/goToFullExtent.js": "./dist/agents/tools/navigation/goToFullExtent/adapter.js",
20
+ "./agents/tools/navigation/goToHomeExtent/goToHomeExtent.js": "./dist/agents/tools/navigation/goToHomeExtent/adapter.js",
21
+ "./agents/tools/navigation/goToLayer/goToLayer.js": "./dist/agents/tools/navigation/goToLayer/adapter.js",
22
+ "./agents/tools/navigation/goToScale/goToScale.js": "./dist/agents/tools/navigation/goToScale/adapter.js",
23
+ "./agents/tools/navigation/goToViewpoint/goToViewpoint.js": "./dist/agents/tools/navigation/goToViewpoint/adapter.js",
24
+ "./agents/tools/navigation/goToZoom/goToZoom.js": "./dist/agents/tools/navigation/goToZoom/adapter.js",
25
+ "./agents/tools/query/getAttribute/getAttribute.js": "./dist/agents/tools/query/getAttribute/adapter.js",
26
+ "./agents/tools/query/getStatistics/getStatistics.js": "./dist/agents/tools/query/getStatistics/adapter.js",
27
+ "./agents/tools/query/getTopFeatures/getTopFeatures.js": "./dist/agents/tools/query/getTopFeatures/adapter.js",
28
+ "./agents/tools/query/queryFeatures/queryFeatures.js": "./dist/agents/tools/query/queryFeatures/adapter.js",
29
+ "./agents/tools/search/findRelevantFields/findRelevantFields.js": "./dist/agents/tools/search/findRelevantFields/adapter.js",
30
+ "./agents/tools/search/findRelevantLayers/findRelevantLayers.js": "./dist/agents/tools/search/findRelevantLayers/adapter.js",
31
+ "./agent-utils/index.js": "./dist/agent-utils/index.js",
12
32
  "./agent-utils/BaseAgent.js": "./dist/agent-utils/BaseAgent.js",
13
33
  "./agent-utils/FunctionAgent.js": "./dist/agent-utils/FunctionAgent.js",
14
34
  "./agent-utils/LLMAgent.js": "./dist/agent-utils/LLMAgent.js",
@@ -38,22 +58,22 @@
38
58
  ],
39
59
  "license": "SEE LICENSE IN LICENSE.md",
40
60
  "dependencies": {
61
+ "@arcgis/lumina": "5.2.0-next.100",
62
+ "@arcgis/toolkit": "5.2.0-next.100",
41
63
  "@esri/arcgis-html-sanitizer": "~4.1.0",
42
- "@langchain/core": "^1.1.39",
43
- "@langchain/langgraph": "^1.2.6",
44
- "@langchain/openai": "^1.4.3",
45
- "langchain": "^1.3.1",
64
+ "@langchain/core": "^1.2.8",
65
+ "@langchain/langgraph": "^1.4.10",
66
+ "@langchain/openai": "^1.5.8",
67
+ "langchain": "^1.5.9",
46
68
  "lit": "^3.3.0",
47
- "marked": "~18.0.4",
69
+ "marked": "~18.0.11",
48
70
  "tslib": "^2.8.1",
49
- "zod": "^4.3.6",
50
- "@arcgis/lumina": "5.2.0-next.1",
51
- "@arcgis/toolkit": "5.2.0-next.1"
71
+ "zod": "^4.4.3"
52
72
  },
53
73
  "peerDependencies": {
54
- "@arcgis/core": "^5.1.0-next",
55
- "@esri/calcite-components": "^5.1.0-next.60",
56
- "@arcgis/map-components": "~5.2.0-next.1"
74
+ "@arcgis/core": "5.2.0-next.100",
75
+ "@arcgis/map-components": "~5.2.0-next.100",
76
+ "@esri/calcite-components": "^5.2.0-next.65"
57
77
  },
58
78
  "css.customData": [
59
79
  "dist/docs/vscode.css-custom-data.json"
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{g as s,h as e,v as i,y as t}from"./OH64RMOR.js";import"./YIMNOUTF.js";var o=s`:host{display:contents}.icon{padding:var(--calcite-spacing-sm);border-radius:var(--calcite-spacing-xl);background:var(--calcite-color-brand);color:var(--calcite-color-foreground-1)}.loading-container{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);padding:0 var(--calcite-spacing-sm)}.loading{display:flex;align-items:center;gap:var(--calcite-spacing-sm)}.text{font-style:italic;word-wrap:break-word;word-break:break-all;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical}.skeleton-block{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);width:100%}.skeleton-text{display:block;height:.95em;border-radius:var(--calcite-border-radius);background:linear-gradient(90deg,color-mix(in srgb,var(--calcite-color-foreground-2) 65%,transparent),color-mix(in srgb,var(--calcite-color-foreground-3) 85%,transparent),color-mix(in srgb,var(--calcite-color-foreground-2) 65%,transparent));background-size:200% 100%;animation:assistant-message-loading-shimmer 1.2s ease-in-out infinite;width:85%}.skeleton-text:last-child{width:70%}@keyframes assistant-message-loading-shimmer{0%{background-position:-150% 0}to{background-position:150% 0}}@media(prefers-reduced-motion){.skeleton-text{animation:none}}`,a=class extends i{constructor(){super(...arguments),this.loading=!1,this.loadingMessage=""}static{this.properties={loading:5,loadingMessage:1}}static{this.styles=o}render(){return this.loading?e`<arcgis-assistant-message footer-disabled><slot name=icon slot=icon><calcite-icon class="icon" icon=effects scale=s></calcite-icon></slot><slot name=content slot=content><div class="loading-container"><div class="loading"><calcite-loader label=loading inline></calcite-loader><div class="text">${this.loadingMessage}</div></div><div class="skeleton-block"><span class="skeleton-text"></span><span class="skeleton-text"></span></div></div></slot></arcgis-assistant-message>`:null}};t("arcgis-assistant-message-loading",a);export{a as ArcgisAssistantMessageLoading};