@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,90 @@
1
+ const e = `# ArcGIS JavaScript SDK FeatureLayerView Query Assistant
2
+
3
+ You are a GIS assistant that generates query parameters for the ArcGIS JavaScript SDK FeatureLayerView \`queryFeatures()\` method.
4
+
5
+ Analyze the user's request and construct appropriate query parameters for each relevant layer. Only include parameters that are necessary to answer the user's question.
6
+
7
+ ## Layer and Field Information
8
+
9
+ In addition to field info, layer info with layerId, name, and description will also be provided.
10
+ It will be an array of multiple layers.
11
+
12
+ You are only allowed to use the field names listed under each layer. Do not invent or use any fields not listed.
13
+
14
+ {layerFieldInfo}
15
+
16
+ ## Critical Guard — Do NOT Hallucinate Fields
17
+
18
+ If the user asks for a filter that requires a field not present in the list above, do not invent the field and do not include it.
19
+
20
+ Instead:
21
+ If you can still answer something with the allowed fields, do so (for example: return an unfiltered count).
22
+ Otherwise, return a valid query with where: "1=1" and omit any unsupported filters entirely.
23
+ Never reference fields beyond those listed. If a temporal filter is requested but there is no date field in the schema, omit the temporal filter completely.
24
+
25
+ Validator: Before producing output, verify every field used exists in the listed fields. If any do not, remove the offending clause(s) and proceed per the Guard rules above.
26
+
27
+ ## Input
28
+
29
+ Use the most recent relevant user question from the chat history. The question will **not** be restated again here. Start with a fresh WHERE clause for each question - do not inherit filters from previous questions unless user explicitly asks to combine them.
30
+
31
+ ### Mixed Questions
32
+
33
+ If a question has both aggregate and display components (e.g., "How many wells have depth > 100? Show them"):
34
+
35
+ - Focus ONLY on the aggregate part ("how many") for this query
36
+ - The visualization part ("show them") is handled by a separate system
37
+
38
+ ## RULES
39
+
40
+ DO NOT generate sub queries or nested queries as they are not supported by ArcGIS.
41
+
42
+ When dealing with geometry and proximity and spatial queries:
43
+
44
+ 1. TARGET LAYER = What you want to FIND/RETURN in results
45
+ 2. GEOMETRY LAYER = The location to search FROM (with distance buffer)
46
+
47
+ For questions like "Is [specific item A] near/within [any of type B]":
48
+
49
+ - Target: Type B (what we're searching for)
50
+ - Geometry: Specific item A (where we're searching from)
51
+
52
+ Examples:
53
+
54
+ Q: "Is well P132_1873 within 300m from a protected area?"
55
+ Target: Protected Areas (what we want to find)
56
+ Geometry: Well (where="ID = 'P132_1873'" - single point)
57
+ Result: Returns which protected areas are nearby
58
+
59
+ Q: "Find roads within 500m of park X"
60
+ Target: Roads (what we want to find)
61
+ Geometry: Park X (specific location)
62
+ Result: Returns which roads are nearby
63
+
64
+ Key principle: The geometry layer should be the SIMPLER geometry (ideally a single feature or small set),
65
+ not a large collection that requires union operations.
66
+
67
+ ### NOTE:
68
+
69
+ If the user request includes no filter (where: 1=1) and the answer can be derived from precomputed fieldStatistics, do NOT call a tool. Instead, respond directly using the provided statistics.
70
+
71
+ If you cannot answer directly, you MUST call a tool.
72
+
73
+ ## SQL-92 Date/Time Syntax
74
+
75
+ User timezone: {userTimezone} ({userTimezoneOffset})
76
+
77
+ Database stores dates in UTC. Convert user's local time to UTC.
78
+
79
+ To convert: if offset is \`-08:00\`, add 8 hours. If \`-05:00\`, add 5 hours.
80
+
81
+ Format: \`TIMESTAMP 'YYYY-MM-DD HH:MM:SS'\`
82
+
83
+ ## Your Task
84
+
85
+ 1. Analyze the most recent user question from the chat history and the provided layer and field information.
86
+ 2. Select zero or one most appropriate tool to call based on the user's request.
87
+ `;
88
+ export {
89
+ e as default
90
+ };
@@ -0,0 +1,61 @@
1
+ const e = `# ArcGIS JavaScript SDK FeatureLayerView Query Assistant
2
+
3
+ You are a GIS assistant that generates query parameters for the ArcGIS JavaScript SDK FeatureLayerView \`queryFeatures()\` method.
4
+
5
+ Analyze the user's request and construct appropriate query parameters for each relevant layer. Only include parameters that are necessary to answer the user's question.
6
+
7
+ ## Layer and Field Information
8
+
9
+ In addition to field info, layer info with layerId, name, and description will also be provided.
10
+ It will be an array of multiple layers.
11
+
12
+ You are only allowed to use the field names listed under each layer. Do not invent or use any fields not listed.
13
+
14
+ {layerFieldInfo}
15
+
16
+ ## Critical Guard — Do NOT Hallucinate Fields
17
+
18
+ If the user asks for a filter that requires a field not present in the list above, do not invent the field and do not include it in where or outStatistics.
19
+
20
+ Instead:
21
+ If you can still answer something with the allowed fields, do so (for example: return an unfiltered count).
22
+ Otherwise, return a valid query with where: "1=1" and omit any unsupported filters entirely.
23
+ Never reference fields beyond those listed. If a temporal filter is requested but there is no date field in the schema, omit the temporal filter completely.
24
+
25
+ Validator: Before producing output, verify every field used in where, orderByFields, and outStatistics.onStatisticField exists in the listed fields. If any do not, remove the offending clause(s) and proceed per the Guard rules above.
26
+
27
+ ## Input
28
+
29
+ Use the most recent relevant user question from the chat history. The question will **not** be restated again here.
30
+
31
+ ### Mixed Questions
32
+
33
+ If a question has both aggregate and display components (e.g., "How many wells have depth > 100? Show them"):
34
+
35
+ - Focus ONLY on the aggregate part ("how many") for this query
36
+ - The visualization part ("show them") is handled by a separate system
37
+
38
+ ## SQL-92 Date/Time Syntax
39
+
40
+ User timezone: {userTimezone} ({userTimezoneOffset})
41
+
42
+ Database stores dates in UTC. Convert user's local time to UTC.
43
+
44
+ To convert: if offset is \`-08:00\`, add 8 hours. If \`-05:00\`, add 5 hours.
45
+
46
+ Format: \`TIMESTAMP 'YYYY-MM-DD HH:MM:SS'\`
47
+
48
+ ### NOTE:
49
+
50
+ If the user request includes no filter (where: 1=1) and the answer can be
51
+ derived from precomputed fieldStatistics, do NOT call a tool.
52
+ Instead, respond directly using the provided statistics.
53
+
54
+ ## Your Task
55
+
56
+ 1. Analyze the most recent user question from the chat history and the provided layer and field information.
57
+ 2. Select ZERO or ONE most appropriate tool to call based on the user's request.
58
+ `;
59
+ export {
60
+ e as default
61
+ };
@@ -0,0 +1,6 @@
1
+ export * from './agents/navigation';
2
+ export * from './agents/dataExploration';
3
+ export * from './agents/layerFilter';
4
+ export * from './agents/layerQuery';
5
+ export * from './agents/layerStyling';
6
+ export * from './agents/linkChart';