@arcgis/ai-components 5.2.0-next.10 → 5.2.0-next.101

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 (300) 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 +4 -2
  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/{SWOXSJ62.js → 2O4DON37.js} +1 -1
  71. package/dist/cdn/34O57OGV.js +2 -0
  72. package/dist/cdn/{5W7S2RS4.js → 3UEKINYC.js} +1 -1
  73. package/dist/cdn/4OGR5QKS.js +2 -0
  74. package/dist/cdn/5FL5BTTX.js +66 -0
  75. package/dist/cdn/5HBAJ57P.js +2 -0
  76. package/dist/cdn/5K5ZY267.js +2 -0
  77. package/dist/cdn/5MK44FNO.js +2 -0
  78. package/dist/cdn/5WYRJMBW.js +2 -0
  79. package/dist/cdn/5X7EG7D2.js +2 -0
  80. package/dist/cdn/5XZLS7UO.js +2 -0
  81. package/dist/cdn/5ZFUGNRN.js +2 -0
  82. package/dist/cdn/655YIKL3.js +11 -0
  83. package/dist/cdn/6ECRQVHY.js +2 -0
  84. package/dist/cdn/6OOZSZRJ.js +2 -0
  85. package/dist/cdn/{D3TNNRP4.js → 6P44KOKX.js} +1 -1
  86. package/dist/cdn/6YYPVU7H.js +3 -0
  87. package/dist/cdn/7BCQMK6D.js +2 -0
  88. package/dist/cdn/7SRLZQVC.js +5 -0
  89. package/dist/cdn/7V6OSTFC.js +2 -0
  90. package/dist/cdn/7VAQUCBU.js +9 -0
  91. package/dist/cdn/7VUSIGEM.js +2 -0
  92. package/dist/cdn/ACJTJLZN.js +2 -0
  93. package/dist/cdn/AI6DYOKR.js +181 -0
  94. package/dist/cdn/AKD5UOVX.js +2 -0
  95. package/dist/cdn/ANRQWYU2.js +2 -0
  96. package/dist/cdn/{ZS2TZ6BF.js → AOVJ34QE.js} +1 -1
  97. package/dist/cdn/APFZY4PI.js +2 -0
  98. package/dist/cdn/B2JDVLA6.js +2 -0
  99. package/dist/cdn/BE7BRJZD.js +2 -0
  100. package/dist/cdn/{FL4W4VYN.js → BL273EGZ.js} +17 -1
  101. package/dist/cdn/C4FEETBZ.js +2 -0
  102. package/dist/cdn/C4JT4S5E.js +2 -0
  103. package/dist/cdn/CCC6LBMY.js +2 -0
  104. package/dist/cdn/{5ZZGKP7N.js → CEKOEHB3.js} +1 -1
  105. package/dist/cdn/CJMUJXPL.js +2 -0
  106. package/dist/cdn/COH3QXWG.js +4 -0
  107. package/dist/cdn/CP5BVGJU.js +2 -0
  108. package/dist/cdn/D5UFYQHN.js +44 -0
  109. package/dist/cdn/EWLXNGKH.js +208 -0
  110. package/dist/cdn/EYOWRGDP.js +2 -0
  111. package/dist/cdn/F5NIRETW.js +2 -0
  112. package/dist/cdn/FDOMMK2M.js +2 -0
  113. package/dist/cdn/FG647IP6.js +2 -0
  114. package/dist/cdn/FJO4KNOZ.js +2 -0
  115. package/dist/cdn/FUF3NAU7.js +2 -0
  116. package/dist/cdn/FXP5UIQU.js +156 -0
  117. package/dist/cdn/{T537PKP4.js → FYZATVB3.js} +1 -1
  118. package/dist/cdn/G2EGT3CF.js +6 -0
  119. package/dist/cdn/G3SF6U2U.js +2 -0
  120. package/dist/cdn/G7OMHU2B.js +2 -0
  121. package/dist/cdn/HAEFC2SJ.js +2 -0
  122. package/dist/cdn/HDACNIZF.js +2 -0
  123. package/dist/cdn/HHFNQR6Z.js +2 -0
  124. package/dist/cdn/HHUQXL3R.js +2 -0
  125. package/dist/cdn/IBZ2NEAO.js +2 -0
  126. package/dist/cdn/{FX7UOGHP.js → ICBIUFK7.js} +1 -1
  127. package/dist/cdn/ICQCK5D3.js +2 -0
  128. package/dist/cdn/IHP25JWI.js +99 -0
  129. package/dist/cdn/IJVMUS2L.js +14 -0
  130. package/dist/cdn/J6A4AS7E.js +22 -0
  131. package/dist/cdn/J6SZIQJA.js +2 -0
  132. package/dist/cdn/JCOA24UH.js +3 -0
  133. package/dist/cdn/{NE7E52YR.js → JEBRN3EU.js} +9 -3
  134. package/dist/cdn/JO5ETMPS.js +2 -0
  135. package/dist/cdn/K2R6XVK3.js +2 -0
  136. package/dist/cdn/KITIP6J2.js +2 -0
  137. package/dist/cdn/KWD2ECTM.js +2 -0
  138. package/dist/cdn/{MODWHY3R.js → LAYVGCPL.js} +6 -4
  139. package/dist/cdn/{7RCQFLPP.js → LK7ZIQW6.js} +1 -1
  140. package/dist/cdn/LLUGJKAQ.js +2 -0
  141. package/dist/cdn/MWYBF3F3.js +66 -0
  142. package/dist/cdn/{VMXLYWUK.js → MXTXJKFE.js} +1 -1
  143. package/dist/cdn/MY47B3CE.js +3 -0
  144. package/dist/cdn/NEV6OZN3.js +71 -0
  145. package/dist/cdn/NNXISHCA.js +14 -0
  146. package/dist/cdn/NZSOJ726.js +2 -0
  147. package/dist/cdn/O4NVW75A.js +2 -0
  148. package/dist/cdn/OE3GW5LE.js +2 -0
  149. package/dist/cdn/{23EQTPO3.js → OKVLGJAG.js} +1 -1
  150. package/dist/cdn/ONQ6JSBJ.js +2 -0
  151. package/dist/cdn/OX64WOEL.js +22 -0
  152. package/dist/cdn/{LQ6R5YRN.js → PQ2DPOFM.js} +1 -1
  153. package/dist/cdn/PUHRBGKB.js +2 -0
  154. package/dist/cdn/Q57QWN5W.js +2 -0
  155. package/dist/cdn/QUKNPVAF.js +2 -0
  156. package/dist/cdn/R2PQVY4O.js +2 -0
  157. package/dist/cdn/R74ZHFA6.js +2 -0
  158. package/dist/cdn/RBE55SWR.js +2 -0
  159. package/dist/cdn/RHYNE5OE.js +2 -0
  160. package/dist/cdn/RLEHNAIA.js +2 -0
  161. package/dist/cdn/RVSTAUQS.js +2 -0
  162. package/dist/cdn/{X2ZDYHCG.js → SDWWUWAF.js} +10 -5
  163. package/dist/cdn/{GTLS44GI.js → SXM4NUT5.js} +1 -1
  164. package/dist/cdn/SZ2QSSB3.js +2 -0
  165. package/dist/cdn/T4RIGOXB.js +2 -0
  166. package/dist/cdn/TCH5I5LS.js +2 -0
  167. package/dist/cdn/TEPP7YPR.js +2 -0
  168. package/dist/cdn/TMVF2W5N.js +36 -0
  169. package/dist/cdn/TPULIO6I.js +34 -0
  170. package/dist/cdn/UDRKUVZP.js +2 -0
  171. package/dist/cdn/{6YMR4QSD.js → UHEYPSOR.js} +1 -1
  172. package/dist/cdn/UHNVDALX.js +18 -0
  173. package/dist/cdn/UZLQALHY.js +2 -0
  174. package/dist/cdn/V6HOUZPZ.js +2 -0
  175. package/dist/cdn/VAXH6RUQ.js +134 -0
  176. package/dist/cdn/VLLZ2FFU.js +2 -0
  177. package/dist/cdn/VOKXKU7M.js +56 -0
  178. package/dist/cdn/VXFQANGJ.js +2 -0
  179. package/dist/cdn/WGO5SER7.js +6 -0
  180. package/dist/cdn/WJXXOKGA.js +9 -0
  181. package/dist/cdn/WKTQVBFJ.js +2 -0
  182. package/dist/cdn/{2SJAOYZT.js → WSWB3B7B.js} +1 -1
  183. package/dist/cdn/XX6GHMNR.js +2 -0
  184. package/dist/cdn/Y7XD7ZRD.js +2 -0
  185. package/dist/cdn/YEZ3AMNX.js +2 -0
  186. package/dist/cdn/YLVJA4ZE.js +2 -0
  187. package/dist/cdn/Z5HWPSZN.js +2 -0
  188. package/dist/cdn/Z5W4V7RC.js +2 -0
  189. package/dist/cdn/ZDV4K4WG.js +2 -0
  190. package/dist/cdn/ZOEMBHRF.js +2 -0
  191. package/dist/cdn/ZRVZMPFN.js +2 -0
  192. package/dist/cdn/{ZTBA5PM7.js → ZU2FHVNK.js} +1 -1
  193. package/dist/cdn/agent-utils/index.js +2 -0
  194. package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +3 -0
  195. package/dist/cdn/agent-utils/middlewares/middleware.js +2 -0
  196. package/dist/cdn/agent-utils/middlewares/trace.js +2 -0
  197. package/dist/cdn/assets/assistant/t9n/messages.en.json +1 -1
  198. package/dist/cdn/assets/assistant-interrupt/t9n/messages.en.json +1 -1
  199. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.en.json +1 -0
  200. package/dist/cdn/assets/assistant-message/t9n/messages.en.json +1 -0
  201. package/dist/cdn/assets/assistant-message-loading/t9n/messages.en.json +1 -0
  202. package/dist/cdn/index.js +1 -1
  203. package/dist/chunks/adapter.js +1295 -2104
  204. package/dist/chunks/arcgisKnowledgeGraph.js +128 -72
  205. package/dist/chunks/arcgis_knowledge_current_lc_context.js +19 -2
  206. package/dist/chunks/arcgis_knowledge_current_map_context.js +31 -2
  207. package/dist/chunks/arcgis_knowledge_cypher_query_prompt.js +102 -0
  208. package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +116 -27
  209. package/dist/chunks/baseAgentState.js +58 -0
  210. package/dist/chunks/converterUtils.js +66 -41
  211. package/dist/chunks/dataExplorationGraph.js +131 -182
  212. package/dist/chunks/data_explore_query_prompt.js +9 -4
  213. package/dist/chunks/fetchAgentContext.js +13 -0
  214. package/dist/chunks/fetchService.js +10 -0
  215. package/dist/chunks/fieldStatistics.js +79 -0
  216. package/dist/chunks/formatFeatureAttributes.js +132 -0
  217. package/dist/chunks/generateLayerDescriptions.js +259 -282
  218. package/dist/chunks/helpGraph.js +35 -25
  219. package/dist/chunks/help_prompt.js +34 -17
  220. package/dist/chunks/index.js +11 -0
  221. package/dist/chunks/intent_prompt.js +16 -0
  222. package/dist/chunks/layerStylingGraph.js +39 -33
  223. package/dist/chunks/mergeWhereClauses.js +15 -0
  224. package/dist/chunks/navigationGraph.js +140 -116
  225. package/dist/chunks/navigation_intent_prompt.js +8 -2
  226. package/dist/chunks/orchestrator.js +444 -233
  227. package/dist/chunks/resolvePointGeometryFilter.js +92 -0
  228. package/dist/chunks/state.js +21 -27
  229. package/dist/chunks/toolCallResponse.js +14 -10
  230. package/dist/chunks/utils2.js +11 -11
  231. package/dist/components/arcgis-assistant/customElement.d.ts +82 -1
  232. package/dist/components/arcgis-assistant/customElement.js +332 -183
  233. package/dist/components/arcgis-assistant-agent/customElement.d.ts +13 -1
  234. package/dist/components/arcgis-assistant-agent/customElement.js +614 -10
  235. package/dist/components/arcgis-assistant-chat/customElement.js +22 -17
  236. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +20 -4
  237. package/dist/components/arcgis-assistant-help-agent/customElement.js +29 -7
  238. package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +4 -0
  239. package/dist/components/arcgis-assistant-interrupt/customElement.js +11 -12
  240. package/dist/components/arcgis-assistant-interrupt-preview/customElement.js +12 -8
  241. package/dist/components/arcgis-assistant-knowledge-agent/customElement.d.ts +7 -7
  242. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +40 -16
  243. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +30 -7
  244. package/dist/components/arcgis-assistant-message/customElement.d.ts +3 -0
  245. package/dist/components/arcgis-assistant-message/customElement.js +9 -8
  246. package/dist/components/arcgis-assistant-message-block/customElement.js +1 -1
  247. package/dist/components/arcgis-assistant-message-loading/customElement.d.ts +3 -0
  248. package/dist/components/arcgis-assistant-message-loading/customElement.js +11 -10
  249. package/dist/components/arcgis-assistant-message-text/customElement.d.ts +1 -0
  250. package/dist/components/arcgis-assistant-message-text/customElement.js +12 -12
  251. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +18 -4
  252. package/dist/components/arcgis-assistant-speech-input/customElement.js +34 -52
  253. package/dist/components/arcgis-assistant-user-message/customElement.d.ts +2 -0
  254. package/dist/components/arcgis-assistant-user-message/customElement.js +15 -10
  255. package/dist/docs/api.json +1 -1
  256. package/dist/docs/docs.json +1 -1
  257. package/dist/docs/vscode.html-custom-data.json +1 -1
  258. package/dist/docs/web-types.json +1 -1
  259. package/dist/loader.js +6 -6
  260. package/dist/oauth-callback.html +1 -1
  261. package/dist/orchestrator/orchestrator/orchestratorEvents.d.ts +78 -0
  262. package/dist/types/lumina.d.ts +5 -4
  263. package/dist/types/preact.d.ts +5 -4
  264. package/dist/types/react.d.ts +5 -4
  265. package/dist/types/stencil.d.ts +7 -6
  266. package/dist/utils/index.d.ts +65 -38
  267. package/dist/utils/index.js +56 -55
  268. package/package.json +32 -12
  269. package/dist/cdn/462JBSEV.js +0 -422
  270. package/dist/cdn/5QAHYX7Y.js +0 -5
  271. package/dist/cdn/64PJB5NU.js +0 -2
  272. package/dist/cdn/6AWNQHCO.js +0 -4
  273. package/dist/cdn/AXDZBBNL.js +0 -45
  274. package/dist/cdn/BIV2IPHH.js +0 -2
  275. package/dist/cdn/CCY4TSBO.js +0 -2
  276. package/dist/cdn/CTSALWEP.js +0 -2
  277. package/dist/cdn/D2N2NSRQ.js +0 -72
  278. package/dist/cdn/DOV5ZJ7M.js +0 -2
  279. package/dist/cdn/EEUCKMU7.js +0 -2
  280. package/dist/cdn/EGHBXLNG.js +0 -2
  281. package/dist/cdn/ETRWZ3MS.js +0 -108
  282. package/dist/cdn/EWI4V3GQ.js +0 -36
  283. package/dist/cdn/F2AHA4GB.js +0 -54
  284. package/dist/cdn/I6HNBTWY.js +0 -2
  285. package/dist/cdn/JBHNHHWO.js +0 -3
  286. package/dist/cdn/JOFUPKIB.js +0 -2
  287. package/dist/cdn/KMQ3SP4I.js +0 -5
  288. package/dist/cdn/KUEOKIQR.js +0 -2
  289. package/dist/cdn/LKRAPK4A.js +0 -165
  290. package/dist/cdn/NXKKG5TK.js +0 -2
  291. package/dist/cdn/OBUZ7HBN.js +0 -2
  292. package/dist/cdn/OIVRK7HT.js +0 -2
  293. package/dist/cdn/RUURNLTP.js +0 -2
  294. package/dist/cdn/RVOAPUBN.js +0 -2
  295. package/dist/cdn/TSZPHE7L.js +0 -22
  296. package/dist/cdn/VAZNJSKA.js +0 -16
  297. package/dist/cdn/VNQN5ZQO.js +0 -14
  298. package/dist/cdn/WIDTPVSU.js +0 -2
  299. package/dist/cdn/XER22VYQ.js +0 -3
  300. package/dist/cdn/YIMNOUTF.js +0 -2
@@ -23,7 +23,7 @@ import type { ArcgisAssistantUserMessage } from "../components/arcgis-assistant-
23
23
  import { HTMLAttributes } from "preact";
24
24
  import type { EventHandler } from "@arcgis/lumina";
25
25
 
26
- interface PreactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "assistantAvatarEnabled" | "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "suggestedPrompts">>, HTMLAttributes<ArcgisAssistant> {
26
+ interface PreactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "allowedAgentIds" | "alwaysUseAgentId" | "assistantAvatarEnabled" | "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "runtimeEventsEnabled" | "streamingDisabled" | "suggestedPrompts" | "userAvatarEnabled">>, HTMLAttributes<ArcgisAssistant> {
27
27
  onarcgisCancel?: EventHandler<ArcgisAssistant["arcgisCancel"]>;
28
28
  onarcgisError?: EventHandler<ArcgisAssistant["arcgisError"]>;
29
29
  onarcgisFeedback?: EventHandler<ArcgisAssistant["arcgisFeedback"]>;
@@ -33,11 +33,12 @@ interface PreactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "assistant
33
33
  onarcgisPromptSelect?: EventHandler<ArcgisAssistant["arcgisPromptSelect"]>;
34
34
  onarcgisReady?: EventHandler<ArcgisAssistant["arcgisReady"]>;
35
35
  onarcgisResponse?: EventHandler<ArcgisAssistant["arcgisResponse"]>;
36
+ onarcgisRuntime?: EventHandler<ArcgisAssistant["arcgisRuntime"]>;
36
37
  onarcgisSlottableRequest?: EventHandler<ArcgisAssistant["arcgisSlottableRequest"]>;
37
38
  onarcgisSubmit?: EventHandler<ArcgisAssistant["arcgisSubmit"]>;
38
39
  }
39
40
 
40
- interface PreactArcgisAssistantAgent extends Required<Pick<ArcgisAssistantAgent, "agent">>, Partial<Pick<ArcgisAssistantAgent, "context">>, HTMLAttributes<ArcgisAssistantAgent> {
41
+ interface PreactArcgisAssistantAgent extends Partial<Pick<ArcgisAssistantAgent, "agent" | "context" | "itemId" | "workflow">>, HTMLAttributes<ArcgisAssistantAgent> {
41
42
  }
42
43
 
43
44
  interface PreactArcgisAssistantDataExplorationAgent extends Partial<Pick<ArcgisAssistantDataExplorationAgent, "referenceElement">>, HTMLAttributes<ArcgisAssistantDataExplorationAgent> {
@@ -90,7 +91,7 @@ interface PreactArcgisAssistantMessageLog extends Partial<Pick<ArcgisAssistantMe
90
91
  interface PreactArcgisAssistantMessageReadAloud extends Partial<Pick<ArcgisAssistantMessageReadAloud, "message" | "readAloudEnabled">>, HTMLAttributes<ArcgisAssistantMessageReadAloud> {
91
92
  }
92
93
 
93
- interface PreactArcgisAssistantMessageText extends Partial<Pick<ArcgisAssistantMessageText, "content">>, HTMLAttributes<ArcgisAssistantMessageText> {
94
+ interface PreactArcgisAssistantMessageText extends Partial<Pick<ArcgisAssistantMessageText, "content" | "parts">>, HTMLAttributes<ArcgisAssistantMessageText> {
94
95
  }
95
96
 
96
97
  interface PreactArcgisAssistantSpeechInput extends Partial<Pick<ArcgisAssistantSpeechInput, "awaitingResponse" | "inputValue" | "language" | "mode">>, HTMLAttributes<ArcgisAssistantSpeechInput> {
@@ -107,7 +108,7 @@ interface PreactArcgisAssistantSuggestedPrompts extends Partial<Pick<ArcgisAssis
107
108
  onarcgisPromptSelect?: EventHandler<ArcgisAssistantSuggestedPrompts["arcgisPromptSelect"]>;
108
109
  }
109
110
 
110
- interface PreactArcgisAssistantUserMessage extends Partial<Pick<ArcgisAssistantUserMessage, "content" | "message" | "user">>, HTMLAttributes<ArcgisAssistantUserMessage> {
111
+ interface PreactArcgisAssistantUserMessage extends Partial<Pick<ArcgisAssistantUserMessage, "content" | "message" | "user" | "userAvatarEnabled">>, HTMLAttributes<ArcgisAssistantUserMessage> {
111
112
  }
112
113
 
113
114
  declare module 'preact' {
@@ -23,7 +23,7 @@ import type { ArcgisAssistantUserMessage } from "../components/arcgis-assistant-
23
23
  import type { HTMLProps } from 'react';
24
24
  import type { EventHandler } from "@arcgis/lumina";
25
25
 
26
- interface ReactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "assistantAvatarEnabled" | "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "suggestedPrompts">>, HTMLProps<ArcgisAssistant> {
26
+ interface ReactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "allowedAgentIds" | "alwaysUseAgentId" | "assistantAvatarEnabled" | "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "runtimeEventsEnabled" | "streamingDisabled" | "suggestedPrompts" | "userAvatarEnabled">>, HTMLProps<ArcgisAssistant> {
27
27
  onarcgisCancel?: EventHandler<ArcgisAssistant["arcgisCancel"]>;
28
28
  onarcgisError?: EventHandler<ArcgisAssistant["arcgisError"]>;
29
29
  onarcgisFeedback?: EventHandler<ArcgisAssistant["arcgisFeedback"]>;
@@ -33,11 +33,12 @@ interface ReactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "assistantA
33
33
  onarcgisPromptSelect?: EventHandler<ArcgisAssistant["arcgisPromptSelect"]>;
34
34
  onarcgisReady?: EventHandler<ArcgisAssistant["arcgisReady"]>;
35
35
  onarcgisResponse?: EventHandler<ArcgisAssistant["arcgisResponse"]>;
36
+ onarcgisRuntime?: EventHandler<ArcgisAssistant["arcgisRuntime"]>;
36
37
  onarcgisSlottableRequest?: EventHandler<ArcgisAssistant["arcgisSlottableRequest"]>;
37
38
  onarcgisSubmit?: EventHandler<ArcgisAssistant["arcgisSubmit"]>;
38
39
  }
39
40
 
40
- interface ReactArcgisAssistantAgent extends Required<Pick<ArcgisAssistantAgent, "agent">>, Partial<Pick<ArcgisAssistantAgent, "context">>, HTMLProps<ArcgisAssistantAgent> {
41
+ interface ReactArcgisAssistantAgent extends Partial<Pick<ArcgisAssistantAgent, "agent" | "context" | "itemId" | "workflow">>, HTMLProps<ArcgisAssistantAgent> {
41
42
  }
42
43
 
43
44
  interface ReactArcgisAssistantDataExplorationAgent extends Partial<Pick<ArcgisAssistantDataExplorationAgent, "referenceElement">>, HTMLProps<ArcgisAssistantDataExplorationAgent> {
@@ -90,7 +91,7 @@ interface ReactArcgisAssistantMessageLog extends Partial<Pick<ArcgisAssistantMes
90
91
  interface ReactArcgisAssistantMessageReadAloud extends Partial<Pick<ArcgisAssistantMessageReadAloud, "message" | "readAloudEnabled">>, HTMLProps<ArcgisAssistantMessageReadAloud> {
91
92
  }
92
93
 
93
- interface ReactArcgisAssistantMessageText extends Partial<Pick<ArcgisAssistantMessageText, "content">>, HTMLProps<ArcgisAssistantMessageText> {
94
+ interface ReactArcgisAssistantMessageText extends Partial<Pick<ArcgisAssistantMessageText, "content" | "parts">>, HTMLProps<ArcgisAssistantMessageText> {
94
95
  }
95
96
 
96
97
  interface ReactArcgisAssistantSpeechInput extends Partial<Pick<ArcgisAssistantSpeechInput, "awaitingResponse" | "inputValue" | "language" | "mode">>, HTMLProps<ArcgisAssistantSpeechInput> {
@@ -107,7 +108,7 @@ interface ReactArcgisAssistantSuggestedPrompts extends Partial<Pick<ArcgisAssist
107
108
  onarcgisPromptSelect?: EventHandler<ArcgisAssistantSuggestedPrompts["arcgisPromptSelect"]>;
108
109
  }
109
110
 
110
- interface ReactArcgisAssistantUserMessage extends Partial<Pick<ArcgisAssistantUserMessage, "content" | "message" | "user">>, HTMLProps<ArcgisAssistantUserMessage> {
111
+ interface ReactArcgisAssistantUserMessage extends Partial<Pick<ArcgisAssistantUserMessage, "content" | "message" | "user" | "userAvatarEnabled">>, HTMLProps<ArcgisAssistantUserMessage> {
111
112
  }
112
113
 
113
114
  declare module "react" {
@@ -23,7 +23,7 @@ import type { ArcgisAssistantUserMessage } from "../components/arcgis-assistant-
23
23
  import { JSXBase as StencilJsx } from "@stencil/core/internal";
24
24
  import type { EventHandler } from "@arcgis/lumina";
25
25
 
26
- interface StencilArcgisAssistant extends Partial<Pick<ArcgisAssistant, "assistantAvatarEnabled" | "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "suggestedPrompts">>, StencilJsx.HTMLAttributes<ArcgisAssistant> {
26
+ interface StencilArcgisAssistant extends Partial<Pick<ArcgisAssistant, "allowedAgentIds" | "alwaysUseAgentId" | "assistantAvatarEnabled" | "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "runtimeEventsEnabled" | "streamingDisabled" | "suggestedPrompts" | "userAvatarEnabled">>, StencilJsx.HTMLAttributes<ArcgisAssistant> {
27
27
  onArcgisCancel?: EventHandler<ArcgisAssistant["arcgisCancel"]>;
28
28
  onArcgisError?: EventHandler<ArcgisAssistant["arcgisError"]>;
29
29
  onArcgisFeedback?: EventHandler<ArcgisAssistant["arcgisFeedback"]>;
@@ -33,11 +33,12 @@ interface StencilArcgisAssistant extends Partial<Pick<ArcgisAssistant, "assistan
33
33
  onArcgisPromptSelect?: EventHandler<ArcgisAssistant["arcgisPromptSelect"]>;
34
34
  onArcgisReady?: EventHandler<ArcgisAssistant["arcgisReady"]>;
35
35
  onArcgisResponse?: EventHandler<ArcgisAssistant["arcgisResponse"]>;
36
+ onArcgisRuntime?: EventHandler<ArcgisAssistant["arcgisRuntime"]>;
36
37
  onArcgisSlottableRequest?: EventHandler<ArcgisAssistant["arcgisSlottableRequest"]>;
37
38
  onArcgisSubmit?: EventHandler<ArcgisAssistant["arcgisSubmit"]>;
38
39
  }
39
40
 
40
- interface StencilArcgisAssistantAgent extends Required<Pick<ArcgisAssistantAgent, "agent">>, Partial<Pick<ArcgisAssistantAgent, "context">>, StencilJsx.HTMLAttributes<ArcgisAssistantAgent> {
41
+ interface StencilArcgisAssistantAgent extends Partial<Pick<ArcgisAssistantAgent, "agent" | "context" | "itemId" | "workflow">>, StencilJsx.HTMLAttributes<ArcgisAssistantAgent> {
41
42
  }
42
43
 
43
44
  interface StencilArcgisAssistantDataExplorationAgent extends Partial<Pick<ArcgisAssistantDataExplorationAgent, "referenceElement">>, StencilJsx.HTMLAttributes<ArcgisAssistantDataExplorationAgent> {
@@ -90,7 +91,7 @@ interface StencilArcgisAssistantMessageLog extends Partial<Pick<ArcgisAssistantM
90
91
  interface StencilArcgisAssistantMessageReadAloud extends Partial<Pick<ArcgisAssistantMessageReadAloud, "message" | "readAloudEnabled">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessageReadAloud> {
91
92
  }
92
93
 
93
- interface StencilArcgisAssistantMessageText extends Partial<Pick<ArcgisAssistantMessageText, "content">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessageText> {
94
+ interface StencilArcgisAssistantMessageText extends Partial<Pick<ArcgisAssistantMessageText, "content" | "parts">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessageText> {
94
95
  }
95
96
 
96
97
  interface StencilArcgisAssistantSpeechInput extends Partial<Pick<ArcgisAssistantSpeechInput, "awaitingResponse" | "inputValue" | "language" | "mode">>, StencilJsx.HTMLAttributes<ArcgisAssistantSpeechInput> {
@@ -107,7 +108,7 @@ interface StencilArcgisAssistantSuggestedPrompts extends Partial<Pick<ArcgisAssi
107
108
  onArcgisPromptSelect?: EventHandler<ArcgisAssistantSuggestedPrompts["arcgisPromptSelect"]>;
108
109
  }
109
110
 
110
- interface StencilArcgisAssistantUserMessage extends Partial<Pick<ArcgisAssistantUserMessage, "content" | "message" | "user">>, StencilJsx.HTMLAttributes<ArcgisAssistantUserMessage> {
111
+ interface StencilArcgisAssistantUserMessage extends Partial<Pick<ArcgisAssistantUserMessage, "content" | "message" | "user" | "userAvatarEnabled">>, StencilJsx.HTMLAttributes<ArcgisAssistantUserMessage> {
111
112
  }
112
113
 
113
114
  interface ExposedElements {
@@ -138,8 +139,8 @@ export namespace JSX {
138
139
  export interface IntrinsicElements extends ExposedElements {}
139
140
  }
140
141
 
141
- declare module "@stencil/core/internal/stencil-public-runtime" {
142
- export namespace h.JSX {
142
+ declare module "@stencil/core" {
143
+ export namespace JSX {
143
144
  interface IntrinsicElements extends ExposedElements {}
144
145
  }
145
146
  }
@@ -10,6 +10,7 @@ import type { ZodType } from "zod";
10
10
 
11
11
  export { type CustomConfigurableType } from "../orchestrator.js";
12
12
  export { Orchestrator } from "../orchestrator.js";
13
+ export { type AskOptions } from "../orchestrator.js";
13
14
 
14
15
  /** @internal */
15
16
  export type ChatModelTier = "advanced" | "default" | "fast";
@@ -143,31 +144,25 @@ export type ArcgisPromptOptions = {
143
144
  /**
144
145
  * The model tier to use. See the following options:
145
146
  *
146
- * - `default` - The default model tier, which provides a balance of performance and cost.
147
- * This is suitable for most general-purpose use cases. At JS SDK v5.0, this model
148
- * tier corresponds to GPT-5 mini model.
149
- * - `advanced` - An advanced model tier that may provide improved accuracy or capabilities compared to
150
- * the default tier. However, it may also come with increased cost and slower performance. At
151
- * JS SDK v5.0, this model tier corresponds to GPT-5.2 model.
152
- * - `fast` - A lower cost model suitable for tasks like classification and summarization. This tier may have limitations in terms of response length and complexity.
153
- * New at JS SDK v5.1, this model tier corresponds to GPT-5.4-nano 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.
154
154
  *
155
- * The specific models available in each tier may evolve over time as new models are released and existing
156
- * models are retired. The dates models are retired depends on the model provider and therefore may not
157
- * align with the semantic versioning rules of the JS SDK. Therefore, the user experience of apps may break
158
- * in a minor version update of the JS SDK. It is important to keep your implementation flexible and test your prompts
159
- * regularly to ensure they continue to perform as expected, especially when updating the JS SDK version or
160
- * when new models are released.
161
- *
162
- * Note that the same prompt will not necessarily produce the same results across different
163
- * models. As models are updated, you will need to re-evaluate the prompts you send to the LLM, including
164
- * agent descriptions and tool node descriptions to
165
- * 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.
166
160
  */
167
161
  modelTier?: ChatModelTier;
168
162
  /**
169
- * The temperature to use for the model (a number between 0 and 1). Higher values will result in more
170
- * 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.
171
166
  */
172
167
  temperature?: number;
173
168
  /**
@@ -177,8 +172,8 @@ export type ArcgisPromptOptions = {
177
172
  * and produce more accurate and relevant responses.
178
173
  */
179
174
  messages?: ChatHistory;
180
- /** Abort signal for cooperative run cancellation. */
181
- abortSignal?: AbortSignal;
175
+ /** Optional runnable configuration used to derive runtime values (for example, conversation id and abort signal). */
176
+ config?: RunnableConfig;
182
177
  /**
183
178
  * Input variables for the prompt. This can include any relevant variables related to the context
184
179
  * provided to the agent. This may be necessary for determining tool parameters or for providing additional
@@ -255,8 +250,7 @@ export interface TraceEventData {
255
250
  * Sends a prompt to an LLM and returns a plain text response. This function should be used when you expect
256
251
  * a simple text response from the model without the need for structured parsing or tool invocation.
257
252
  *
258
- * @param options - Options for the prompt, including the prompt text, model tier,
259
- * temperature, chat history, and input variables.
253
+ * @param options - Options for the prompt, including the prompt text, model tier, chat history, and input variables.
260
254
  * @returns The model response.
261
255
  * @since 5.0
262
256
  * @see [Custom agents guide](https://developers.arcgis.com/javascript/latest/agentic-apps/ai-custom-agents/)
@@ -374,6 +368,8 @@ export interface AgentExecutionContext<TState extends Record<string, unknown> =
374
368
  priorSteps: PriorStep[];
375
369
  /** Shared state available to the agent. */
376
370
  sharedState: SharedState<TState>;
371
+ /** The 50 most recent resources created by agents in the conversation. */
372
+ sharedResources: readonly SharedResource[];
377
373
  }
378
374
 
379
375
  /** @internal */
@@ -460,34 +456,30 @@ export interface AgentWithContext<TContext extends Record<string, unknown> = Rec
460
456
  export type AgentExecutionContextWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>> = AgentExecutionContext<TState>;
461
457
 
462
458
  /** @internal */
463
- export type StatelessAgentBaseState<TState extends Record<string, unknown> = Record<string, unknown>> = {
459
+ export type AgentBaseState<TState extends Record<string, unknown> = Record<string, unknown>> = {
464
460
  agentExecutionContext: BaseChannel<AgentExecutionContextWithSharedState<TState>, unknown, unknown>;
465
461
  outputMessage: BaseChannel<string, unknown, unknown>;
466
462
  summary: BaseChannel<string, unknown, unknown>;
467
463
  status: BaseChannel<AgentStatus | undefined, unknown, unknown>;
468
- };
469
-
470
- /** @internal */
471
- export type StatefulAgentBaseState<TState extends Record<string, unknown> = Record<string, unknown>> = StatelessAgentBaseState<TState>
472
- & {
473
464
  sharedStatePatch: BaseChannel<SharedStatePatch<TState> | undefined, unknown, unknown>;
465
+ sharedResourceAdditions: BaseChannel<readonly SharedResourceInput[] | undefined, unknown, unknown>;
474
466
  };
475
467
 
476
468
  /**
477
469
  * Creates the standard runtime state for a custom agent graph.
478
- * Includes common fields used by the assistant flow (request context, output message, summary, and status), so you only add your agent-specific state.
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.
479
471
  *
480
472
  * @since 5.1
481
473
  */
482
- export function createAgentRuntimeState<TState extends Record<string, unknown> = Record<string, unknown>>(): StatelessAgentBaseState<TState>;
474
+ export function createAgentRuntimeState<TState extends Record<string, unknown> = Record<string, unknown>>(): AgentBaseState<TState>;
483
475
 
484
476
  /**
485
- * Creates the standard runtime state for a custom agent graph, plus support for shared state updates.
486
- * Use this when your agent needs to write values that other agents can read later in the same orchestration flow.
477
+ * Use `createAgentRuntimeState` instead.
487
478
  *
479
+ * @deprecated Use `createAgentRuntimeState` instead.
488
480
  * @since 5.1
489
481
  */
490
- export function createAgentRuntimeStateWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>>(): StatefulAgentBaseState<TState>;
482
+ export function createAgentRuntimeStateWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>>(): AgentBaseState<TState>;
491
483
 
492
484
  /**
493
485
  * Sends an optional UX suggestion from an agent run to the host application.
@@ -531,12 +523,47 @@ export type SharedStatePatch<T extends Record<string, unknown> = Record<string,
531
523
  [K in keyof T]?: SharedStatePatchEntry<T[K]>;
532
524
  };
533
525
 
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
+
534
562
  /**
535
563
  * @param parameter0
536
564
  * @internal
537
565
  */
538
566
  export function createChatModel(parameter0?: {
539
567
  modelTier?: ChatModelTier;
540
- temperature?: number;
541
- abortSignal?: AbortSignal;
568
+ config?: RunnableConfig;
542
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(), s = [], n = /* @__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
- n.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
- s.push(m);
22
+ o.push(m);
21
23
  }
22
- return await Promise.all(s), n;
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: s } = await U(t), n = {
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: s
38
- }, a = S.safeParse(n);
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 = [], s = [];
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,47 +71,46 @@ const I = async (e) => {
69
71
  vector: []
70
72
  });
71
73
  }
72
- s.push(d);
74
+ o.push(d);
73
75
  }
74
- const n = await p(t);
76
+ const s = await p(t);
75
77
  let a = 0;
76
- return { layers: s.map((o) => (o.vector = n[a++], o.fields.forEach((r) => {
77
- r.vector = n[a++];
78
- }), o)) };
79
- }, g = (e, t) => e.replace(/\{(\w+)\}/gu, (s, n) => t[n] ?? ""), 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 s = 0, n = 0, a = 0;
83
- for (let r = 0; r < e.length; ++r) {
84
- const i = e[r], l = t[r];
85
- s += i * l, n += 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
- const m = Math.sqrt(n * a);
89
+ const m = Math.sqrt(s * a);
88
90
  if (m === 0)
89
91
  return 0;
90
- const o = s / 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 ({
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 ({
93
95
  modelTier: e = "default",
94
- temperature: t = 0,
95
- abortSignal: s
96
- } = {}) => await k({ modelTier: e, temperature: t, abortSignal: s });
96
+ config: t
97
+ } = {}) => await R({ modelTier: e, config: t });
97
98
  export {
98
- ie as ArcgisKnowledgeAgent,
99
- oe as DataExplorationAgent,
100
- re as HelpAgent,
99
+ me as ArcgisKnowledgeAgent,
100
+ ie as DataExplorationAgent,
101
+ ce as HelpAgent,
101
102
  ne as LayerStylingAgent,
102
- se as NavigationAgent,
103
- ye as Orchestrator,
104
- ae as cosineSimilarity,
105
- me as createAgentRuntimeState,
106
- le as createAgentRuntimeStateWithSharedState,
107
- ge as createChatModel,
108
- ce as createWebmapEmbeddings,
109
- te as getEmbeddings,
110
- Y as invokeStructuredPrompt,
111
- Q as invokeTextPrompt,
112
- Z as invokeToolPrompt,
113
- ee as sendTraceMessage,
114
- 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
115
116
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/ai-components",
3
- "version": "5.2.0-next.10",
3
+ "version": "5.2.0-next.101",
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.101",
62
+ "@arcgis/toolkit": "5.2.0-next.101",
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.5",
69
+ "marked": "~18.0.11",
48
70
  "tslib": "^2.8.1",
49
- "zod": "^4.3.6",
50
- "@arcgis/lumina": "5.2.0-next.10",
51
- "@arcgis/toolkit": "5.2.0-next.10"
71
+ "zod": "^4.4.3"
52
72
  },
53
73
  "peerDependencies": {
54
- "@arcgis/core": "^5.2.0-next",
55
- "@esri/calcite-components": "^5.1.1-next.3",
56
- "@arcgis/map-components": "~5.2.0-next.10"
74
+ "@arcgis/core": "5.2.0-next.101",
75
+ "@arcgis/map-components": "~5.2.0-next.101",
76
+ "@esri/calcite-components": "^5.2.0-next.65"
57
77
  },
58
78
  "css.customData": [
59
79
  "dist/docs/vscode.css-custom-data.json"