@arcgis/ai-components 5.2.0-next.110 → 5.2.0-next.111

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 (290) hide show
  1. package/dist/agent-utils/BaseAgent.js +1 -1
  2. package/dist/agent-utils/FunctionAgent.js +1 -1
  3. package/dist/agent-utils/LLMAgent.d.ts +4 -5
  4. package/dist/agent-utils/LLMAgent.js +59 -59
  5. package/dist/agent-utils/WorkflowAgent.js +1 -1
  6. package/dist/agent-utils/index.js +1 -1
  7. package/dist/agent-utils/middlewares/humanInTheLoop.js +1 -1
  8. package/dist/agent-utils/middlewares/middleware.js +1 -1
  9. package/dist/agent-utils/middlewares/trace.js +6 -6
  10. package/dist/agent-utils/middlewares/types.js +1 -1
  11. package/dist/agent-utils/tools/FunctionTool.js +1 -1
  12. package/dist/agent-utils/workflows/ConditionalWorkflow.js +1 -1
  13. package/dist/agent-utils/workflows/LoopWorkflow.js +1 -1
  14. package/dist/agent-utils/workflows/ParallelWorkflow.js +1 -1
  15. package/dist/agent-utils/workflows/RouterWorkflow.js +1 -1
  16. package/dist/agent-utils/workflows/SequentialWorkflow.js +1 -1
  17. package/dist/agent-utils/workflows/SwitchWorkflow.js +1 -1
  18. package/dist/agentic-workflow/jsonTypes.d.ts +48 -8
  19. package/dist/agentic-workflow/nodes/HumanInTheLoopNode.d.ts +37 -0
  20. package/dist/agentic-workflow/types.d.ts +1 -1
  21. package/dist/agents/runtime/skill/createSkillAgent.d.ts +0 -1
  22. package/dist/agents/runtime/skill/createSkillAgent.js +50 -50
  23. package/dist/agents/runtime/skill/types.d.ts +2 -10
  24. package/dist/agents/runtime/skill/types.js +1 -1
  25. package/dist/agents/tools/filter/clearFilters/adapter.js +1 -1
  26. package/dist/agents/tools/filter/resetMap/adapter.js +1 -1
  27. package/dist/agents/tools/filter/setFeatureEffect/adapter.js +1 -1
  28. package/dist/agents/tools/help/listFields/adapter.js +1 -1
  29. package/dist/agents/tools/navigation/goToAddress/adapter.js +1 -1
  30. package/dist/agents/tools/navigation/goToBookmark/adapter.js +1 -1
  31. package/dist/agents/tools/navigation/goToFeatures/adapter.js +1 -1
  32. package/dist/agents/tools/navigation/goToFullExtent/adapter.js +1 -1
  33. package/dist/agents/tools/navigation/goToHomeExtent/adapter.js +1 -1
  34. package/dist/agents/tools/navigation/goToLayer/adapter.js +1 -1
  35. package/dist/agents/tools/navigation/goToScale/adapter.js +1 -1
  36. package/dist/agents/tools/navigation/goToViewpoint/adapter.js +1 -1
  37. package/dist/agents/tools/navigation/goToZoom/adapter.js +1 -1
  38. package/dist/agents/tools/query/getAttribute/adapter.js +1 -1
  39. package/dist/agents/tools/query/getStatistics/adapter.js +1 -1
  40. package/dist/agents/tools/query/getTopFeatures/adapter.js +1 -1
  41. package/dist/agents/tools/query/queryFeatures/adapter.js +1 -1
  42. package/dist/agents/tools/search/findRelevantFields/adapter.js +1 -1
  43. package/dist/agents/tools/search/findRelevantLayers/adapter.js +1 -1
  44. package/dist/agents/tools/shared/resolveToolArtifact.js +1 -1
  45. package/dist/agents/tools/shared/types.js +1 -1
  46. package/dist/cdn/2BNQ6A6J.js +2 -0
  47. package/dist/cdn/{FV6FHLYW.js → 2MWUBKWI.js} +2 -2
  48. package/dist/cdn/{GW3IVAAZ.js → 2O4DON37.js} +2 -2
  49. package/dist/cdn/{LL324IL6.js → 2W7LK4HA.js} +2 -2
  50. package/dist/cdn/33PB7ALY.js +2 -0
  51. package/dist/cdn/{FK2CVSXW.js → 33SFAZQG.js} +4 -4
  52. package/dist/cdn/{LLY5A2E2.js → 34O57OGV.js} +1 -1
  53. package/dist/cdn/{OALQBAZR.js → 3UEKINYC.js} +2 -2
  54. package/dist/cdn/434TAA3J.js +2 -0
  55. package/dist/cdn/{ZWIKFBOU.js → 4IU63OWQ.js} +2 -2
  56. package/dist/cdn/{XRVGYRXL.js → 5A355PGH.js} +2 -2
  57. package/dist/cdn/{TB2GJALS.js → 5HBAJ57P.js} +2 -2
  58. package/dist/cdn/{7Y43R7QJ.js → 5MK44FNO.js} +2 -2
  59. package/dist/cdn/{LXIKAXUT.js → 5Q2XRQS6.js} +2 -2
  60. package/dist/cdn/{UAZPINUQ.js → 6ECRQVHY.js} +2 -2
  61. package/dist/cdn/{BBEGLIZC.js → 6OOZSZRJ.js} +2 -2
  62. package/dist/cdn/6OUIUXAJ.js +2 -0
  63. package/dist/cdn/{Y4TYL2AL.js → 6P44KOKX.js} +2 -2
  64. package/dist/cdn/{LBTGOMCT.js → 73TMZQI5.js} +2 -2
  65. package/dist/cdn/{BJMGT6GV.js → 74CVYM72.js} +2 -2
  66. package/dist/cdn/{PJPP6LOS.js → 7EHOFQ2P.js} +2 -2
  67. package/dist/cdn/{24EIZVUM.js → 7KSFIRXB.js} +2 -2
  68. package/dist/cdn/{STOGCXJH.js → AHCXG7XF.js} +2 -2
  69. package/dist/cdn/{VLPELJUS.js → AOVJ34QE.js} +2 -2
  70. package/dist/cdn/{3KNLFIM3.js → APFZY4PI.js} +2 -2
  71. package/dist/cdn/{KBSXHSBX.js → AVRS6UCQ.js} +2 -2
  72. package/dist/cdn/{YOW3YKWR.js → AVZ5Y6BK.js} +2 -2
  73. package/dist/cdn/{477I66FH.js → AXTQU5YL.js} +11 -11
  74. package/dist/cdn/BBPD2AS7.js +2 -0
  75. package/dist/cdn/{HV7MVIQV.js → BFZ5S7NF.js} +2 -2
  76. package/dist/cdn/{HMMYCSOK.js → BL273EGZ.js} +2 -2
  77. package/dist/cdn/C7JPWFZE.js +2 -0
  78. package/dist/cdn/{KKCLHXHG.js → CCC6LBMY.js} +1 -1
  79. package/dist/cdn/{NNPA3NLK.js → CEKOEHB3.js} +2 -2
  80. package/dist/cdn/{W54XYT2A.js → CFAC4FN3.js} +2 -2
  81. package/dist/cdn/{53KIFJFA.js → COH3QXWG.js} +2 -2
  82. package/dist/cdn/{CX2HJ67C.js → DB2TFPIO.js} +2 -2
  83. package/dist/cdn/{EYGZJKVD.js → DE26DAW5.js} +2 -2
  84. package/dist/cdn/DG27JEYG.js +50 -0
  85. package/dist/cdn/DKA6PSYN.js +2 -0
  86. package/dist/cdn/{65LCK3GG.js → DQ2Z65UO.js} +2 -2
  87. package/dist/cdn/DWH23NJN.js +2 -0
  88. package/dist/cdn/EDXTPEEU.js +2 -0
  89. package/dist/cdn/{6KWGSXIN.js → ENM3L4AC.js} +2 -2
  90. package/dist/cdn/{XV7RMYLR.js → EVMIYZWD.js} +2 -2
  91. package/dist/cdn/{FHBRXZLV.js → EYOWRGDP.js} +2 -2
  92. package/dist/cdn/{45BDE3MG.js → EYY367WR.js} +2 -2
  93. package/dist/cdn/{27CK3JHY.js → F5NIRETW.js} +2 -2
  94. package/dist/cdn/{TFAJNKBC.js → FCI6M62J.js} +2 -2
  95. package/dist/cdn/{V4PJMCJZ.js → FDOMMK2M.js} +1 -1
  96. package/dist/cdn/{4OI4QEV7.js → FS7GXTTQ.js} +2 -2
  97. package/dist/cdn/{IHUWQOMK.js → FYZATVB3.js} +2 -2
  98. package/dist/cdn/{3PPXAIRE.js → H6P3WP5D.js} +2 -2
  99. package/dist/cdn/HHP5YLUI.js +2 -0
  100. package/dist/cdn/HIAQARIQ.js +2 -0
  101. package/dist/cdn/HMIDFTEI.js +2 -0
  102. package/dist/cdn/{4CFCV47G.js → HMNBUGH2.js} +2 -2
  103. package/dist/cdn/HR6GWPKX.js +2 -0
  104. package/dist/cdn/{V266DJ5V.js → ICBIUFK7.js} +2 -2
  105. package/dist/cdn/{BTOBEN7Q.js → IH26MIYY.js} +2 -2
  106. package/dist/cdn/{QAX6UF4L.js → IHP25JWI.js} +2 -2
  107. package/dist/cdn/{M2U456J5.js → IYLFJCJ2.js} +4 -4
  108. package/dist/cdn/{JMXXRRKQ.js → J6A4AS7E.js} +2 -2
  109. package/dist/cdn/{QTEPFTAU.js → JEBRN3EU.js} +2 -2
  110. package/dist/cdn/{G24MNC7D.js → JICNSK6Y.js} +2 -2
  111. package/dist/cdn/JQYLMTDP.js +2 -0
  112. package/dist/cdn/{275FFTBE.js → K5JVB6FU.js} +2 -2
  113. package/dist/cdn/K7XWGSLN.js +2 -0
  114. package/dist/cdn/{M3KKORBG.js → K7YQIJFT.js} +2 -2
  115. package/dist/cdn/KH4V4I3W.js +2 -0
  116. package/dist/cdn/KMLJS2VW.js +2 -0
  117. package/dist/cdn/{HNTSDY3J.js → LAVFUDUG.js} +2 -2
  118. package/dist/cdn/{L3BTURBA.js → LK7ZIQW6.js} +2 -2
  119. package/dist/cdn/{ZJWR4W2S.js → LOQ2PKV5.js} +58 -58
  120. package/dist/cdn/{X42ACC66.js → LXPGQNXQ.js} +2 -2
  121. package/dist/cdn/{TXZQZR3I.js → MJSIYEWN.js} +2 -2
  122. package/dist/cdn/{CSE6BHOJ.js → MWYBF3F3.js} +2 -2
  123. package/dist/cdn/{FDRAKF5D.js → MXTXJKFE.js} +2 -2
  124. package/dist/cdn/{7DOYUO7L.js → NEV6OZN3.js} +2 -2
  125. package/dist/cdn/{NBDOPGSN.js → O4NVW75A.js} +2 -2
  126. package/dist/cdn/{ZA7ZU2F7.js → OKVLGJAG.js} +2 -2
  127. package/dist/cdn/{SUC2MIGE.js → OMF6ITSG.js} +2 -2
  128. package/dist/cdn/{A6LBMS7A.js → ONQ6JSBJ.js} +1 -1
  129. package/dist/cdn/{CKUUYQLO.js → OZAZ277H.js} +2 -2
  130. package/dist/cdn/{2UJPYWWZ.js → P4GFYBBO.js} +2 -2
  131. package/dist/cdn/{XNUWVZN7.js → P4XZMBU5.js} +2 -2
  132. package/dist/cdn/{L2HLFWCV.js → POL6HKCG.js} +3 -3
  133. package/dist/cdn/{AP3KPOHN.js → POZYDAU2.js} +2 -2
  134. package/dist/cdn/{FTTLFIBV.js → PQ2DPOFM.js} +2 -2
  135. package/dist/cdn/{JUNMTIB3.js → PYGX4HN7.js} +2 -2
  136. package/dist/cdn/{ZY3JQCZQ.js → QNXI3WOF.js} +36 -36
  137. package/dist/cdn/{4VBOTWC3.js → QRMRID2M.js} +2 -2
  138. package/dist/cdn/{TLPZELG3.js → R74ZHFA6.js} +1 -1
  139. package/dist/cdn/{CAOMMQSY.js → RFVZ7KCG.js} +1 -1
  140. package/dist/cdn/{OF3TAARW.js → RHYNE5OE.js} +1 -1
  141. package/dist/cdn/{4YOG5F3W.js → RLEHNAIA.js} +1 -1
  142. package/dist/cdn/{RSM7MEVT.js → ROQGPAR5.js} +2 -2
  143. package/dist/cdn/RXF2NUOL.js +2 -0
  144. package/dist/cdn/{MZUDIQQH.js → SDWWUWAF.js} +2 -2
  145. package/dist/cdn/SHI76XUV.js +2 -0
  146. package/dist/cdn/SITY6L4S.js +2 -0
  147. package/dist/cdn/STHBRTTD.js +2 -0
  148. package/dist/cdn/{7UBTNDV6.js → SXM4NUT5.js} +2 -2
  149. package/dist/cdn/{XVJFPZTW.js → SZRJTQ54.js} +2 -2
  150. package/dist/cdn/TO2NY7EA.js +2 -0
  151. package/dist/cdn/{4IWDBEMN.js → TPULIO6I.js} +2 -2
  152. package/dist/cdn/TVEEQSMF.js +2 -0
  153. package/dist/cdn/TWU3QXAS.js +2 -0
  154. package/dist/cdn/{EGRRZTF6.js → TYATJUNF.js} +2 -2
  155. package/dist/cdn/UCTC4JN4.js +3 -0
  156. package/dist/cdn/{HI3XKFHD.js → UDRKUVZP.js} +2 -2
  157. package/dist/cdn/{JYNHWJUZ.js → UHEYPSOR.js} +2 -2
  158. package/dist/cdn/{VGLBH473.js → UHICISBZ.js} +2 -2
  159. package/dist/cdn/UO5PBOQR.js +2 -0
  160. package/dist/cdn/{BVUCNXC5.js → UZLQALHY.js} +1 -1
  161. package/dist/cdn/{SNG3WODY.js → V6HOUZPZ.js} +2 -2
  162. package/dist/cdn/{V52GSTOC.js → V7Y22FRP.js} +2 -2
  163. package/dist/cdn/{I72ST4JR.js → VAXH6RUQ.js} +2 -2
  164. package/dist/cdn/{NV7CL4S3.js → VNLSYVPE.js} +2 -2
  165. package/dist/cdn/VR3CF3ZY.js +2 -0
  166. package/dist/cdn/{VK6CCPTG.js → VWP2B4LB.js} +2 -2
  167. package/dist/cdn/VXFQANGJ.js +2 -0
  168. package/dist/cdn/WKZHFSH3.js +2 -0
  169. package/dist/cdn/{OXC2WP7W.js → WSWB3B7B.js} +2 -2
  170. package/dist/cdn/{EK3PM4L5.js → WVP73XWD.js} +2 -2
  171. package/dist/cdn/{SJMAKF4P.js → WXQ26G5Q.js} +2 -2
  172. package/dist/cdn/{2F4TPWZQ.js → XQ3NBBQ3.js} +1 -1
  173. package/dist/cdn/{VXLKTQ36.js → YHWYTHID.js} +2 -2
  174. package/dist/cdn/{XOTPSCNF.js → YIZ7PR2G.js} +2 -2
  175. package/dist/cdn/{T6W6F4TF.js → Z5XQLSYH.js} +2 -2
  176. package/dist/cdn/{Y6CV2NZR.js → ZFOG3KXV.js} +2 -2
  177. package/dist/cdn/{FPH52WOH.js → ZU2FHVNK.js} +2 -2
  178. package/dist/cdn/agent-utils/index.js +2 -2
  179. package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +2 -3
  180. package/dist/cdn/agent-utils/middlewares/middleware.js +2 -2
  181. package/dist/cdn/agent-utils/middlewares/trace.js +2 -2
  182. package/dist/cdn/index.js +2 -2
  183. package/dist/chunks/BaseWorkflow.js +1 -1
  184. package/dist/chunks/SKILL.js +1 -1
  185. package/dist/chunks/SKILL2.js +1 -1
  186. package/dist/chunks/SKILL3.js +1 -1
  187. package/dist/chunks/SKILL4.js +1 -1
  188. package/dist/chunks/adapter.js +1 -1
  189. package/dist/chunks/aiFactory.js +56 -50
  190. package/dist/chunks/arcgisKnowledgeGraph.js +2 -2
  191. package/dist/chunks/arcgisToolRegistry.js +1 -1
  192. package/dist/chunks/arcgis_knowledge_current_lc_context.js +1 -1
  193. package/dist/chunks/arcgis_knowledge_current_map_context.js +1 -1
  194. package/dist/chunks/arcgis_knowledge_cypher_query_prompt.js +1 -1
  195. package/dist/chunks/arcgis_knowledge_lucene_generation_prompt.js +1 -1
  196. package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +1 -1
  197. package/dist/chunks/arcgis_knowledge_tool_prompt.js +1 -1
  198. package/dist/chunks/baseAgentState.js +1 -1
  199. package/dist/chunks/converterUtils.js +1 -1
  200. package/dist/chunks/dataExplorationAgent.js +1 -1
  201. package/dist/chunks/data_explore_filter_prompt.js +1 -1
  202. package/dist/chunks/data_explore_query_prompt.js +1 -1
  203. package/dist/chunks/embeddings.worker.js +1 -1
  204. package/dist/chunks/fetchAgentContext.js +1 -1
  205. package/dist/chunks/fetchService.js +1 -1
  206. package/dist/chunks/fieldStatistics.js +1 -1
  207. package/dist/chunks/field_descriptions_prompt.js +1 -1
  208. package/dist/chunks/formatFeatureAttributes.js +1 -1
  209. package/dist/chunks/generateLayerDescriptions.js +60 -63
  210. package/dist/chunks/graph.js +1 -1
  211. package/dist/chunks/helpAgent.js +1 -1
  212. package/dist/chunks/help_prompt.js +1 -1
  213. package/dist/chunks/index.js +1 -1
  214. package/dist/chunks/intent_prompt.js +1 -1
  215. package/dist/chunks/layerStylingGraph.js +1 -1
  216. package/dist/chunks/layer_descriptions_prompt.js +1 -1
  217. package/dist/chunks/layer_styling_prompt.js +1 -1
  218. package/dist/chunks/mergeWhereClauses.js +1 -1
  219. package/dist/chunks/navigationAgent.js +1 -1
  220. package/dist/chunks/navigation_intent_prompt.js +1 -1
  221. package/dist/chunks/navigation_tool_prompt.js +1 -1
  222. package/dist/chunks/orchestrator.js +1 -1
  223. package/dist/chunks/requireAgentServices.js +1 -1
  224. package/dist/chunks/resolvePointGeometryFilter.js +1 -1
  225. package/dist/chunks/runtime.js +1 -1
  226. package/dist/chunks/slottableRequestUtils.js +1 -1
  227. package/dist/chunks/state.js +26 -26
  228. package/dist/chunks/summarize_query_response_prompt.js +1 -1
  229. package/dist/chunks/useT9n.js +1 -1
  230. package/dist/chunks/utils.js +1 -1
  231. package/dist/chunks/utils2.js +1 -1
  232. package/dist/chunks/utils3.js +1 -1
  233. package/dist/components/arcgis-assistant/customElement.js +1 -1
  234. package/dist/components/arcgis-assistant-agent/customElement.js +362 -220
  235. package/dist/components/arcgis-assistant-chat/customElement.js +1 -1
  236. package/dist/components/arcgis-assistant-chat-entry/customElement.js +1 -1
  237. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +1 -1
  238. package/dist/components/arcgis-assistant-help-agent/customElement.js +1 -1
  239. package/dist/components/arcgis-assistant-interrupt/customElement.js +1 -1
  240. package/dist/components/arcgis-assistant-interrupt-preview/customElement.js +1 -1
  241. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +1 -1
  242. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +1 -1
  243. package/dist/components/arcgis-assistant-message/customElement.js +1 -1
  244. package/dist/components/arcgis-assistant-message-block/customElement.js +1 -1
  245. package/dist/components/arcgis-assistant-message-feedback/customElement.js +1 -1
  246. package/dist/components/arcgis-assistant-message-footer/customElement.js +1 -1
  247. package/dist/components/arcgis-assistant-message-loading/customElement.js +1 -1
  248. package/dist/components/arcgis-assistant-message-log/customElement.js +1 -1
  249. package/dist/components/arcgis-assistant-message-read-aloud/customElement.js +1 -1
  250. package/dist/components/arcgis-assistant-message-text/customElement.js +1 -1
  251. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +1 -1
  252. package/dist/components/arcgis-assistant-speech-input/customElement.js +1 -1
  253. package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +1 -1
  254. package/dist/components/arcgis-assistant-user-message/customElement.js +1 -1
  255. package/dist/docs/api.json +1 -1
  256. package/dist/docs/docs.json +1 -1
  257. package/dist/docs/web-types.json +1 -1
  258. package/dist/index.js +1 -1
  259. package/dist/loader.js +1 -1
  260. package/dist/utils/index.js +3 -3
  261. package/package.json +9 -9
  262. package/dist/cdn/25MBI4PD.js +0 -2
  263. package/dist/cdn/2LVYAXHG.js +0 -44
  264. package/dist/cdn/2WXXSZP5.js +0 -2
  265. package/dist/cdn/5X23DDDZ.js +0 -2
  266. package/dist/cdn/AUCKEB52.js +0 -2
  267. package/dist/cdn/B3HXSEBN.js +0 -2
  268. package/dist/cdn/BTTCBEPW.js +0 -2
  269. package/dist/cdn/EXMEB4X2.js +0 -2
  270. package/dist/cdn/FLUI6GCU.js +0 -2
  271. package/dist/cdn/FRYS2PZJ.js +0 -2
  272. package/dist/cdn/FSLQCZRN.js +0 -2
  273. package/dist/cdn/HKIA5PWU.js +0 -2
  274. package/dist/cdn/I3SUE2TR.js +0 -2
  275. package/dist/cdn/KAX4A7SF.js +0 -2
  276. package/dist/cdn/LIRT72WY.js +0 -2
  277. package/dist/cdn/M5B6X46F.js +0 -2
  278. package/dist/cdn/NGR5NVZE.js +0 -2
  279. package/dist/cdn/PUZ6RAFQ.js +0 -2
  280. package/dist/cdn/ROS22KOA.js +0 -2
  281. package/dist/cdn/SBNNJ5WA.js +0 -2
  282. package/dist/cdn/SDX46GZY.js +0 -2
  283. package/dist/cdn/SI22EJLC.js +0 -2
  284. package/dist/cdn/SXYKNDOF.js +0 -2
  285. package/dist/cdn/SZ2L5556.js +0 -2
  286. package/dist/cdn/UGIHS7OA.js +0 -2
  287. package/dist/cdn/VT5EWFH7.js +0 -2
  288. package/dist/cdn/XZF7Y6B2.js +0 -2
  289. package/dist/cdn/Y4ZOB6UH.js +0 -2
  290. package/dist/cdn/YIXASZUW.js +0 -2
@@ -1,55 +1,55 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
- import { Annotation as m } from "@langchain/langgraph/web";
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { Annotation as p } from "@langchain/langgraph/web";
3
3
  import { b as j, r as T, m as P, c as q } from "./baseAgentState.js";
4
- import p, { z as s } from "zod";
5
- import { ChatPromptTemplate as E, SystemMessagePromptTemplate as N } from "@langchain/core/prompts";
4
+ import l, { z as s } from "zod";
5
+ import { ChatPromptTemplate as S, SystemMessagePromptTemplate as N } from "@langchain/core/prompts";
6
6
  import { s as g } from "./index.js";
7
7
  import { AIMessage as O, isAIMessage as $, isToolMessage as U } from "@langchain/core/messages";
8
8
  import { createAgent as V, summarizationMiddleware as L, modelCallLimitMiddleware as z } from "langchain";
9
- import { c as h, E as J } from "./aiFactory.js";
10
- const ye = m.Root({
11
- agentExecutionContext: m({
9
+ import { c as y, E as W } from "./aiFactory.js";
10
+ const he = p.Root({
11
+ agentExecutionContext: p({
12
12
  default: q,
13
13
  reducer: P
14
14
  }),
15
- currentIntent: m({
15
+ currentIntent: p({
16
16
  default: () => "none",
17
17
  reducer: T
18
18
  }),
19
- routing: m({
19
+ routing: p({
20
20
  default: () => ({ mode: "auto" }),
21
21
  reducer: T
22
22
  }),
23
- lastExecutedAgent: m({
23
+ lastExecutedAgent: p({
24
24
  default: () => "",
25
25
  reducer: T
26
26
  }),
27
- requiresFollowUp: m({
27
+ requiresFollowUp: p({
28
28
  default: () => !0,
29
29
  reducer: T
30
30
  }),
31
- stepCount: m({
31
+ stepCount: p({
32
32
  default: () => 0,
33
33
  reducer: (e, t) => t ?? e + 1
34
34
  }),
35
- finalOutputMessage: m({
35
+ finalOutputMessage: p({
36
36
  default: () => "",
37
37
  reducer: j
38
38
  })
39
- }), W = (e) => {
39
+ }), B = (e) => {
40
40
  if (!e || typeof e != "object" || !("services" in e))
41
41
  return !1;
42
42
  const t = e.services;
43
43
  return !!t && typeof t == "object" && "agentRegistry" in t;
44
- }, B = (e) => {
44
+ }, G = (e) => {
45
45
  const t = e?.configurable;
46
- return W(t) ? t : void 0;
47
- }, G = (e, t, i) => {
46
+ return B(t) ? t : void 0;
47
+ }, H = (e, t, i) => {
48
48
  const n = e[t];
49
49
  return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((r, o) => {
50
50
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + t + (t.split("/").length !== i ? ". Note that variables only represent file names one level deep." : ""))));
51
51
  });
52
- }, v = async (e) => (await G(/* @__PURE__ */ Object.assign({ "./field_descriptions_prompt.md": () => import("./field_descriptions_prompt.js"), "./intent_prompt.md": () => import("./intent_prompt.js"), "./layer_descriptions_prompt.md": () => import("./layer_descriptions_prompt.js") }), `./${e}.md`, 2)).default, H = async (e) => {
52
+ }, v = async (e) => (await H(/* @__PURE__ */ Object.assign({ "./field_descriptions_prompt.md": () => import("./field_descriptions_prompt.js"), "./intent_prompt.md": () => import("./intent_prompt.js"), "./layer_descriptions_prompt.md": () => import("./layer_descriptions_prompt.js") }), `./${e}.md`, 2)).default, J = async (e) => {
53
53
  const { agent: t, messages: i, config: n } = e;
54
54
  return { structuredResponse: (await t.invoke(
55
55
  {
@@ -70,8 +70,8 @@ const I = (e) => JSON.stringify(e, null, 2), Q = (e) => {
70
70
  assignedTask: s.string().nullable(),
71
71
  requiresFollowUp: s.boolean()
72
72
  });
73
- }, he = async (e, t) => {
74
- const i = B(t);
73
+ }, ye = async (e, t) => {
74
+ const i = G(t);
75
75
  if (t?.signal?.aborted)
76
76
  return await g({ text: "Run cancelled; skipping intent routing" }, t), {
77
77
  ...e,
@@ -92,24 +92,24 @@ const I = (e) => JSON.stringify(e, null, 2), Q = (e) => {
92
92
  currentIntent: "none",
93
93
  finalOutputMessage: "No agents registered; skipping intent detection."
94
94
  };
95
- const a = await v("intent_prompt"), c = I(o), l = Q(o), d = {
95
+ const a = await v("intent_prompt"), c = I(o), m = Q(o), d = {
96
96
  registeredAgents: c,
97
97
  priorSteps: I(e.agentExecutionContext.priorSteps),
98
98
  userRequest: e.agentExecutionContext.userRequest
99
- }, k = await E.fromTemplate(a).format(d), D = V({
100
- model: await h({
99
+ }, k = await S.fromTemplate(a).format(d), D = V({
100
+ model: await y({
101
101
  modelTier: "fast",
102
102
  config: t
103
103
  }),
104
104
  tools: [],
105
105
  systemPrompt: k,
106
- responseFormat: l,
106
+ responseFormat: m,
107
107
  middleware: [
108
108
  // Preserve recent conversation context while summarizing older messages
109
109
  // to control token usage without losing important intent signals.
110
110
  // The trigger and keep parameters can be tuned based on token limits and behavior.
111
111
  L({
112
- model: await h({
112
+ model: await y({
113
113
  modelTier: "fast",
114
114
  config: t
115
115
  }),
@@ -120,11 +120,11 @@ const I = (e) => JSON.stringify(e, null, 2), Q = (e) => {
120
120
  // 1 usual LLM call and 1 optional summarization call.
121
121
  z({ runLimit: 2 })
122
122
  ]
123
- }), { structuredResponse: R } = await H({
123
+ }), { structuredResponse: R } = await J({
124
124
  agent: D,
125
125
  messages: e.agentExecutionContext.messages,
126
126
  config: t
127
- }), f = l.parse(
127
+ }), f = m.parse(
128
128
  R ?? { intent: null, assignedTask: null, requiresFollowUp: !1 }
129
129
  ), x = f.intent ?? "none", F = {
130
130
  ...e,
@@ -171,7 +171,7 @@ Requires Follow-Up: ${f.requiresFollowUp}`
171
171
  } catch (n) {
172
172
  throw await g({ text: "Error during intent detection" }, t), new Error(`Error during intent detection: ${n instanceof Error ? n.message : String(n)}`);
173
173
  }
174
- }, X = "0.1", y = 1536, Y = "openai", Z = J.default, ee = `Name: {name}
174
+ }, X = "0.1", h = 1536, Y = "openai", Z = W.default, ee = `Name: {name}
175
175
  Title: {title}
176
176
  Description: {description}`, te = `Name: {name}
177
177
  Alias: {alias}
@@ -181,7 +181,7 @@ Description: {description}`, we = s.object({
181
181
  embeddings: s.object({
182
182
  modelProvider: s.literal(Y),
183
183
  model: s.literal(Z),
184
- dimensions: s.literal(y),
184
+ dimensions: s.literal(h),
185
185
  templates: s.object({
186
186
  layer: s.string().default(ee),
187
187
  field: s.string().default(te)
@@ -193,16 +193,16 @@ Description: {description}`, we = s.object({
193
193
  name: s.string().min(1),
194
194
  title: s.string().catch(""),
195
195
  description: s.string().catch(""),
196
- vector: s.array(s.number()).length(y, {
197
- message: `Layer vector must be exactly ${y} dimensions`
196
+ vector: s.array(s.number()).length(h, {
197
+ message: `Layer vector must be exactly ${h} dimensions`
198
198
  }),
199
199
  fields: s.array(
200
200
  s.object({
201
201
  name: s.string().min(1),
202
202
  alias: s.string().catch(""),
203
203
  description: s.string().catch(""),
204
- vector: s.array(s.number()).length(y, {
205
- message: `Field vector must be exactly ${y} dimensions`
204
+ vector: s.array(s.number()).length(h, {
205
+ message: `Field vector must be exactly ${h} dimensions`
206
206
  })
207
207
  })
208
208
  )
@@ -226,9 +226,9 @@ Description: {description}`, we = s.object({
226
226
  });
227
227
  }, M = (e, t) => {
228
228
  const i = N.fromTemplate(e);
229
- return E.fromMessages([i, ...t]);
229
+ return S.fromMessages([i, ...t]);
230
230
  }, se = async (e) => {
231
- const { promptText: t, modelTier: i, messages: n, config: r } = e, o = M(t, n ?? []), a = await h({ modelTier: i, config: r });
231
+ const { promptText: t, modelTier: i, messages: n, config: r } = e, o = M(t, n ?? []), a = await y({ modelTier: i, config: r });
232
232
  return o.pipe(a);
233
233
  }, xe = async (e) => {
234
234
  const { promptText: t, modelTier: i = "default", messages: n, inputVariables: r, config: o } = e, c = await (await se({
@@ -237,31 +237,28 @@ Description: {description}`, we = s.object({
237
237
  messages: n,
238
238
  config: o
239
239
  })).invoke(r ?? {}, o);
240
- if (typeof c == "string")
241
- return c;
242
- const l = c.content;
243
- return typeof l == "string" ? l : JSON.stringify(l);
240
+ return typeof c == "string" ? c : c.text;
244
241
  }, A = async (e) => {
245
- const { promptText: t, modelTier: i = "default", messages: n, inputVariables: r, schema: o, config: a } = e, c = M(t, n ?? []), d = (await h({ modelTier: i, config: a })).withStructuredOutput(o);
242
+ const { promptText: t, modelTier: i = "default", messages: n, inputVariables: r, schema: o, config: a } = e, c = M(t, n ?? []), d = (await y({ modelTier: i, config: a })).withStructuredOutput(o);
246
243
  return await c.pipe(d).invoke(r ?? {}, a);
247
244
  }, Te = async (e) => {
248
- const { promptText: t, modelTier: i = "default", messages: n, inputVariables: r, tools: o, config: a } = e, c = o.length > 0 ? ne(n ?? []) : n ?? [], l = M(t, c), d = await h({ modelTier: i, config: a });
249
- return await l.pipe(d.bindTools(o)).invoke(r ?? {}, a);
250
- }, ie = p.object({
251
- name: p.string(),
252
- description: p.string(),
253
- valueType: p.string(),
254
- alias: p.string()
255
- }), oe = p.object({
256
- fields: p.array(ie)
245
+ const { promptText: t, modelTier: i = "default", messages: n, inputVariables: r, tools: o, config: a } = e, c = o.length > 0 ? ne(n ?? []) : n ?? [], m = M(t, c), d = await y({ modelTier: i, config: a });
246
+ return await m.pipe(d.bindTools(o)).invoke(r ?? {}, a);
247
+ }, ie = l.object({
248
+ name: l.string(),
249
+ description: l.string(),
250
+ valueType: l.string(),
251
+ alias: l.string()
252
+ }), oe = l.object({
253
+ fields: l.array(ie)
257
254
  }), C = (e, t) => e.getFieldAlias(t) ?? void 0, b = (e, t) => C(e, t.name) ?? t.alias ?? "", re = (e, t) => {
258
255
  const i = C(e, t.name);
259
256
  return !!(i && i !== (t.alias ?? ""));
260
257
  };
261
- function S(e, t) {
258
+ function E(e, t) {
262
259
  const i = /* @__PURE__ */ new Map();
263
260
  for (const n of e.fields) {
264
- const r = t.fields.find((l) => l.name === n.name), o = b(e, n), a = re(e, n), c = {
261
+ const r = t.fields.find((m) => m.name === n.name), o = b(e, n), a = re(e, n), c = {
265
262
  name: n.name,
266
263
  type: n.type,
267
264
  alias: a ? o : r?.alias ?? o,
@@ -275,12 +272,12 @@ function S(e, t) {
275
272
  }
276
273
  const be = async (e) => {
277
274
  const i = await v("field_descriptions_prompt"), n = e.fields.filter((a) => !(b(e, a) && a.description)).map((a) => {
278
- const { name: c, type: l, description: d } = a, w = b(e, a);
279
- return [`Name: ${c}`, `Type: ${l}`, `Alias: ${w}`, `Description: ${d ?? "N/A"}`].join(", ");
275
+ const { name: c, type: m, description: d } = a, w = b(e, a);
276
+ return [`Name: ${c}`, `Type: ${m}`, `Alias: ${w}`, `Description: ${d ?? "N/A"}`].join(", ");
280
277
  }).join(`
281
278
  `);
282
279
  if (n.length === 0)
283
- return S(e, { fields: [] });
280
+ return E(e, { fields: [] });
284
281
  const r = {
285
282
  existingItemTitle: e.portalItem?.title,
286
283
  existingItemDescription: e.portalItem?.description,
@@ -292,11 +289,11 @@ const be = async (e) => {
292
289
  schema: oe,
293
290
  inputVariables: r
294
291
  });
295
- return S(e, o);
296
- }, ae = p.object({
297
- title: p.string(),
298
- description: p.string(),
299
- name: p.string().nullable()
292
+ return E(e, o);
293
+ }, ae = l.object({
294
+ title: l.string(),
295
+ description: l.string(),
296
+ name: l.string().nullable()
300
297
  }), ve = async (e, t) => {
301
298
  const n = await v("layer_descriptions_prompt"), r = Array.from(t.values()), o = {
302
299
  fieldInformation: JSON.stringify(r, null, 2),
@@ -312,15 +309,15 @@ const be = async (e) => {
312
309
  }), name: e.title ?? null };
313
310
  };
314
311
  export {
315
- ye as D,
312
+ he as D,
316
313
  we as W,
317
314
  xe as a,
318
- he as b,
315
+ ye as b,
319
316
  be as c,
320
317
  ve as d,
321
- y as e,
318
+ h as e,
322
319
  te as f,
323
- B as g,
320
+ G as g,
324
321
  Y as h,
325
322
  Te as i,
326
323
  A as j,
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { StateGraph as G, END as p, START as k } from "@langchain/langgraph/web";
3
3
  function b(t, c, o, s = {}) {
4
4
  const { agent: h, entryNode: u, middlewares: l = [] } = s;
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { createSkillAgent as o } from "../agents/runtime/skill/createSkillAgent.js";
3
3
  const d = (a, e) => {
4
4
  const l = Array.from(a?.values() ?? []).map(({ fieldRegistry: r, layerItem: t }) => {
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  const n = `## Who you are
3
3
 
4
4
  You are a map assistant embedded inside a GIS application. You have no knowledge of history, science, people, events, cooking, or anything outside of this map and its data. You only know what is described in the Map Context below.
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { dispatchCustomEvent as e } from "@langchain/core/callbacks/dispatch/web";
3
3
  const n = async (s, a) => {
4
4
  await e("trace_message", s, a);
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  const e = `## GIS Agent Orchestrator
3
3
 
4
4
  You are an orchestrator for an ArcGIS Maps SDK for JavaScript system.
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { NodeInterrupt as w, StateGraph as L, START as E, END as m } from "@langchain/langgraph/web";
3
3
  import "@arcgis/core/identity/IdentityManager.js";
4
4
  import "@arcgis/core/portal/Portal.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  const e = `This Feature Layer is part of a Feature Service. The Feature Layer contains various fields, each with its own name, type, and description.
3
3
  The Feature Layer is a collection of geographic features that represent real-world entities. Each feature in the layer has attributes that provide additional information about the feature. The layer may include point, line, or polygon geometries, depending on the type of data it represents.
4
4
  The geometry type for this layer is {layerGeometryType}.
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  const e = `# ArcGIS Online Map Viewer — Smart Mapping Assistant
3
3
 
4
4
  You are a Smart Mapping Assistant for ArcGIS Online Map Viewer.
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  const r = (e, s, a) => {
3
3
  if (!(a ? e.hasAllFeaturesInView : e.hasAllFeatures))
4
4
  return !1;
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { createSkillAgent as r } from "../agents/runtime/skill/createSkillAgent.js";
3
3
  import { f as n } from "./fetchAgentContext.js";
4
4
  const s = ({ config: a }) => {
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  const e = `## Navigation Agent - Tool Intent Classifier
3
3
 
4
4
  You are an assistant that classifies the assigned task intent for navigation agent.
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  const e = `# Navigation Tool Instructions
3
3
 
4
4
  CRITICAL: You are FORBIDDEN from making multiple tool calls. You MUST make exactly ONE tool call.
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import M from "@arcgis/core/identity/IdentityManager.js";
3
3
  import _ from "@arcgis/core/portal/Portal.js";
4
4
  import { g as $, a as D } from "./aiFactory.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  const t = (r, s) => (o, i) => {
3
3
  const c = i?.configurable?.services;
4
4
  for (const e of r)
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import l from "@arcgis/core/geometry/Point.js";
3
3
  import * as f from "@arcgis/core/geometry/operators/unionOperator.js";
4
4
  import r from "zod";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import "../cdn/main.css";
3
3
  import { makeRuntime as e } from "@arcgis/lumina";
4
4
  import { trackAccess as s, createObservable as a, createTrackingTarget as r, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  function e(o, t) {
3
3
  return `block-${o}-${t}`;
4
4
  }
@@ -1,60 +1,60 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { Annotation as o } from "@langchain/langgraph/web";
3
3
  import { c } from "./baseAgentState.js";
4
4
  const i = /* @__PURE__ */ new Set(["agentExecutionContext", "outputMessage", "summary", "status"]);
5
- function u(r) {
6
- const n = [...new Set([...r].filter((t) => i.has(t)))];
7
- if (n.length !== 0)
8
- throw new Error(`custom state cannot define reserved runtime fields: ${n.join(", ")}.`);
5
+ function u(n) {
6
+ const r = [...new Set([...n].filter((e) => i.has(e)))];
7
+ if (r.length !== 0)
8
+ throw new Error(`custom state cannot define reserved runtime fields: ${r.join(", ")}.`);
9
9
  }
10
- function f(r) {
11
- const n = Object.entries(r);
10
+ function f(n) {
11
+ const r = Object.entries(n);
12
12
  return Object.fromEntries(
13
- n.map(([t, e]) => [
14
- t,
13
+ r.map(([e, t]) => [
14
+ e,
15
15
  o({
16
16
  reducer: (s, a) => a,
17
- default: () => e
17
+ default: () => t
18
18
  })
19
19
  ])
20
20
  );
21
21
  }
22
- function m(r = {}) {
23
- u(Object.keys(r));
24
- const n = f(r);
22
+ function m(n = {}) {
23
+ u(Object.keys(n));
24
+ const r = f(n);
25
25
  return o.Root({
26
- ...n,
26
+ ...r,
27
27
  agentExecutionContext: o({
28
- reducer: (t, e) => ({
29
- ...t,
30
- ...e
28
+ reducer: (e, t) => ({
29
+ ...e,
30
+ ...t
31
31
  }),
32
32
  default: c
33
33
  }),
34
34
  outputMessage: o({
35
35
  // Preserve the last meaningful user-facing message produced by the graph.
36
- reducer: (t = "", e) => typeof e == "string" && e.trim() ? e : t,
36
+ reducer: (e = "", t) => typeof t == "string" && t.trim() ? t : e,
37
37
  default: () => ""
38
38
  }),
39
39
  summary: o({
40
40
  // Summary is a compact orchestrator-facing outcome, so replacement semantics are enough.
41
- reducer: (t = "", e) => typeof e == "string" ? e : t,
41
+ reducer: (e = "", t) => typeof t == "string" ? t : e,
42
42
  default: () => ""
43
43
  }),
44
44
  status: o({
45
45
  // Keep the first meaningful status until a later node explicitly replaces it.
46
- reducer: (t, e) => e ?? t,
46
+ reducer: (e, t) => t ?? e,
47
47
  default: () => {
48
48
  }
49
49
  })
50
50
  });
51
51
  }
52
- function g(r) {
53
- const n = /* @__PURE__ */ new Set();
54
- for (const e of r)
55
- for (const s of Object.keys(e.shape ?? {}))
56
- n.add(s);
57
- const t = Object.fromEntries([...n].map((e) => [e, void 0]));
52
+ function g(n, r = []) {
53
+ const e = new Set(r);
54
+ for (const s of n)
55
+ for (const a of Object.keys(s.shape ?? {}))
56
+ e.add(a);
57
+ const t = Object.fromEntries([...e].map((s) => [s, void 0]));
58
58
  return m(t);
59
59
  }
60
60
  export {
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  const e = `## Task: Summarize Geographic Features
3
3
 
4
4
  You are given features from ArcGIS Feature layer for multiple layers:
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { makeT9nController as o } from "@arcgis/lumina/controllers";
3
3
  import { g as t } from "./runtime.js";
4
4
  const s = o(t);
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { AIMessage as i } from "@langchain/core/messages";
3
3
  function p(e, s, t) {
4
4
  return {
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { getClosestElement as i } from "@arcgis/toolkit/dom";
3
3
  import { g as s, a as o } from "./utils3.js";
4
4
  function c(e, t) {
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { getClosestElement as s } from "@arcgis/toolkit/dom";
3
3
  function l(t, o) {
4
4
  return o ? typeof o == "string" ? u(t, o) ?? null : o : s(t, "arcgis-map") ?? null;
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as x } from "../../chunks/runtime.js";
3
3
  import { css as L, html as g } from "lit";
4
4
  import T from "@arcgis/core/core/Collection.js";