@arcgis/ai-components 6.0.0-next.0 → 6.0.0-next.2

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 (374) 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 +9 -2
  4. package/dist/agent-utils/LLMAgent.js +46 -37
  5. package/dist/agent-utils/SkillAgent.js +1 -1
  6. package/dist/agent-utils/WorkflowAgent.js +1 -1
  7. package/dist/agent-utils/createSchema.js +1 -1
  8. package/dist/agent-utils/middlewares/humanInTheLoop.js +1 -1
  9. package/dist/agent-utils/middlewares/middleware.js +1 -1
  10. package/dist/agent-utils/middlewares/trace.js +1 -1
  11. package/dist/agent-utils/middlewares/types.js +1 -1
  12. package/dist/agent-utils/tools/FunctionTool.d.ts +12 -1
  13. package/dist/agent-utils/tools/FunctionTool.js +16 -15
  14. package/dist/agent-utils/tools/MCPToolProvider.d.ts +54 -0
  15. package/dist/agent-utils/tools/MCPToolProvider.js +120 -0
  16. package/dist/agent-utils/tools/ToolProvider.d.ts +13 -0
  17. package/dist/agent-utils/tools/WebMCPToolProvider.d.ts +37 -0
  18. package/dist/agent-utils/tools/WebMCPToolProvider.js +71 -0
  19. package/dist/agent-utils/workflows/ConditionalWorkflow.js +1 -1
  20. package/dist/agent-utils/workflows/LoopWorkflow.js +1 -1
  21. package/dist/agent-utils/workflows/ParallelWorkflow.js +1 -1
  22. package/dist/agent-utils/workflows/RouterWorkflow.js +1 -1
  23. package/dist/agent-utils/workflows/SequentialWorkflow.js +1 -1
  24. package/dist/agent-utils/workflows/SwitchWorkflow.js +1 -1
  25. package/dist/agents/agents/arcgisKnowledge/graph/arcgisKnowledgeGraph.js +1 -1
  26. package/dist/agents/agents/dataExploration/dataExplorationAgent.js +1 -1
  27. package/dist/agents/agents/dataExplorationGraph/graph/dataExplorationGraph.js +1 -1
  28. package/dist/agents/agents/help/helpAgent.js +1 -1
  29. package/dist/agents/agents/helpGraph/graph/helpGraph.js +1 -1
  30. package/dist/agents/agents/layerStyling/context/layerStylingContext.js +1 -1
  31. package/dist/agents/agents/layerStyling/graph/layerStylingGraph.js +1 -1
  32. package/dist/agents/agents/navigation/navigationAgent.js +1 -1
  33. package/dist/agents/agents/navigationGraph/graph/navigationGraph.js +1 -1
  34. package/dist/agents/tools/filter/clearFilters/adapter.js +1 -1
  35. package/dist/agents/tools/filter/resetMap/adapter.js +1 -1
  36. package/dist/agents/tools/filter/setFeatureEffect/adapter.js +1 -1
  37. package/dist/agents/tools/help/listFields/adapter.js +1 -1
  38. package/dist/agents/tools/navigation/goToAddress/adapter.js +1 -1
  39. package/dist/agents/tools/navigation/goToBookmark/adapter.js +1 -1
  40. package/dist/agents/tools/navigation/goToFeatures/adapter.js +1 -1
  41. package/dist/agents/tools/navigation/goToFullExtent/adapter.js +1 -1
  42. package/dist/agents/tools/navigation/goToHomeExtent/adapter.js +1 -1
  43. package/dist/agents/tools/navigation/goToLayer/adapter.js +1 -1
  44. package/dist/agents/tools/navigation/goToScale/adapter.js +1 -1
  45. package/dist/agents/tools/navigation/goToViewpoint/adapter.js +1 -1
  46. package/dist/agents/tools/navigation/goToZoom/adapter.js +1 -1
  47. package/dist/agents/tools/query/getAttribute/adapter.js +29 -25
  48. package/dist/agents/tools/query/getStatistics/adapter.js +71 -67
  49. package/dist/agents/tools/query/getTopFeatures/adapter.js +75 -71
  50. package/dist/agents/tools/query/queryFeatures/adapter.js +41 -37
  51. package/dist/agents/tools/search/findRelevantFields/adapter.js +1 -1
  52. package/dist/agents/tools/search/findRelevantLayers/adapter.js +1 -1
  53. package/dist/agents/tools/shared/resolveToolArtifact.js +1 -1
  54. package/dist/agents/tools/shared/types.js +1 -1
  55. package/dist/cdn/24KEZCPF.js +2 -0
  56. package/dist/cdn/{2UKFCF2J.js → 272R36XK.js} +2 -2
  57. package/dist/cdn/{FX4LV2S3.js → 2H32MDP2.js} +1 -1
  58. package/dist/cdn/{VAXH6RUQ.js → 2HNGMLFD.js} +2 -2
  59. package/dist/cdn/{3HV6OXCZ.js → 2JD3G7IW.js} +2 -2
  60. package/dist/cdn/2NOLMOEP.js +9 -0
  61. package/dist/cdn/{ZU2FHVNK.js → 2OW3DCUT.js} +2 -2
  62. package/dist/cdn/2PGZDONH.js +2 -0
  63. package/dist/cdn/2WY5MPMY.js +2 -0
  64. package/dist/cdn/{4OLV5LA7.js → 3COVQI26.js} +2 -2
  65. package/dist/cdn/{VIJVRJHL.js → 3UVQLYUK.js} +2 -2
  66. package/dist/cdn/{BIEX4MVV.js → 5HNKH5OK.js} +2 -2
  67. package/dist/cdn/{46DT6BIG.js → 5INBG23U.js} +1 -1
  68. package/dist/cdn/{MHUEU6MR.js → 5LBUP33F.js} +2 -2
  69. package/dist/cdn/{UZLQALHY.js → 5PV2GUZW.js} +1 -1
  70. package/dist/cdn/{UYEF3IKE.js → 5SRRG7WG.js} +2 -2
  71. package/dist/cdn/{AMFZY5QK.js → 5XZ5VL42.js} +2 -2
  72. package/dist/cdn/{IEAHAC6B.js → 63OF33IL.js} +2 -2
  73. package/dist/cdn/{7OQA4GCM.js → 6ELWX4W5.js} +2 -2
  74. package/dist/cdn/{OKVLGJAG.js → 6J3J7VLW.js} +2 -2
  75. package/dist/cdn/{AOVJ34QE.js → 6QOSUG64.js} +2 -2
  76. package/dist/cdn/{GVFJHADC.js → 6UGT2UG5.js} +2 -2
  77. package/dist/cdn/{VVWKEN53.js → 7APXFHDF.js} +3 -3
  78. package/dist/cdn/{QJOO6IIX.js → 7GDMXAF5.js} +2 -2
  79. package/dist/cdn/7JIXXYZR.js +2 -0
  80. package/dist/cdn/{2ZH5JNHL.js → 7OQK2F7O.js} +2 -2
  81. package/dist/cdn/{I7PHDOEQ.js → 7XVIZ7HK.js} +2 -2
  82. package/dist/cdn/{TRZJYWEB.js → A4ZVCRVF.js} +3 -3
  83. package/dist/cdn/{OVIQ5NSE.js → AGDGDULE.js} +2 -2
  84. package/dist/cdn/{TPULIO6I.js → AMA67DVI.js} +2 -2
  85. package/dist/cdn/AO42IPOX.js +2 -0
  86. package/dist/cdn/AOT3PM2Q.js +2 -0
  87. package/dist/cdn/{YO3L3XIH.js → AQ7KG25Q.js} +2 -2
  88. package/dist/cdn/{KKXOSV62.js → AWH4VDPD.js} +2 -2
  89. package/dist/cdn/AY2ZONWQ.js +2 -0
  90. package/dist/cdn/{B2JRBDJZ.js → BMVPOFHU.js} +2 -2
  91. package/dist/cdn/BWUQRZPK.js +2 -0
  92. package/dist/cdn/{EXIA3APU.js → C3VLDYS2.js} +2 -2
  93. package/dist/cdn/{PQ2DPOFM.js → C5Q6E7UC.js} +2 -2
  94. package/dist/cdn/{FDOMMK2M.js → CETIZ4IQ.js} +1 -1
  95. package/dist/cdn/{W3OJTTVX.js → COANVCKH.js} +2 -2
  96. package/dist/cdn/D7CRICBG.js +2 -0
  97. package/dist/cdn/D7FEOAW3.js +2 -0
  98. package/dist/cdn/{37EJSNE3.js → DY6MO2CA.js} +2 -2
  99. package/dist/cdn/EKMCGN6R.js +2 -0
  100. package/dist/cdn/EUIURCPS.js +2 -0
  101. package/dist/cdn/{NN6MELJ7.js → FGQH46Z2.js} +2 -2
  102. package/dist/cdn/FIZMK7GS.js +1 -0
  103. package/dist/cdn/FONIQ7VF.js +2 -0
  104. package/dist/cdn/G3KILEGJ.js +2 -0
  105. package/dist/cdn/{FYZATVB3.js → G7MCIFV2.js} +2 -2
  106. package/dist/cdn/{SDWWUWAF.js → GGAXXX5X.js} +2 -2
  107. package/dist/cdn/GS5JDPZH.js +2 -0
  108. package/dist/cdn/{KJZVYKWL.js → H4QWVTEZ.js} +2 -2
  109. package/dist/cdn/{HWNPZ4CF.js → H6J65TWL.js} +2 -2
  110. package/dist/cdn/{UHEYPSOR.js → HCPI2RJE.js} +2 -2
  111. package/dist/cdn/{TPMZRJEC.js → HJOWCZPL.js} +2 -2
  112. package/dist/cdn/HOMSK66Q.js +2 -0
  113. package/dist/cdn/{SBIYXWXZ.js → HTNKDDEV.js} +2 -2
  114. package/dist/cdn/{OFM2S6U7.js → HU527DML.js} +2 -2
  115. package/dist/cdn/I37ZJHTM.js +2 -0
  116. package/dist/cdn/{7DRHB24Z.js → I724KIFI.js} +2 -2
  117. package/dist/cdn/IH5P2PWJ.js +2 -0
  118. package/dist/cdn/{ZBRZU4XB.js → J3T5HB77.js} +2 -2
  119. package/dist/cdn/{ZMMUAYDN.js → JCWFLYB4.js} +2 -2
  120. package/dist/cdn/{IHP25JWI.js → JSRNLNOE.js} +2 -2
  121. package/dist/cdn/{MPWEXYYB.js → KDA5VPLO.js} +2 -2
  122. package/dist/cdn/KRPPMEOF.js +2 -0
  123. package/dist/cdn/{W6TS2TIE.js → KURNYULZ.js} +2 -2
  124. package/dist/cdn/{YOQCQAKT.js → L46O52F7.js} +2 -2
  125. package/dist/cdn/{W3ZLMBEE.js → L5OYOLWV.js} +3 -3
  126. package/dist/cdn/{M7TMD2HP.js → LDDP7NSY.js} +2 -2
  127. package/dist/cdn/{ZQTCPJUV.js → LGIXZLOP.js} +2 -2
  128. package/dist/cdn/{ENVTUTY6.js → LMAIOLS2.js} +2 -2
  129. package/dist/cdn/{CFAC4FN3.js → LWEKPFV6.js} +2 -2
  130. package/dist/cdn/M52LKZN7.js +2 -0
  131. package/dist/cdn/{6GQCLDLJ.js → M5UMOOL2.js} +2 -2
  132. package/dist/cdn/MHXM37QI.js +2 -0
  133. package/dist/cdn/{XI4BPYGB.js → MR3R5YHQ.js} +2 -2
  134. package/dist/cdn/{H7WJUUJT.js → MUSLUFKI.js} +2 -2
  135. package/dist/cdn/MYLY2ABI.js +2 -0
  136. package/dist/cdn/{2XXM52PS.js → N2GN5WOI.js} +3 -3
  137. package/dist/cdn/{2FUTKTNO.js → NAVK5JJ2.js} +3 -3
  138. package/dist/cdn/NDSYDURO.js +2 -0
  139. package/dist/cdn/{EU6YSCZL.js → NK2QRPS6.js} +2 -2
  140. package/dist/cdn/{GMZUN5SF.js → NYFL2F5L.js} +2 -2
  141. package/dist/cdn/{O62IJLTZ.js → OKDXM5D4.js} +2 -2
  142. package/dist/cdn/{I5OBL24F.js → OMUWBY75.js} +2 -2
  143. package/dist/cdn/{34O57OGV.js → OPQCY33W.js} +1 -1
  144. package/dist/cdn/{R74ZHFA6.js → OUMTV5H5.js} +1 -1
  145. package/dist/cdn/OZDRETY2.js +5 -0
  146. package/dist/cdn/{DYSPEU7W.js → PR4VMSKD.js} +1 -1
  147. package/dist/cdn/{V7ERVXIO.js → PXBS2FXE.js} +2 -2
  148. package/dist/cdn/{B4C7NIB5.js → Q7BJGEFH.js} +3 -3
  149. package/dist/cdn/QAVDW7A7.js +2 -0
  150. package/dist/cdn/{ONQ6JSBJ.js → QBZP6XOE.js} +1 -1
  151. package/dist/cdn/{OT5ECP4V.js → RFIN7KO6.js} +2 -2
  152. package/dist/cdn/RNJ7T5GF.js +2 -0
  153. package/dist/cdn/{Q6PCXSZT.js → S6OUM5X2.js} +2 -2
  154. package/dist/cdn/SG6PAUVR.js +2 -0
  155. package/dist/cdn/{U53SVXZK.js → SRXUC4QB.js} +2 -2
  156. package/dist/cdn/SUMXIUIS.js +2 -0
  157. package/dist/cdn/SW3D6QD4.js +2 -0
  158. package/dist/cdn/{GEFFWUB2.js → T2OYUOSO.js} +1 -1
  159. package/dist/cdn/T7LYQ56H.js +2 -0
  160. package/dist/cdn/{T2FKFOHE.js → TFXK2POV.js} +2 -2
  161. package/dist/cdn/{XQ3NBBQ3.js → TIQUULA4.js} +1 -1
  162. package/dist/cdn/{LCI5MEDN.js → TOUYGIGK.js} +2 -2
  163. package/dist/cdn/{DWMZ23QK.js → UJMM5QA4.js} +2 -2
  164. package/dist/cdn/UMTRLI63.js +2 -0
  165. package/dist/cdn/{MQSOVP27.js → UP7RW5K2.js} +2 -2
  166. package/dist/cdn/{J37GSI7C.js → UR2S7L6Z.js} +2 -2
  167. package/dist/cdn/{CEKOEHB3.js → UWHRBGWN.js} +2 -2
  168. package/dist/cdn/UXDRYDOD.js +11 -0
  169. package/dist/cdn/UZ7XFHYI.js +2 -0
  170. package/dist/cdn/V66TS2BB.js +2 -0
  171. package/dist/cdn/{AAUVOBPS.js → VINKTQFR.js} +1 -1
  172. package/dist/cdn/{U3ZTF2BC.js → VU7IOGNS.js} +2 -2
  173. package/dist/cdn/W2SIOY2B.js +3 -0
  174. package/dist/cdn/{WVMQ3I6F.js → W36IUEUB.js} +2 -2
  175. package/dist/cdn/{V6AQFRUC.js → WEBAQIUT.js} +2 -2
  176. package/dist/cdn/{WSIZ2OTL.js → WHIWOYHN.js} +1 -1
  177. package/dist/cdn/WOL5YMJ2.js +2 -0
  178. package/dist/cdn/{RBRHDEOB.js → X3YFCWQZ.js} +2 -2
  179. package/dist/cdn/{ICBIUFK7.js → X4EQEKM7.js} +2 -2
  180. package/dist/cdn/{UPSFL6U3.js → XBWGOD6I.js} +2 -2
  181. package/dist/cdn/XGDXTTYW.js +2 -0
  182. package/dist/cdn/{FFWPUYGD.js → XLHYQNAM.js} +2 -2
  183. package/dist/cdn/{NEV6OZN3.js → XMQJWPXI.js} +2 -2
  184. package/dist/cdn/{FXRZCD5Y.js → XQUKC4YK.js} +2 -2
  185. package/dist/cdn/{JEBRN3EU.js → XSH4B7FP.js} +2 -2
  186. package/dist/cdn/{LK7ZIQW6.js → XVWSIDZV.js} +2 -2
  187. package/dist/cdn/{J6A4AS7E.js → XYMIFFBW.js} +2 -2
  188. package/dist/cdn/{645SDZBB.js → Y3ZKMD47.js} +2 -2
  189. package/dist/cdn/{2GSHUAQ2.js → YAANCUW2.js} +2 -2
  190. package/dist/cdn/{XJUYG2M3.js → YD5LVM7V.js} +2 -2
  191. package/dist/cdn/{TTPTZBCM.js → YGI277SH.js} +2 -2
  192. package/dist/cdn/YGSDJ4V3.js +14 -0
  193. package/dist/cdn/YJEARDAZ.js +2 -0
  194. package/dist/cdn/{DXCDVRGL.js → YSEHJQ4L.js} +2 -2
  195. package/dist/cdn/Z44NI2YQ.js +2 -0
  196. package/dist/cdn/{74CVYM72.js → ZEDDYT24.js} +2 -2
  197. package/dist/cdn/{ZBBI5M2X.js → ZROI63CW.js} +2 -2
  198. package/dist/cdn/{ZKDCEL6K.js → ZUKM4DGB.js} +2 -2
  199. package/dist/cdn/ZVVNATCX.js +2 -0
  200. package/dist/cdn/agent-utils/BaseAgent.js +2 -2
  201. package/dist/cdn/agent-utils/FunctionAgent.js +2 -2
  202. package/dist/cdn/agent-utils/LLMAgent.js +2 -2
  203. package/dist/cdn/agent-utils/SkillAgent.js +2 -2
  204. package/dist/cdn/agent-utils/WorkflowAgent.js +2 -2
  205. package/dist/cdn/agent-utils/createSchema.js +2 -2
  206. package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +2 -2
  207. package/dist/cdn/agent-utils/middlewares/middleware.js +2 -2
  208. package/dist/cdn/agent-utils/middlewares/trace.js +2 -2
  209. package/dist/cdn/agent-utils/tools/FunctionTool.js +2 -2
  210. package/dist/cdn/agent-utils/tools/MCPToolProvider.js +15 -0
  211. package/dist/cdn/agent-utils/tools/WebMCPToolProvider.js +2 -0
  212. package/dist/cdn/agent-utils/workflows/ConditionalWorkflow.js +2 -2
  213. package/dist/cdn/agent-utils/workflows/LoopWorkflow.js +2 -2
  214. package/dist/cdn/agent-utils/workflows/ParallelWorkflow.js +2 -2
  215. package/dist/cdn/agent-utils/workflows/RouterWorkflow.js +2 -2
  216. package/dist/cdn/agent-utils/workflows/SequentialWorkflow.js +2 -2
  217. package/dist/cdn/agent-utils/workflows/SwitchWorkflow.js +2 -2
  218. package/dist/cdn/index.js +2 -2
  219. package/dist/cdn/orchestrator/embeddings/getEmbeddings.js +2 -2
  220. package/dist/cdn/orchestrator/models/chatModel.js +2 -2
  221. package/dist/cdn/orchestrator/models/prompts.js +2 -2
  222. package/dist/cdn/orchestrator/signals.js +2 -2
  223. package/dist/cdn/orchestrator/state/runtime.js +2 -2
  224. package/dist/chunks/BaseWorkflow.js +1 -1
  225. package/dist/chunks/SKILL.js +1 -1
  226. package/dist/chunks/SKILL2.js +1 -1
  227. package/dist/chunks/SKILL3.js +1 -1
  228. package/dist/chunks/SKILL4.js +1 -1
  229. package/dist/chunks/adapter.js +1 -1
  230. package/dist/chunks/adapter2.js +1 -1
  231. package/dist/chunks/aiFactory.js +1 -1
  232. package/dist/chunks/aiUtilityService.js +1 -1
  233. package/dist/chunks/arcgisToolRegistry.js +1 -1
  234. package/dist/chunks/arcgis_knowledge_current_lc_context.js +1 -1
  235. package/dist/chunks/arcgis_knowledge_current_map_context.js +1 -1
  236. package/dist/chunks/arcgis_knowledge_cypher_query_prompt.js +1 -1
  237. package/dist/chunks/arcgis_knowledge_lucene_generation_prompt.js +1 -1
  238. package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +1 -1
  239. package/dist/chunks/arcgis_knowledge_tool_prompt.js +1 -1
  240. package/dist/chunks/converterUtils.js +66 -110
  241. package/dist/chunks/createSkillAgent.js +1 -1
  242. package/dist/chunks/data_explore_filter_prompt.js +1 -1
  243. package/dist/chunks/data_explore_query_prompt.js +1 -1
  244. package/dist/chunks/embeddings.worker.js +1 -1
  245. package/dist/chunks/fetchAgentContext.js +1 -1
  246. package/dist/chunks/fetchService.js +1 -1
  247. package/dist/chunks/fetchUtils.js +1 -1
  248. package/dist/chunks/fieldStatistics.js +1 -1
  249. package/dist/chunks/field_descriptions_prompt.js +1 -1
  250. package/dist/chunks/formatFeatureAttributes.js +1 -1
  251. package/dist/chunks/getPrompt.js +1 -1
  252. package/dist/chunks/graph.js +1 -1
  253. package/dist/chunks/helpState.js +1 -1
  254. package/dist/chunks/help_prompt.js +1 -1
  255. package/dist/chunks/intent_prompt.js +1 -1
  256. package/dist/chunks/layerQueryToolCalling.js +1 -1
  257. package/dist/chunks/layerStylingState.js +1 -1
  258. package/dist/chunks/layer_descriptions_prompt.js +1 -1
  259. package/dist/chunks/layer_styling_prompt.js +1 -1
  260. package/dist/chunks/localization.js +1 -1
  261. package/dist/chunks/mergeWhereClauses.js +1 -1
  262. package/dist/chunks/modelConfig.js +1 -1
  263. package/dist/chunks/modelPricing.js +1 -1
  264. package/dist/chunks/navigationState.js +1 -1
  265. package/dist/chunks/navigation_intent_prompt.js +1 -1
  266. package/dist/chunks/navigation_tool_prompt.js +1 -1
  267. package/dist/chunks/observationSnapshot.js +1 -1
  268. package/dist/chunks/reducers.js +1 -1
  269. package/dist/chunks/requireAgentServices.js +1 -1
  270. package/dist/chunks/resolveFieldNames.js +9 -0
  271. package/dist/chunks/resolveGeometryFilter.js +1 -1
  272. package/dist/chunks/runtime.js +2 -2
  273. package/dist/chunks/runtime2.js +1 -1
  274. package/dist/chunks/runtimeSpans.js +1 -1
  275. package/dist/chunks/schema.js +1 -1
  276. package/dist/chunks/slottableRequestUtils.js +1 -1
  277. package/dist/chunks/state.js +1 -1
  278. package/dist/chunks/summarize_query_response_prompt.js +1 -1
  279. package/dist/chunks/textFormatters.js +1 -1
  280. package/dist/chunks/toolCallResponse.js +1 -1
  281. package/dist/chunks/useT9n.js +1 -1
  282. package/dist/chunks/utils.js +1 -1
  283. package/dist/chunks/utils2.js +1 -1
  284. package/dist/chunks/utils3.js +1 -1
  285. package/dist/chunks/webmapSchema.js +1 -1
  286. package/dist/components/arcgis-assistant/customElement.js +1 -1
  287. package/dist/components/arcgis-assistant-agent/customElement.js +1 -1
  288. package/dist/components/arcgis-assistant-chat/customElement.js +1 -1
  289. package/dist/components/arcgis-assistant-chat-entry/customElement.js +1 -1
  290. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +1 -1
  291. package/dist/components/arcgis-assistant-help-agent/customElement.js +1 -1
  292. package/dist/components/arcgis-assistant-interrupt/customElement.js +1 -1
  293. package/dist/components/arcgis-assistant-interrupt-preview/customElement.js +1 -1
  294. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +1 -1
  295. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +1 -1
  296. package/dist/components/arcgis-assistant-message/customElement.js +1 -1
  297. package/dist/components/arcgis-assistant-message-block/customElement.js +1 -1
  298. package/dist/components/arcgis-assistant-message-feedback/customElement.js +1 -1
  299. package/dist/components/arcgis-assistant-message-footer/customElement.js +1 -1
  300. package/dist/components/arcgis-assistant-message-loading/customElement.js +1 -1
  301. package/dist/components/arcgis-assistant-message-log/customElement.js +5 -6
  302. package/dist/components/arcgis-assistant-message-log/index.js +5 -0
  303. package/dist/components/arcgis-assistant-message-read-aloud/customElement.js +1 -1
  304. package/dist/components/arcgis-assistant-message-text/customElement.js +11 -12
  305. package/dist/components/arcgis-assistant-message-text/index.js +5 -0
  306. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +1 -1
  307. package/dist/components/arcgis-assistant-observation-inspector/customElement.js +1 -1
  308. package/dist/components/arcgis-assistant-observation-latency/customElement.js +1 -1
  309. package/dist/components/arcgis-assistant-observation-panel/customElement.js +1 -1
  310. package/dist/components/arcgis-assistant-observation-run/customElement.js +1 -1
  311. package/dist/components/arcgis-assistant-observation-usage/customElement.js +1 -1
  312. package/dist/components/arcgis-assistant-speech-input/customElement.js +1 -1
  313. package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +1 -1
  314. package/dist/components/arcgis-assistant-user-message/customElement.js +8 -9
  315. package/dist/components/arcgis-assistant-user-message/index.js +5 -0
  316. package/dist/docs/api.json +1 -1
  317. package/dist/docs/docs.json +1 -1
  318. package/dist/docs/web-types.json +1 -1
  319. package/dist/index.js +1 -1
  320. package/dist/loader.js +1 -1
  321. package/dist/orchestrator/embeddings/cosineSimilarity.js +1 -1
  322. package/dist/orchestrator/embeddings/getEmbeddings.js +1 -1
  323. package/dist/orchestrator/embeddings/webmapEmbeddings.js +1 -1
  324. package/dist/orchestrator/models/chatModel.js +1 -1
  325. package/dist/orchestrator/models/prompts.js +1 -1
  326. package/dist/orchestrator/orchestrator/orchestrator.js +1 -1
  327. package/dist/orchestrator/orchestrator/orchestratorEvents.js +1 -1
  328. package/dist/orchestrator/signals.js +1 -1
  329. package/dist/orchestrator/state/runtime.js +1 -1
  330. package/dist/orchestrator/state/types.js +1 -1
  331. package/dist/orchestrator/types.js +1 -1
  332. package/dist/utils/index.js +1 -1
  333. package/package.json +8 -5
  334. package/dist/cdn/25CQLMB4.js +0 -2
  335. package/dist/cdn/34HKOU3T.js +0 -2
  336. package/dist/cdn/3WS4DSWD.js +0 -2
  337. package/dist/cdn/434TAA3J.js +0 -2
  338. package/dist/cdn/43OJZMBB.js +0 -2
  339. package/dist/cdn/4BRIOLDJ.js +0 -2
  340. package/dist/cdn/4KFTUBFL.js +0 -2
  341. package/dist/cdn/4ZPGFIE2.js +0 -2
  342. package/dist/cdn/6JCDY4FL.js +0 -2
  343. package/dist/cdn/7GQCNR4P.js +0 -11
  344. package/dist/cdn/A3KIOUWB.js +0 -2
  345. package/dist/cdn/BKKLQUK2.js +0 -2
  346. package/dist/cdn/CADNOKIK.js +0 -2
  347. package/dist/cdn/DQRKGYR3.js +0 -2
  348. package/dist/cdn/EOSKJPQV.js +0 -2
  349. package/dist/cdn/F7VQ3WH2.js +0 -2
  350. package/dist/cdn/FBIPIDP7.js +0 -2
  351. package/dist/cdn/GOET2CH4.js +0 -2
  352. package/dist/cdn/ISDNOFHU.js +0 -3
  353. package/dist/cdn/JZS6ZSWH.js +0 -2
  354. package/dist/cdn/KEBMHD4R.js +0 -9
  355. package/dist/cdn/KPHHXMRK.js +0 -2
  356. package/dist/cdn/LVSIZRTB.js +0 -2
  357. package/dist/cdn/OJP56R5R.js +0 -2
  358. package/dist/cdn/OYHYHALE.js +0 -2
  359. package/dist/cdn/QQPVN5MG.js +0 -2
  360. package/dist/cdn/QUZTFUWM.js +0 -1
  361. package/dist/cdn/REE4K4J7.js +0 -2
  362. package/dist/cdn/RFKOCMMT.js +0 -2
  363. package/dist/cdn/RKHDRUX5.js +0 -2
  364. package/dist/cdn/TGI7QCB2.js +0 -2
  365. package/dist/cdn/UALF45Q2.js +0 -2
  366. package/dist/cdn/WB5AFS42.js +0 -2
  367. package/dist/cdn/WC6SHIEX.js +0 -2
  368. package/dist/cdn/XPSPAZUD.js +0 -2
  369. package/dist/cdn/YAUQJ6NV.js +0 -2
  370. package/dist/cdn/YD3DLETZ.js +0 -2
  371. package/dist/cdn/YKKIJTJY.js +0 -2
  372. package/dist/cdn/ZCNCYKXW.js +0 -14
  373. package/dist/cdn/ZESTW6HJ.js +0 -2
  374. package/dist/cdn/ZS5P7NRI.js +0 -2
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { B as l, g as c } from "../../chunks/BaseWorkflow.js";
3
3
  class f extends l {
4
4
  //#region Lifecycle
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { StateGraph as x, START as k, END as c, Command as b } from "@langchain/langgraph/web";
3
3
  import { a as K, c as _, g as T, b as A, d as S, s as M, q as v, e as q, f as C, G as E, h as u } from "../../../../chunks/adapter2.js";
4
4
  import { invokeToolPrompt as G, invokeTextPrompt as N } from "../../../../orchestrator/models/prompts.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as e } from "../../../chunks/createSkillAgent.js";
3
3
  const t = [
4
4
  async () => (await import("../../../chunks/SKILL2.js")).default,
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { StateGraph as R, START as F, END as y } from "@langchain/langgraph/web";
3
3
  import { f as w, q as C, D as v, l as N } from "../../../../chunks/layerQueryToolCalling.js";
4
4
  import { sendTraceMessage as s } from "../../../../orchestrator/signals.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as o } from "../../../chunks/createSkillAgent.js";
3
3
  const d = (a, e) => {
4
4
  const r = Array.from(a?.values() ?? []).map(({ fieldRegistry: n, layerItem: t }) => {
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { StateGraph as d, START as g, END as i } from "@langchain/langgraph/web";
3
3
  import { H as u } from "../../../../chunks/helpState.js";
4
4
  import { invokeToolPrompt as h } from "../../../../orchestrator/models/prompts.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  const e = ["mapView"];
3
3
  export {
4
4
  e as layerStylingContextRequiredKeys
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { NodeInterrupt as w, StateGraph as E, START as L, END as h } from "@langchain/langgraph/web";
3
3
  import { sendTraceMessage as i } from "../../../../orchestrator/signals.js";
4
4
  import { f as p } from "../../../../chunks/fetchService.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as r } from "../../../chunks/createSkillAgent.js";
3
3
  import { f as n } from "../../../chunks/fetchAgentContext.js";
4
4
  const s = ({ config: a }) => {
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { StateGraph as E, START as $, END as R } from "@langchain/langgraph/web";
3
3
  import { N as T } from "../../../../chunks/navigationState.js";
4
4
  import { invokeToolPrompt as C, invokeStructuredPrompt as F } from "../../../../orchestrator/models/prompts.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { tool as l } from "@langchain/core/tools";
3
3
  import o from "zod";
4
4
  import { f } from "../../../../chunks/fetchAgentContext.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { tool as n } from "@langchain/core/tools";
3
3
  import i from "zod";
4
4
  import { f as l } from "../../../../chunks/fetchAgentContext.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import e from "zod";
3
3
  import { tool as h } from "@langchain/core/tools";
4
4
  import m from "@arcgis/core/layers/support/FeatureEffect.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { tool as n } from "@langchain/core/tools";
3
3
  import s from "zod";
4
4
  import { f as c } from "../../../../chunks/fetchService.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { tool as f } from "@langchain/core/tools";
3
3
  import s from "@arcgis/core/config.js";
4
4
  import u from "@arcgis/core/Graphic.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { z as i } from "zod";
3
3
  import { tool as k } from "@langchain/core/tools";
4
4
  import { f as s } from "../../../../chunks/fetchAgentContext.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { z as i } from "zod";
3
3
  import { tool as u } from "@langchain/core/tools";
4
4
  import { f as c } from "../../../../chunks/fetchAgentContext.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { z as n } from "zod";
3
3
  import r from "@arcgis/core/geometry/Extent.js";
4
4
  import { tool as i } from "@langchain/core/tools";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { tool as n } from "@langchain/core/tools";
3
3
  import i from "zod";
4
4
  import { f as r } from "../../../../chunks/fetchAgentContext.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { z as r } from "zod";
3
3
  import { tool as i } from "@langchain/core/tools";
4
4
  import { f as c } from "../../../../chunks/fetchAgentContext.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import t from "zod";
3
3
  import { tool as a } from "@langchain/core/tools";
4
4
  import { f as i } from "../../../../chunks/fetchAgentContext.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import t from "zod";
3
3
  import { tool as c } from "@langchain/core/tools";
4
4
  import l from "@arcgis/core/geometry/Point.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import t from "zod";
3
3
  import { tool as m } from "@langchain/core/tools";
4
4
  import { f as i } from "../../../../chunks/fetchAgentContext.js";
@@ -1,40 +1,44 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { tool as f } from "@langchain/core/tools";
3
- import i from "zod";
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import { tool as d } from "@langchain/core/tools";
3
+ import s from "zod";
4
4
  import { f as h, g } from "../../../../chunks/formatFeatureAttributes.js";
5
- import { f as y } from "../../../../chunks/fetchAgentContext.js";
6
- const b = (a, e, o) => {
7
- const t = a.createQuery();
8
- return t.outFields = [e], t.where = o || "1=1", t.num = 1, t;
9
- }, d = async (a, e, o, t) => {
10
- const r = t.map?.allLayers.find((m) => m.id === a), n = b(r, e, o.where), u = (await r.queryFeatures(n)).features[0], c = u ? u.attributes[e] : null, l = h(r, e, c, t.timeZone), s = g(r, e);
5
+ import { r as y } from "../../../../chunks/resolveFieldNames.js";
6
+ import { f as b } from "../../../../chunks/fetchAgentContext.js";
7
+ const p = (a, i, o) => {
8
+ const e = a.createQuery();
9
+ return e.outFields = [i], e.where = o || "1=1", e.num = 1, e;
10
+ }, w = async (a, i, o, e) => {
11
+ const t = e.map?.allLayers.find((l) => l.id === a), r = y(
12
+ i,
13
+ t.fields.map((l) => l.name)
14
+ ), c = p(t, r, o.where), u = (await t.queryFeatures(c)).features[0], f = u ? u.attributes[r] : null, m = h(t, r, f, e.timeZone), n = g(t, r);
11
15
  return {
12
16
  tool: "getAttribute",
13
- layerName: r.title ?? a,
14
- summary: `${s} = ${l}`,
17
+ layerName: t.title ?? a,
18
+ summary: `${n} = ${m}`,
15
19
  details: {
16
- fieldName: e,
17
- fieldAlias: s !== e ? s : void 0,
18
- value: l,
20
+ fieldName: r,
21
+ fieldAlias: n !== i ? n : void 0,
22
+ value: m,
19
23
  where: o.where
20
24
  }
21
25
  };
22
26
  };
23
- async function p({ layerId: a, fieldName: e, query: o }, t) {
24
- const { mapView: r } = y(t, ["mapView"]), n = await d(a, e, o, r);
25
- return JSON.stringify(n, null, 2);
27
+ async function v({ layerId: a, fieldName: i, query: o }, e) {
28
+ const { mapView: t } = b(e, ["mapView"]), r = await w(a, i, o, t);
29
+ return JSON.stringify(r, null, 2);
26
30
  }
27
- const w = i.object({
28
- layerId: i.string().describe("The layerId of the layer containing the field from which to get a value."),
29
- fieldName: i.string().describe("The name of the field/attribute from which to get a field value."),
30
- query: i.object({
31
- where: i.string().describe("The SQL-92 where clause representing the feature from which to get an attribute value.")
31
+ const A = s.object({
32
+ layerId: s.string().describe("The layerId of the layer containing the field from which to get a value."),
33
+ fieldName: s.string().describe("The name of the field/attribute from which to get a field value."),
34
+ query: s.object({
35
+ where: s.string().describe("The SQL-92 where clause representing the feature from which to get an attribute value.")
32
36
  })
33
- }), Q = f(p, {
37
+ }), j = d(v, {
34
38
  name: "getAttribute",
35
39
  description: "Returns an attribute value for a given feature.",
36
- schema: w
40
+ schema: A
37
41
  });
38
42
  export {
39
- Q as getAttributeTool
43
+ j as getAttributeTool
40
44
  };
@@ -1,31 +1,35 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { tool as L } from "@langchain/core/tools";
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import { tool as E } from "@langchain/core/tools";
3
3
  import t from "zod";
4
- import E from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
4
+ import N from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
5
5
  import R from "@arcgis/core/smartMapping/statistics/uniqueValues.js";
6
6
  import V from "@arcgis/core/layers/support/FeatureFilter.js";
7
- import { c as x, m as v } from "../../../../chunks/mergeWhereClauses.js";
8
- import { g as O, i as S, a as C, s as N, r as G } from "../../../../chunks/resolveGeometryFilter.js";
9
- import { f as U } from "../../../../chunks/fetchAgentContext.js";
10
- import { f as W } from "../../../../chunks/fetchService.js";
7
+ import { c as x, m as S } from "../../../../chunks/mergeWhereClauses.js";
8
+ import { g as O, i as F, a as C, s as G, r as U } from "../../../../chunks/resolveGeometryFilter.js";
9
+ import { r as W } from "../../../../chunks/resolveFieldNames.js";
10
+ import { f as j } from "../../../../chunks/fetchAgentContext.js";
11
+ import { f as A } from "../../../../chunks/fetchService.js";
11
12
  import { distanceUnitsSchema as I } from "../../shared/types.js";
12
- const j = async (h) => {
13
- const { targetLayer: a, fieldName: n, statisticType: l, mapView: i, layersAndFieldsRegistry: p, geometryFilter: e } = h, s = i.map?.allLayers.find((r) => r.id === a.layerId);
14
- if (!s)
15
- throw new Error(`Layer '${a.layerId}' not found.`);
16
- const w = await i.whenLayerView(s), o = p.get(a.layerId)?.fieldRegistry.get(n), F = o?.alias;
13
+ const D = async (h) => {
14
+ const { targetLayer: s, fieldName: l, statisticType: n, mapView: r, layersAndFieldsRegistry: p, geometryFilter: e } = h, a = r.map?.allLayers.find((i) => i.id === s.layerId);
15
+ if (!a)
16
+ throw new Error(`Layer '${s.layerId}' not found.`);
17
+ const w = await r.whenLayerView(a), b = W(
18
+ l,
19
+ a.fields.map((i) => i.name)
20
+ ), o = p.get(s.layerId)?.fieldRegistry.get(b), T = o?.alias;
17
21
  if (!o)
18
- throw new Error(`Field '${n}' not found.`);
19
- let b, u;
22
+ throw new Error(`Field '${b}' not found.`);
23
+ let v, u;
20
24
  if (e) {
21
- const r = await O(e, i);
22
- if ("error" in r)
23
- throw new Error(r.error);
24
- if (!r.geometry)
25
- throw S(e) ? new Error(`No features found matching: ${e.where}`) : new Error("Failed to create geometry");
26
- if (S(e)) {
27
- const g = i.map?.allLayers.find((f) => f.id === e.layerId);
28
- b = {
25
+ const i = await O(e, r);
26
+ if ("error" in i)
27
+ throw new Error(i.error);
28
+ if (!i.geometry)
29
+ throw F(e) ? new Error(`No features found matching: ${e.where}`) : new Error("Failed to create geometry");
30
+ if (F(e)) {
31
+ const g = r.map?.allLayers.find((f) => f.id === e.layerId);
32
+ v = {
29
33
  geometryLayerName: g?.title ?? g?.id,
30
34
  geometryLayerId: e.layerId,
31
35
  geometryWhere: e.where,
@@ -33,90 +37,90 @@ const j = async (h) => {
33
37
  units: e.units,
34
38
  applied: !0
35
39
  };
36
- } else C(e) && (b = {
40
+ } else C(e) && (v = {
37
41
  point: e.point,
38
42
  distance: e.distance,
39
43
  units: e.units,
40
44
  applied: !0
41
45
  });
42
46
  u = new V({
43
- geometry: r.geometry,
47
+ geometry: i.geometry,
44
48
  distance: e.distance,
45
49
  units: e.units,
46
50
  spatialRelationship: "intersects"
47
51
  });
48
52
  }
49
- const y = x(w, [n], !1);
53
+ const y = x(w, [l], !1);
50
54
  let d = null, m = null;
51
- const T = 10;
55
+ const q = 10;
52
56
  if (o.type !== "geometry" && o.type !== "oid" && o.type !== "global-id")
53
57
  try {
54
- const r = {
55
- layer: s,
58
+ const i = {
59
+ layer: a,
56
60
  useFeaturesInView: y,
57
- view: y ? i : void 0,
58
- field: n,
59
- sqlWhere: v(s.definitionExpression, a.where),
61
+ view: y ? r : void 0,
62
+ field: l,
63
+ sqlWhere: S(a.definitionExpression, s.where),
60
64
  ...u && { filter: u },
61
- outStatisticTypes: { include: [l] }
65
+ outStatisticTypes: { include: [n] }
62
66
  };
63
- d = await E(r);
67
+ d = await N(i);
64
68
  const g = ["string", "small-integer", "integer"], f = o.domain?.type === "coded-value" ? o.domain : null;
65
69
  (g.includes(o.type) || f) && (m = (await R({
66
- layer: s,
70
+ layer: a,
67
71
  useFeaturesInView: y,
68
- view: y ? i : void 0,
69
- field: n,
70
- sqlWhere: v(s.definitionExpression, a.where),
72
+ view: y ? r : void 0,
73
+ field: l,
74
+ sqlWhere: S(a.definitionExpression, s.where),
71
75
  ...u && { filter: u }
72
- })).uniqueValueInfos.sort((c, q) => q.count - c.count).slice(0, T)), m && o.domain?.type === "coded-value" && (m = m.map((c) => ({
76
+ })).uniqueValueInfos.sort((c, L) => L.count - c.count).slice(0, q)), m && o.domain?.type === "coded-value" && (m = m.map((c) => ({
73
77
  ...c,
74
78
  value: f ? f.getName(c.value) ?? c.value : c.value
75
79
  })));
76
- } catch (r) {
77
- console.error("Statistics error:", r);
80
+ } catch (i) {
81
+ console.error("Statistics error:", i);
78
82
  }
79
83
  return {
80
84
  tool: "getStatistics",
81
- layerName: s.title ?? a.layerId,
82
- summary: `${l} = ${typeof d?.[l] == "number" ? d[l] : "N/A"}`,
85
+ layerName: a.title ?? s.layerId,
86
+ summary: `${n} = ${typeof d?.[n] == "number" ? d[n] : "N/A"}`,
83
87
  details: {
84
- fieldName: n,
85
- fieldAlias: F,
86
- statisticType: l,
87
- statistic: d?.[l] ?? null,
88
+ fieldName: l,
89
+ fieldAlias: T,
90
+ statisticType: n,
91
+ statistic: d?.[n] ?? null,
88
92
  summaryStatistics: d,
89
93
  uniqueValues: m,
90
- where: a.where,
91
- spatialFilterInfo: b
94
+ where: s.where,
95
+ spatialFilterInfo: v
92
96
  }
93
97
  };
94
98
  };
95
- async function A({
99
+ async function $({
96
100
  targetLayer: h,
97
- fieldName: a,
98
- statisticType: n,
99
- geometryFilter: l
100
- }, i) {
101
- const p = W(i, "layersAndFieldsRegistry"), { mapView: e } = U(i, ["mapView"]), s = G(
102
- l,
103
- i.state?.agentExecutionContext?.sharedResources
104
- ), w = await j({
101
+ fieldName: s,
102
+ statisticType: l,
103
+ geometryFilter: n
104
+ }, r) {
105
+ const p = A(r, "layersAndFieldsRegistry"), { mapView: e } = j(r, ["mapView"]), a = U(
106
+ n,
107
+ r.state?.agentExecutionContext?.sharedResources
108
+ ), w = await D({
105
109
  targetLayer: h,
106
- fieldName: a,
107
- statisticType: n,
110
+ fieldName: s,
111
+ statisticType: l,
108
112
  mapView: e,
109
113
  layersAndFieldsRegistry: p,
110
- geometryFilter: s
114
+ geometryFilter: a
111
115
  });
112
116
  return JSON.stringify(w, null, 2);
113
117
  }
114
- const D = t.object({
118
+ const P = t.object({
115
119
  layerId: t.string().describe("The layerId of the layer containing the geometry by which to filter."),
116
120
  where: t.string().describe("The SQL-92 where clause representing the features from which to filter."),
117
121
  distance: t.number().optional().describe("The buffer distance around the geometry."),
118
122
  units: I.optional().describe("The units for the distance buffer.")
119
- }), $ = t.object({
123
+ }), Q = t.object({
120
124
  point: t.object({
121
125
  x: t.number().describe("X coordinate (longitude) from navigation result"),
122
126
  y: t.number().describe("Y coordinate (latitude) from navigation result"),
@@ -126,17 +130,17 @@ const D = t.object({
126
130
  }).describe("Point coordinates from a previous navigation/geocoding result"),
127
131
  distance: t.number().optional().describe("Optional buffer distance around the point."),
128
132
  units: I.optional().describe("The units for the distance buffer.")
129
- }), P = t.object({
133
+ }), H = t.object({
130
134
  targetLayer: t.object({
131
135
  layerId: t.string().describe("The layerId of the layer containing the field from which to get a value."),
132
136
  where: t.string().describe("The SQL-92 where clause representing the feature from which to get an attribute value.")
133
137
  }),
134
- geometryFilter: t.union([D, $, N]).optional().describe(
138
+ geometryFilter: t.union([P, Q, G]).optional().describe(
135
139
  "Geometry filter for spatial queries. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location. Use 'point' for inline coordinates or 'layerId/where' for features from another layer."
136
140
  ),
137
141
  fieldName: t.string().describe("The name of the field for which to get statistics. STRICTLY DO NOT use OBJECTID. Use any other field"),
138
142
  statisticType: t.enum(["avg", "max", "median", "min", "stddev", "sum", "variance", "nullcount", "count"]).describe("The statistic type to calculate.")
139
- }), ee = L(A, {
143
+ }), re = E($, {
140
144
  name: "getStatistics",
141
145
  description: `Computes a single aggregate statistic (max, min, avg, sum, median, stddev, variance) for a numeric field across matching features. Also returns frequency analysis for categorical fields.
142
146
 
@@ -151,8 +155,8 @@ DO NOT USE FOR:
151
155
  - Simple counts of features matching a condition — use queryFeatures instead
152
156
 
153
157
  Only call this tool when the answer requires computing an aggregate (avg, max, min, sum, median, stddev) over a field's values, not just counting or listing features.`,
154
- schema: P
158
+ schema: H
155
159
  });
156
160
  export {
157
- ee as getStatisticsTool
161
+ re as getStatisticsTool
158
162
  };