@arcgis/ai-agents 5.0.0-next.133

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 (234) hide show
  1. package/LICENSE.md +17 -0
  2. package/README.md +11 -0
  3. package/dist/agents/dataExploration/context/dataExplorationContext.d.ts +8 -0
  4. package/dist/agents/dataExploration/context/getDataExplorationContext.d.ts +3 -0
  5. package/dist/agents/dataExploration/graph/dataExplorationGraph.d.ts +8 -0
  6. package/dist/agents/dataExploration/index.d.ts +2 -0
  7. package/dist/agents/dataExploration/nodes/dataExplorationExit.d.ts +3 -0
  8. package/dist/agents/dataExploration/nodes/fieldStatistics.d.ts +3 -0
  9. package/dist/agents/dataExploration/nodes/layerFilterLLM.d.ts +3 -0
  10. package/dist/agents/dataExploration/nodes/layerFilterToolCalling.d.ts +3 -0
  11. package/dist/agents/dataExploration/nodes/layerQueryLLM.d.ts +3 -0
  12. package/dist/agents/dataExploration/nodes/layerQueryToolCalling.d.ts +3 -0
  13. package/dist/agents/dataExploration/nodes/requireDataExplorationServices.d.ts +7 -0
  14. package/dist/agents/dataExploration/nodes/summarizeQueryResponseLLM.d.ts +3 -0
  15. package/dist/agents/dataExploration/nodes/vectorSearchFields.d.ts +3 -0
  16. package/dist/agents/dataExploration/nodes/vectorSearchLayers.d.ts +3 -0
  17. package/dist/agents/dataExploration/state/dataExplorationState.d.ts +12 -0
  18. package/dist/agents/dataExploration/tools/filterTools/setDefinitionExpression/adapter.d.ts +22 -0
  19. package/dist/agents/dataExploration/tools/filterTools/setDefinitionExpression/core.d.ts +1 -0
  20. package/dist/agents/dataExploration/tools/filterTools/setDefinitionExpression/index.d.ts +1 -0
  21. package/dist/agents/dataExploration/tools/filterTools/setFeatureEffect/adapter.d.ts +99 -0
  22. package/dist/agents/dataExploration/tools/filterTools/setFeatureEffect/core.d.ts +5 -0
  23. package/dist/agents/dataExploration/tools/filterTools/setFeatureEffect/index.d.ts +1 -0
  24. package/dist/agents/dataExploration/tools/filterTools/setFeatureFilter/adapter.d.ts +87 -0
  25. package/dist/agents/dataExploration/tools/filterTools/setFeatureFilter/core.d.ts +5 -0
  26. package/dist/agents/dataExploration/tools/filterTools/setFeatureFilter/index.d.ts +1 -0
  27. package/dist/agents/dataExploration/tools/index.d.ts +553 -0
  28. package/dist/agents/dataExploration/tools/queryTools/getAttribute/adapter.d.ts +44 -0
  29. package/dist/agents/dataExploration/tools/queryTools/getAttribute/core.d.ts +4 -0
  30. package/dist/agents/dataExploration/tools/queryTools/getAttribute/index.d.ts +1 -0
  31. package/dist/agents/dataExploration/tools/queryTools/getStatistics/adapter.d.ts +90 -0
  32. package/dist/agents/dataExploration/tools/queryTools/getStatistics/core.d.ts +14 -0
  33. package/dist/agents/dataExploration/tools/queryTools/getStatistics/index.d.ts +1 -0
  34. package/dist/agents/dataExploration/tools/queryTools/getTopFeatures/adapter.d.ts +131 -0
  35. package/dist/agents/dataExploration/tools/queryTools/getTopFeatures/core.d.ts +15 -0
  36. package/dist/agents/dataExploration/tools/queryTools/getTopFeatures/index.d.ts +1 -0
  37. package/dist/agents/dataExploration/tools/queryTools/queryFeatures/adapter.d.ts +175 -0
  38. package/dist/agents/dataExploration/tools/queryTools/queryFeatures/core.d.ts +7 -0
  39. package/dist/agents/dataExploration/tools/queryTools/queryFeatures/index.d.ts +1 -0
  40. package/dist/agents/dataExploration/types/types.d.ts +27 -0
  41. package/dist/agents/dataExploration/utils/getDomainName.d.ts +2 -0
  42. package/dist/agents/dataExploration/utils/getGeometry.d.ts +8 -0
  43. package/dist/agents/dataExploration/utils/zoomToWhereClause.d.ts +4 -0
  44. package/dist/agents/layerFilter/context/getLayerFilterContext.d.ts +3 -0
  45. package/dist/agents/layerFilter/context/layerFilterContext.d.ts +8 -0
  46. package/dist/agents/layerFilter/graph/layerFilterGraph.d.ts +8 -0
  47. package/dist/agents/layerFilter/index.d.ts +2 -0
  48. package/dist/agents/layerFilter/nodes/fieldStatistics.d.ts +3 -0
  49. package/dist/agents/layerFilter/nodes/layerFilterExit.d.ts +3 -0
  50. package/dist/agents/layerFilter/nodes/layerFilterLLM.d.ts +3 -0
  51. package/dist/agents/layerFilter/nodes/layerFilterToolCalling.d.ts +3 -0
  52. package/dist/agents/layerFilter/nodes/requireLayerFilterServices.d.ts +7 -0
  53. package/dist/agents/layerFilter/nodes/vectorSearchFields.d.ts +3 -0
  54. package/dist/agents/layerFilter/nodes/vectorSearchLayers.d.ts +3 -0
  55. package/dist/agents/layerFilter/state/layerFilterState.d.ts +10 -0
  56. package/dist/agents/layerFilter/tools/index.d.ts +168 -0
  57. package/dist/agents/layerFilter/tools/setDefinitionExpression/adapter.d.ts +22 -0
  58. package/dist/agents/layerFilter/tools/setDefinitionExpression/core.d.ts +1 -0
  59. package/dist/agents/layerFilter/tools/setDefinitionExpression/index.d.ts +1 -0
  60. package/dist/agents/layerFilter/tools/setFeatureEffect/adapter.d.ts +99 -0
  61. package/dist/agents/layerFilter/tools/setFeatureEffect/core.d.ts +5 -0
  62. package/dist/agents/layerFilter/tools/setFeatureEffect/index.d.ts +1 -0
  63. package/dist/agents/layerFilter/tools/setFeatureFilter/adapter.d.ts +87 -0
  64. package/dist/agents/layerFilter/tools/setFeatureFilter/core.d.ts +5 -0
  65. package/dist/agents/layerFilter/tools/setFeatureFilter/index.d.ts +1 -0
  66. package/dist/agents/layerFilter/types/types.d.ts +9 -0
  67. package/dist/agents/layerFilter/utils/getGeometryForFilter.d.ts +12 -0
  68. package/dist/agents/layerFilter/utils/zoomToWhereClause.d.ts +1 -0
  69. package/dist/agents/layerQuery/context/getLayerQueryContext.d.ts +3 -0
  70. package/dist/agents/layerQuery/context/layerQueryContext.d.ts +8 -0
  71. package/dist/agents/layerQuery/graph/layerQueryGraph.d.ts +8 -0
  72. package/dist/agents/layerQuery/index.d.ts +2 -0
  73. package/dist/agents/layerQuery/nodes/fieldStatistics.d.ts +3 -0
  74. package/dist/agents/layerQuery/nodes/layerQueryExit.d.ts +3 -0
  75. package/dist/agents/layerQuery/nodes/layerQueryLLM.d.ts +3 -0
  76. package/dist/agents/layerQuery/nodes/layerQueryToolCalling.d.ts +3 -0
  77. package/dist/agents/layerQuery/nodes/requireLayerQueryServices.d.ts +7 -0
  78. package/dist/agents/layerQuery/nodes/summarizeQueryResponseLLM.d.ts +3 -0
  79. package/dist/agents/layerQuery/nodes/vectorSearchFields.d.ts +3 -0
  80. package/dist/agents/layerQuery/nodes/vectorSearchLayers.d.ts +3 -0
  81. package/dist/agents/layerQuery/state/layerQueryState.d.ts +12 -0
  82. package/dist/agents/layerQuery/tools/getAttribute/adapter.d.ts +44 -0
  83. package/dist/agents/layerQuery/tools/getAttribute/core.d.ts +4 -0
  84. package/dist/agents/layerQuery/tools/getAttribute/index.d.ts +1 -0
  85. package/dist/agents/layerQuery/tools/getStatistics/adapter.d.ts +90 -0
  86. package/dist/agents/layerQuery/tools/getStatistics/core.d.ts +14 -0
  87. package/dist/agents/layerQuery/tools/getStatistics/index.d.ts +1 -0
  88. package/dist/agents/layerQuery/tools/getTopFeatures/adapter.d.ts +131 -0
  89. package/dist/agents/layerQuery/tools/getTopFeatures/core.d.ts +14 -0
  90. package/dist/agents/layerQuery/tools/getTopFeatures/index.d.ts +1 -0
  91. package/dist/agents/layerQuery/tools/index.d.ts +304 -0
  92. package/dist/agents/layerQuery/tools/queryFeatures/adapter.d.ts +93 -0
  93. package/dist/agents/layerQuery/tools/queryFeatures/core.d.ts +7 -0
  94. package/dist/agents/layerQuery/tools/queryFeatures/index.d.ts +1 -0
  95. package/dist/agents/layerQuery/types/types.d.ts +15 -0
  96. package/dist/agents/layerQuery/utils/getGeometryForQuery.d.ts +6 -0
  97. package/dist/agents/layerStyling/context/getLayerStylingContext.d.ts +3 -0
  98. package/dist/agents/layerStyling/context/layerStylingContext.d.ts +8 -0
  99. package/dist/agents/layerStyling/graph/layerStylingGraph.d.ts +8 -0
  100. package/dist/agents/layerStyling/index.d.ts +2 -0
  101. package/dist/agents/layerStyling/nodes/layerFieldInfo.d.ts +3 -0
  102. package/dist/agents/layerStyling/nodes/layerSelectionHITL.d.ts +9 -0
  103. package/dist/agents/layerStyling/nodes/layerStylingExit.d.ts +3 -0
  104. package/dist/agents/layerStyling/nodes/layerStylingLLM.d.ts +3 -0
  105. package/dist/agents/layerStyling/nodes/layerStylingToolCalling.d.ts +3 -0
  106. package/dist/agents/layerStyling/nodes/requireLayerStylingServices.d.ts +7 -0
  107. package/dist/agents/layerStyling/nodes/vectorSearchFields.d.ts +3 -0
  108. package/dist/agents/layerStyling/nodes/vectorSearchLayers.d.ts +3 -0
  109. package/dist/agents/layerStyling/state/layerStylingState.d.ts +11 -0
  110. package/dist/agents/layerStyling/tools/applyChartRenderer/adapter.d.ts +34 -0
  111. package/dist/agents/layerStyling/tools/applyChartRenderer/core.d.ts +10 -0
  112. package/dist/agents/layerStyling/tools/applyChartRenderer/index.d.ts +1 -0
  113. package/dist/agents/layerStyling/tools/applyColorAgeRenderer/adapter.d.ts +34 -0
  114. package/dist/agents/layerStyling/tools/applyColorAgeRenderer/core.d.ts +10 -0
  115. package/dist/agents/layerStyling/tools/applyColorAgeRenderer/index.d.ts +1 -0
  116. package/dist/agents/layerStyling/tools/applyColorRenderer/adapter.d.ts +34 -0
  117. package/dist/agents/layerStyling/tools/applyColorRenderer/core.d.ts +10 -0
  118. package/dist/agents/layerStyling/tools/applyColorRenderer/index.d.ts +1 -0
  119. package/dist/agents/layerStyling/tools/applyColorSizeUnivariateRenderer/adapter.d.ts +34 -0
  120. package/dist/agents/layerStyling/tools/applyColorSizeUnivariateRenderer/core.d.ts +10 -0
  121. package/dist/agents/layerStyling/tools/applyColorSizeUnivariateRenderer/index.d.ts +1 -0
  122. package/dist/agents/layerStyling/tools/applyDotDensityRenderer/adapter.d.ts +28 -0
  123. package/dist/agents/layerStyling/tools/applyDotDensityRenderer/core.d.ts +9 -0
  124. package/dist/agents/layerStyling/tools/applyDotDensityRenderer/index.d.ts +1 -0
  125. package/dist/agents/layerStyling/tools/applyHeatmapRenderer/adapter.d.ts +28 -0
  126. package/dist/agents/layerStyling/tools/applyHeatmapRenderer/core.d.ts +9 -0
  127. package/dist/agents/layerStyling/tools/applyHeatmapRenderer/index.d.ts +1 -0
  128. package/dist/agents/layerStyling/tools/applyPredominanceRenderer/adapter.d.ts +34 -0
  129. package/dist/agents/layerStyling/tools/applyPredominanceRenderer/core.d.ts +10 -0
  130. package/dist/agents/layerStyling/tools/applyPredominanceRenderer/index.d.ts +1 -0
  131. package/dist/agents/layerStyling/tools/applyRelationshipRenderer/adapter.d.ts +28 -0
  132. package/dist/agents/layerStyling/tools/applyRelationshipRenderer/core.d.ts +9 -0
  133. package/dist/agents/layerStyling/tools/applyRelationshipRenderer/index.d.ts +1 -0
  134. package/dist/agents/layerStyling/tools/applySizeAgeRenderer/adapter.d.ts +34 -0
  135. package/dist/agents/layerStyling/tools/applySizeAgeRenderer/core.d.ts +10 -0
  136. package/dist/agents/layerStyling/tools/applySizeAgeRenderer/index.d.ts +1 -0
  137. package/dist/agents/layerStyling/tools/applySizeRenderer/adapter.d.ts +34 -0
  138. package/dist/agents/layerStyling/tools/applySizeRenderer/core.d.ts +10 -0
  139. package/dist/agents/layerStyling/tools/applySizeRenderer/index.d.ts +1 -0
  140. package/dist/agents/layerStyling/tools/applyTypeRenderer/adapter.d.ts +34 -0
  141. package/dist/agents/layerStyling/tools/applyTypeRenderer/core.d.ts +10 -0
  142. package/dist/agents/layerStyling/tools/applyTypeRenderer/index.d.ts +1 -0
  143. package/dist/agents/layerStyling/tools/index.d.ts +71 -0
  144. package/dist/agents/layerStyling/types/types.d.ts +23 -0
  145. package/dist/agents/layerStyling/utils/renderers/chart.d.ts +3 -0
  146. package/dist/agents/layerStyling/utils/renderers/color-age.d.ts +3 -0
  147. package/dist/agents/layerStyling/utils/renderers/color-size-univariate.d.ts +3 -0
  148. package/dist/agents/layerStyling/utils/renderers/color.d.ts +3 -0
  149. package/dist/agents/layerStyling/utils/renderers/dot-density.d.ts +3 -0
  150. package/dist/agents/layerStyling/utils/renderers/heatmap.d.ts +3 -0
  151. package/dist/agents/layerStyling/utils/renderers/predominance.d.ts +3 -0
  152. package/dist/agents/layerStyling/utils/renderers/relationship.d.ts +3 -0
  153. package/dist/agents/layerStyling/utils/renderers/size-age.d.ts +3 -0
  154. package/dist/agents/layerStyling/utils/renderers/size.d.ts +3 -0
  155. package/dist/agents/layerStyling/utils/renderers/type.d.ts +3 -0
  156. package/dist/agents/linkChart/context/getLinkChartContext.d.ts +3 -0
  157. package/dist/agents/linkChart/context/linkChartContext.d.ts +8 -0
  158. package/dist/agents/linkChart/graph/linkChartGraph.d.ts +8 -0
  159. package/dist/agents/linkChart/index.d.ts +2 -0
  160. package/dist/agents/linkChart/nodes/linkChartIntentLLM.d.ts +2 -0
  161. package/dist/agents/linkChart/nodes/linkChartLLM.d.ts +3 -0
  162. package/dist/agents/linkChart/nodes/linkChartToolCalling.d.ts +3 -0
  163. package/dist/agents/linkChart/nodes/requireLinkChartServices.d.ts +6 -0
  164. package/dist/agents/linkChart/state/linkChartState.d.ts +7 -0
  165. package/dist/agents/linkChart/tools/applyLayout/adapter.d.ts +16 -0
  166. package/dist/agents/linkChart/tools/applyLayout/core.d.ts +2 -0
  167. package/dist/agents/linkChart/tools/applyLayout/index.d.ts +1 -0
  168. package/dist/agents/linkChart/tools/changeNonspatialVisibility/adapter.d.ts +16 -0
  169. package/dist/agents/linkChart/tools/changeNonspatialVisibility/core.d.ts +1 -0
  170. package/dist/agents/linkChart/tools/changeNonspatialVisibility/index.d.ts +1 -0
  171. package/dist/agents/linkChart/tools/index.d.ts +21 -0
  172. package/dist/agents/navigation/context/getNavigationContext.d.ts +3 -0
  173. package/dist/agents/navigation/context/navigationContext.d.ts +8 -0
  174. package/dist/agents/navigation/graph/navigationGraph.d.ts +8 -0
  175. package/dist/agents/navigation/index.d.ts +2 -0
  176. package/dist/agents/navigation/nodes/navigationIntentLLM.d.ts +2 -0
  177. package/dist/agents/navigation/nodes/navigationLLM.d.ts +3 -0
  178. package/dist/agents/navigation/nodes/navigationToolCalling.d.ts +3 -0
  179. package/dist/agents/navigation/nodes/requireNavigationServices.d.ts +7 -0
  180. package/dist/agents/navigation/nodes/vectorSearchFields.d.ts +3 -0
  181. package/dist/agents/navigation/nodes/vectorSearchLayers.d.ts +3 -0
  182. package/dist/agents/navigation/state/navigationState.d.ts +19 -0
  183. package/dist/agents/navigation/tools/goToAddress/adapter.d.ts +16 -0
  184. package/dist/agents/navigation/tools/goToAddress/core.d.ts +1 -0
  185. package/dist/agents/navigation/tools/goToAddress/index.d.ts +1 -0
  186. package/dist/agents/navigation/tools/goToBookmark/adapter.d.ts +16 -0
  187. package/dist/agents/navigation/tools/goToBookmark/core.d.ts +1 -0
  188. package/dist/agents/navigation/tools/goToBookmark/index.d.ts +1 -0
  189. package/dist/agents/navigation/tools/goToFeatures/adapter.d.ts +22 -0
  190. package/dist/agents/navigation/tools/goToFeatures/core.d.ts +1 -0
  191. package/dist/agents/navigation/tools/goToFeatures/index.d.ts +1 -0
  192. package/dist/agents/navigation/tools/goToFullExtent/adapter.d.ts +4 -0
  193. package/dist/agents/navigation/tools/goToFullExtent/core.d.ts +1 -0
  194. package/dist/agents/navigation/tools/goToFullExtent/index.d.ts +1 -0
  195. package/dist/agents/navigation/tools/goToHomeExtent/adapter.d.ts +4 -0
  196. package/dist/agents/navigation/tools/goToHomeExtent/core.d.ts +1 -0
  197. package/dist/agents/navigation/tools/goToHomeExtent/index.d.ts +1 -0
  198. package/dist/agents/navigation/tools/goToLayer/adapter.d.ts +23 -0
  199. package/dist/agents/navigation/tools/goToLayer/core.d.ts +1 -0
  200. package/dist/agents/navigation/tools/goToLayer/index.d.ts +1 -0
  201. package/dist/agents/navigation/tools/goToScale/adapter.d.ts +16 -0
  202. package/dist/agents/navigation/tools/goToScale/core.d.ts +1 -0
  203. package/dist/agents/navigation/tools/goToScale/index.d.ts +1 -0
  204. package/dist/agents/navigation/tools/goToViewpoint/adapter.d.ts +52 -0
  205. package/dist/agents/navigation/tools/goToViewpoint/core.d.ts +7 -0
  206. package/dist/agents/navigation/tools/goToViewpoint/index.d.ts +1 -0
  207. package/dist/agents/navigation/tools/goToZoom/adapter.d.ts +16 -0
  208. package/dist/agents/navigation/tools/goToZoom/core.d.ts +1 -0
  209. package/dist/agents/navigation/tools/goToZoom/index.d.ts +1 -0
  210. package/dist/agents/navigation/tools/index.d.ts +107 -0
  211. package/dist/agents/navigation/types/types.d.ts +12 -0
  212. package/dist/data_explore_filter_prompt-CpgEu_mo.js +79 -0
  213. package/dist/data_explore_query_prompt-CtSDS9l_.js +90 -0
  214. package/dist/data_query_prompt-N4YzctpM.js +61 -0
  215. package/dist/index.d.ts +6 -0
  216. package/dist/index.js +3345 -0
  217. package/dist/layer_filter_prompt-0ujK87_y.js +4 -0
  218. package/dist/layer_styling_prompt-ybkb5Jgq.js +71 -0
  219. package/dist/link_chart_intent_prompt-C1t8tzl2.js +19 -0
  220. package/dist/link_chart_tool_prompt-IJcTG4Ya.js +16 -0
  221. package/dist/navigation_intent_prompt-DEERQeWD.js +19 -0
  222. package/dist/navigation_tool_prompt-C2jIBkeu.js +27 -0
  223. package/dist/summarize_query_response_prompt-DBJy1AAu.js +30 -0
  224. package/dist/types/types.d.ts +6 -0
  225. package/dist/utils/contextSelectors.d.ts +17 -0
  226. package/dist/utils/fetchService.d.ts +6 -0
  227. package/dist/utils/fieldStatistics.d.ts +3 -0
  228. package/dist/utils/getFieldStatistics.d.ts +3 -0
  229. package/dist/utils/getPrompt.d.ts +1 -0
  230. package/dist/utils/requireAgentServices.d.ts +9 -0
  231. package/dist/utils/timeZone.d.ts +8 -0
  232. package/dist/utils/toolCallResponse.d.ts +3 -0
  233. package/dist/utils/useClientSide.d.ts +6 -0
  234. package/package.json +28 -0
@@ -0,0 +1,4 @@
1
+ const e = "# ArcGIS Online Map Viewer — Layer Filter Tool Calling Assistant\n\nYou are an assistant that helps generate layer filter expressions for **ArcGIS Online Map Viewer** by selecting and calling the appropriate tool.\n\nCRITICAL: You are FORBIDDEN from making multiple tool calls. You MUST make exactly ONE tool call.\n\n## You are given:\n\nA list of layers, with layerId, layerSummary and each with associated field information\n{layerFieldInfo}\n\nFieldInfo:\n\n- `name`: the actual field name used in layer filter expressions\n- `type`: one of `string`, `number`, `date`, etc.\n- `alias`: a human-readable label\n- `description`: optional field metadata\n- `statistics`: such as min, max, unique values, etc.\n\n## Your task\n\n1. Analyze the user's request and the provided layer and field information.\n2. Generate a **single ArcGIS SQL WHERE clause** to match features based on the user's request and intent.\n3. Select the most appropriate tool to call based on the user's request.\n\nThe tool will apply the provided WHERE clause to the layer in the map viewer.\n\n## SQL-92 Date/Time Syntax\n\nUser timezone: {userTimezone} ({userTimezoneOffset})\n\nDatabase stores dates in UTC. Convert user's local time to UTC.\n\nTo convert: if offset is `-08:00`, add 8 hours. If `-05:00`, add 5 hours.\n\nFormat: `TIMESTAMP 'YYYY-MM-DD HH:MM:SS'`\n\n### Rules for generating Layer Filter expressions:\n\n- Use only the field’s **`name`** in the output expression.\n- Use metadata (`alias`, `description`, `statistics`) only to help understand the user's meaning — not in the syntax.\n- Use field `type` to choose appropriate operators:\n - **String** → `LIKE '%value%'`, `=`, `IN (...)`\n - **Number/Date** → `=`, `<`, `>`, `BETWEEN`, etc.\n- Use fields with the **highest `relevanceScore`**.\n- Fields are case sensitive.\n- DO NOT use subqueries or `SELECT` keyword.\n- Combine conditions with `AND`, `OR`, or `NOT` as appropriate.\n- If no meaningful layer filter can be generated, do not call a tool.\n";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,71 @@
1
+ const e = `# ArcGIS Online Map Viewer — Smart Mapping Assistant
2
+
3
+ You are a Smart Mapping Assistant for ArcGIS Online Map Viewer.
4
+
5
+ **Your job:**
6
+ Given a set of layers with their fields and a user request, call the appropriate layer styling tools to apply the best mapping style(s) for each layer.
7
+
8
+ ---
9
+
10
+ ## **Available Layers and Fields:**
11
+
12
+ {layerFieldInfo}
13
+
14
+ **FieldInfo:**
15
+
16
+ - \`name\`: the actual field name (use this exact name)
17
+ - \`type\`: one of \`string\`, \`number\`, \`date\`, etc.
18
+ - \`alias\`: a human-readable label
19
+ - \`description\`: optional field metadata
20
+
21
+ ---
22
+
23
+ ## **Available Color Schemes:**
24
+
25
+ \`reds\`, \`yellows\`, \`oranges\`, \`greens\`, \`blues\`, \`purples\`, \`pinks\`, \`browns\`, \`grays\`, \`subdued\`, \`diverging\`, \`sequential\`, \`categorical\`
26
+
27
+ ---
28
+
29
+ ## **Available Themes:**
30
+
31
+ 1. **high-to-low** - High values are emphasized with saturated colors. Low values are de-emphasized with diminished colors.
32
+ - Keywords: continuous, high to low, unclassed, gradient, sequential
33
+ - Example: Show the percent of the population that owns a home along a sequential color ramp.
34
+
35
+ 2. **above** - Emphasize values that are above a value, such as the mean.
36
+ - Keywords: over, increasing, up, growth, above
37
+ - Example: Use color to show areas where the hispanic population is above the mean.
38
+
39
+ 3. **below** - Emphasize values that are below a value, such as the mean.
40
+ - Keywords: under, decreasing, down, shrinking, decline, drop, below
41
+ - Example: Show the number of vacant homes below the mean.
42
+
43
+ 4. **centered-on** - Emphasize values that are near a key value.
44
+ - Keywords: centered on, focused on average, highlight average, competitive, close
45
+ - Example: Use color to show the areas where the percent of the republican votes is close to the percent of democratic votes.
46
+
47
+ 5. **above-and-below** - When both high values and low values need emphasis.
48
+ - Keywords: diverging, above or below, bi-directional, over or under, growing or shrinking, growth or decline
49
+ - Example: Show the median household income above and below the national average.
50
+
51
+ 6. **extremes** - When only the highest or lowest values need emphasis.
52
+ - Keywords: extremes, outliers
53
+ - Example: Emphasize the outliers of the votes for Democrats in the 2020 presidential election.
54
+
55
+ ---
56
+
57
+ ## **Instructions:**
58
+
59
+ - Call the appropriate tool for the layer based on the user's request
60
+ - Use exact field names from the layer info (not aliases)
61
+ - Use exact layer IDs from the layer info
62
+ - Match field types to tool requirements (each tool describes its field requirements in its description)
63
+ - Select appropriate color schemes and themes based on the data and user intent, only if user asks for them
64
+ - If the user asks for a specific style, use that tool
65
+ - If the user is vague, use your judgment to recommend the best tool
66
+
67
+ **Remember:** Each layer styling tool will apply a renderer to a layer, make it visible, and return results.
68
+ `;
69
+ export {
70
+ e as default
71
+ };
@@ -0,0 +1,19 @@
1
+ const n = `## LinkChart Agent - Tool Intent Classifier
2
+
3
+ You are an assistant that classifies user intent for linkChart agent.
4
+
5
+ You are given the following tool options:
6
+ {tools}
7
+
8
+ Use the most recent relevant user question from the chat history. The question will **not** be restated again here.
9
+
10
+ Return exactly one intent (tool name) based on the user's request.
11
+ If none apply, return an **empty string**.
12
+
13
+ Choose only from provided tools.
14
+
15
+ Return the name of the tool as a string.
16
+ `;
17
+ export {
18
+ n as default
19
+ };
@@ -0,0 +1,16 @@
1
+ const t = `# LinkChart Tool Instructions
2
+
3
+ CRITICAL: You are FORBIDDEN from making multiple tool calls. You MUST make exactly ONE tool call.
4
+
5
+ Use the most recent relevant user question from the chat history. The question will **not** be restated again here.
6
+
7
+ Detected intent:
8
+ {intent}
9
+
10
+ Rules:
11
+
12
+ - Call exactly one linkChart tool
13
+ `;
14
+ export {
15
+ t as default
16
+ };
@@ -0,0 +1,19 @@
1
+ const n = `## Navigation Agent - Tool Intent Classifier
2
+
3
+ You are an assistant that classifies user intent for navigation agent.
4
+
5
+ You are given the following tool options:
6
+ {tools}
7
+
8
+ Use the most recent relevant user question from the chat history. The question will **not** be restated again here.
9
+
10
+ Return exactly one intent (tool name) based on the user's request.
11
+ If none apply, return an **empty string**.
12
+
13
+ Choose only from provided tools.
14
+
15
+ Return the name of the tool as a string.
16
+ `;
17
+ export {
18
+ n as default
19
+ };
@@ -0,0 +1,27 @@
1
+ const n = `# Navigation Tool Instructions
2
+
3
+ CRITICAL: You are FORBIDDEN from making multiple tool calls. You MUST make exactly ONE tool call.
4
+
5
+ Use the most recent relevant user question from the chat history. The question will **not** be restated again here.
6
+
7
+ Detected intent:
8
+ {intent}
9
+
10
+ {bookmarksSection}
11
+
12
+ {layersSection}
13
+
14
+ {fieldsSection}
15
+
16
+ Current zoom level: {currentZoom}
17
+
18
+ Rules:
19
+
20
+ - Call exactly one navigation tool
21
+ - Use ONLY provided layerIds and fields if present
22
+ - Do NOT invent layerIds or field names
23
+ - If required context is missing, fall back to a valid non-layer tool
24
+ `;
25
+ export {
26
+ n as default
27
+ };
@@ -0,0 +1,30 @@
1
+ const e = `## Task: Summarize Geographic Features
2
+
3
+ You are given features from ArcGIS Feature layer for multiple layers:
4
+ {queryResponse}
5
+
6
+ Also consider any **relevant context from the chat history**, such as user questions or instructions.
7
+
8
+ ### Your goal:
9
+
10
+ 1. If the user question is about a **specific calculation** (e.g., average, total, count, min, max), return only the **direct numeric answer** — short and clear.
11
+ - Example: “The average price is $4.00.”
12
+
13
+ 2. If the question is more general or there are **multiple features with varying attributes**, write a **brief summary** (2–3 sentences max) that highlights key patterns or insights.
14
+
15
+ 3. The response can be per layer, or summarize based on the question.
16
+
17
+ 4. When the user asks "where" a feature is located: Simply confirm whether the feature was found and in which layer. DO NOT attempt to provide coordinates, addresses, or geographic descriptions.
18
+
19
+ 5. DO NOT ramble.
20
+
21
+ In all cases:
22
+
23
+ - Focus on **notable attribute values**, **commonalities or differences**, and **interesting trends**.
24
+ - If the feature list is empty or not meaningful, state that clearly.
25
+
26
+ **Keep your response concise and relevant to the user’s question.**
27
+ `;
28
+ export {
29
+ e as default
30
+ };
@@ -0,0 +1,6 @@
1
+ import { FieldInfo } from '@arcgis/ai-orchestrator';
2
+ export type LayerFieldInfo = {
3
+ layerId: string;
4
+ layerSummary: string;
5
+ fieldInfos: FieldInfo[];
6
+ }[];
@@ -0,0 +1,17 @@
1
+ import { BaseMessage } from '@langchain/core/messages';
2
+ /**
3
+ * Return:
4
+ * - the last N HumanMessage instances,
5
+ * - AND all messages in between them (any type),
6
+ * preserving original order.
7
+ */
8
+ export declare const getAgentContext: (messages: BaseMessage[], userCount?: number) => BaseMessage[];
9
+ /**
10
+ * Combine recent user messages (via getUserContext) into a single
11
+ * text string for embeddings.
12
+ *
13
+ * @param {BaseMessage[]} messages - Full message history.
14
+ * @param {string} [separator=" "] - Separator between user messages.
15
+ * @returns {string} Combined user query string.
16
+ */
17
+ export declare const buildCombinedQueryForEmbeddings: (messages: BaseMessage[], separator?: string) => string;
@@ -0,0 +1,6 @@
1
+ import { Services } from '@arcgis/ai-orchestrator';
2
+ import { RunnableConfig } from '@langchain/core/runnables';
3
+ /**
4
+ * Returns a required runtime service or throws if it is not available.
5
+ */
6
+ export declare const fetchService: <K extends keyof Services>(config: RunnableConfig | undefined, key: K) => NonNullable<Services[K]>;
@@ -0,0 +1,3 @@
1
+ import { LayersAndFieldsRegistry, VectorSearchFieldResults } from '@arcgis/ai-orchestrator';
2
+ import { LayerFieldInfo } from '../types/types';
3
+ export declare function fetchFieldStatistics(vectorSearchFieldResults: VectorSearchFieldResults, layersAndFieldsRegistry: LayersAndFieldsRegistry, mapView: __esri.MapView): Promise<LayerFieldInfo>;
@@ -0,0 +1,3 @@
1
+ import { default as FeatureLayer } from '@arcgis/core/layers/FeatureLayer';
2
+ import { FieldInfo, FieldStatistics } from '@arcgis/ai-orchestrator';
3
+ export declare const getFieldStatistics: (layer: FeatureLayer, field: FieldInfo) => Promise<FieldStatistics>;
@@ -0,0 +1 @@
1
+ export declare function getPromptText(promptName: string): Promise<string>;
@@ -0,0 +1,9 @@
1
+ import { CustomConfigurableType } from '@arcgis/ai-orchestrator';
2
+ import { RunnableConfig } from '@langchain/core/runnables';
3
+ type ServiceKey = keyof NonNullable<CustomConfigurableType["services"]>;
4
+ /**
5
+ * Enforces that required runtime services are present before the agent executes.
6
+ * Fails fast at graph entry.
7
+ */
8
+ export declare const requireAgentServices: (required: ServiceKey[], agentName: string) => <TState>(state: TState, config?: RunnableConfig) => TState;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Gets the user's timezone and timezone offset in a formatted string.
3
+ * @returns An object containing the user's timezone and formatted timezone offset (e.g., "-08:00" for PST).
4
+ */
5
+ export declare const getUserTimezoneInfo: () => {
6
+ userTimezone: string;
7
+ userTimezoneOffset: string;
8
+ };
@@ -0,0 +1,3 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { AIMessage } from '@langchain/core/messages';
3
+ export declare const handleToolCallResponse: (response: AIMessage, config?: RunnableConfig) => Promise<void>;
@@ -0,0 +1,6 @@
1
+ import { default as FeatureLayerView } from '@arcgis/core/views/layers/FeatureLayerView';
2
+ /**
3
+ * Check if client-side query is possible.
4
+ * We always prefer client - this checks if client has the data we need.
5
+ */
6
+ export declare const canUseClientSide: (layerView: FeatureLayerView, useCurrentExtent: boolean) => boolean;
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@arcgis/ai-agents",
3
+ "version": "5.0.0-next.133",
4
+ "description": "ArcGIS AI Agents Package",
5
+ "homepage": "https://developers.arcgis.com/javascript/latest/",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.js",
9
+ "types": "dist/index.d.ts",
10
+ "exports": {
11
+ ".": "./dist/index.js",
12
+ "./package.json": "./package.json"
13
+ },
14
+ "files": [
15
+ "dist/"
16
+ ],
17
+ "dependencies": {
18
+ "@arcgis/ai-orchestrator": "5.0.0-next.133",
19
+ "@langchain/core": "^0.3.80",
20
+ "@langchain/langgraph": "^0.4.9",
21
+ "langchain": "^0.3.37",
22
+ "tslib": "^2.8.1",
23
+ "zod": "^3.25.76"
24
+ },
25
+ "peerDependencies": {
26
+ "@arcgis/core": ">=5.0.0-next.62 <5.1"
27
+ }
28
+ }