@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
package/LICENSE.md ADDED
@@ -0,0 +1,17 @@
1
+ # Licensing
2
+
3
+ COPYRIGHT © Esri
4
+
5
+ All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
6
+
7
+ This material is licensed for use under the [Esri Master License Agreement (MLA)](https://www.esri.com/content/dam/esrisites/en-us/media/legal/ma-full/ma-full.pdf), and is bound by the terms of that agreement.
8
+ You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
9
+
10
+ For additional information, contact:
11
+ Environmental Systems Research Institute, Inc.
12
+ Attn: Contracts and Legal Services Department
13
+ 380 New York Street
14
+ Redlands, California, USA 92373
15
+ USA
16
+
17
+ email: legal@esri.com
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # ArcGIS Maps SDK for JavaScript - AI Agents package (beta)
2
+
3
+ **No Esri Technical Support included.**
4
+
5
+ The ArcGIS Maps SDK for JavaScript provides a suite of ready-to-use UI components that simplify the process of creating GIS web applications. This package contains **AI agents** with functionality made possible through the SDK's core API which is also accessible through the components.
6
+
7
+ ## License
8
+
9
+ COPYRIGHT © Esri
10
+
11
+ This package is licensed under the terms described in the `LICENSE.md` file, located in the root of the package.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Context required by the Data Exploration agent.
3
+ * Supplied by the application via an agent `getContext()` provider.
4
+ */
5
+ export type DataExplorationContext = {
6
+ mapView: __esri.MapView;
7
+ };
8
+ export declare const dataExplorationContextRequiredKeys: readonly ["mapView"];
@@ -0,0 +1,3 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { DataExplorationContext } from './dataExplorationContext';
3
+ export declare function getDataExplorationContext(config?: RunnableConfig): DataExplorationContext;
@@ -0,0 +1,8 @@
1
+ import { StateGraph } from '@langchain/langgraph/web';
2
+ import { AgentRegistration } from '@arcgis/ai-orchestrator';
3
+ import { DataExplorationGraphStateType } from '../state/dataExplorationState';
4
+ /**
5
+ * Builds the Data Exploration Agent graph (intent classification + tool execution).
6
+ */
7
+ export declare const createDataExplorationAgentGraph: () => StateGraph<DataExplorationGraphStateType>;
8
+ export declare const DataExplorationAgent: AgentRegistration;
@@ -0,0 +1,2 @@
1
+ export { DataExplorationAgent } from './graph/dataExplorationGraph';
2
+ export type { DataExplorationContext } from './context/dataExplorationContext';
@@ -0,0 +1,3 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { DataExplorationGraphStateType } from '../state/dataExplorationState';
3
+ export declare const DataExplorationExit: (state: DataExplorationGraphStateType, config?: RunnableConfig) => Promise<typeof state>;
@@ -0,0 +1,3 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { DataExplorationGraphStateType } from '../state/dataExplorationState';
3
+ export declare const fieldStatistics: (state: DataExplorationGraphStateType, config?: RunnableConfig) => Promise<DataExplorationGraphStateType>;
@@ -0,0 +1,3 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { DataExplorationGraphStateType } from '../state/dataExplorationState';
3
+ export declare const layerFilterLLM: (state: DataExplorationGraphStateType, config?: RunnableConfig) => Promise<DataExplorationGraphStateType>;
@@ -0,0 +1,3 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { DataExplorationGraphStateType } from '../state/dataExplorationState';
3
+ export declare function layerFilterToolCalling(state: DataExplorationGraphStateType, config?: RunnableConfig): Promise<DataExplorationGraphStateType>;
@@ -0,0 +1,3 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { DataExplorationGraphStateType } from '../state/dataExplorationState';
3
+ export declare const layerQueryLLM: (state: DataExplorationGraphStateType, config?: RunnableConfig) => Promise<DataExplorationGraphStateType>;
@@ -0,0 +1,3 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { DataExplorationGraphStateType } from '../state/dataExplorationState';
3
+ export declare function layerQueryToolCalling(state: DataExplorationGraphStateType, config?: RunnableConfig): Promise<DataExplorationGraphStateType>;
@@ -0,0 +1,7 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { DataExplorationGraphStateType } from '../state/dataExplorationState';
3
+ /**
4
+ * Entry guard for Data Exploration Agent.
5
+ * Ensures layerSearch + fieldSearch + layersAndFieldsRegistry services are available.
6
+ */
7
+ export declare const requireDataExplorationServices: (state: DataExplorationGraphStateType, config?: RunnableConfig) => typeof state;
@@ -0,0 +1,3 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { DataExplorationGraphStateType } from '../state/dataExplorationState';
3
+ export declare const summarizeQueryResponseLLM: (state: DataExplorationGraphStateType, config?: RunnableConfig) => Promise<DataExplorationGraphStateType>;
@@ -0,0 +1,3 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { DataExplorationGraphStateType } from '../state/dataExplorationState';
3
+ export declare const vectorSearchFields: (state: DataExplorationGraphStateType, config?: RunnableConfig) => Promise<DataExplorationGraphStateType>;
@@ -0,0 +1,3 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { DataExplorationGraphStateType } from '../state/dataExplorationState';
3
+ export declare const vectorSearchLayers: (state: DataExplorationGraphStateType, config?: RunnableConfig) => Promise<DataExplorationGraphStateType>;
@@ -0,0 +1,12 @@
1
+ import { ChatHistory, VectorSearchFieldResults } from '@arcgis/ai-orchestrator';
2
+ import { QueryResponse } from '../types/types';
3
+ import { LayerFieldInfo } from '../../../types/types';
4
+ export declare const DataExplorationState: import('@langchain/langgraph/web').AnnotationRoot<{
5
+ messages: import('@langchain/langgraph/web').BinaryOperatorAggregate<ChatHistory, ChatHistory>;
6
+ outputMessage: import('@langchain/langgraph/web').BinaryOperatorAggregate<string, string>;
7
+ vectorSearchLayerIds: import('@langchain/langgraph/web').LastValue<string[]>;
8
+ vectorSearchFieldResults: import('@langchain/langgraph/web').LastValue<VectorSearchFieldResults>;
9
+ layerFieldInfo: import('@langchain/langgraph/web').LastValue<LayerFieldInfo>;
10
+ queryResponse: import('@langchain/langgraph/web').LastValue<QueryResponse[]>;
11
+ }>;
12
+ export type DataExplorationGraphStateType = typeof DataExplorationState.State;
@@ -0,0 +1,22 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { default as z } from 'zod';
3
+ export declare const setDefinitionExpressionWrapper: ({ layerId, definitionExpression, }: {
4
+ layerId: string;
5
+ definitionExpression: string;
6
+ }, config?: RunnableConfig) => Promise<string>;
7
+ export declare const setDefinitionExpressionTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
8
+ layerId: z.ZodString;
9
+ definitionExpression: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ layerId: string;
12
+ definitionExpression: string;
13
+ }, {
14
+ layerId: string;
15
+ definitionExpression: string;
16
+ }>, {
17
+ layerId: string;
18
+ definitionExpression: string;
19
+ }, {
20
+ layerId: string;
21
+ definitionExpression: string;
22
+ }, string>;
@@ -0,0 +1 @@
1
+ export declare const setDefinitionExpression: (layerId: string, definitionExpression: string, arcgisMapView: __esri.MapView) => Promise<string>;
@@ -0,0 +1,99 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { default as z } from 'zod';
3
+ import { distanceUnitsSchema } from '../../../types/types';
4
+ export declare const setFeatureEffectWrapper: ({ targetLayer, geometryLayer, includedEffect, excludedEffect, }: {
5
+ targetLayer: {
6
+ layerId: string;
7
+ where: string;
8
+ };
9
+ geometryLayer?: {
10
+ layerId: string;
11
+ where: string;
12
+ distance: number;
13
+ units: typeof distanceUnitsSchema._type;
14
+ };
15
+ includedEffect?: string;
16
+ excludedEffect?: string;
17
+ }, config?: RunnableConfig) => Promise<string>;
18
+ export declare const setFeatureEffectTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
19
+ targetLayer: z.ZodObject<{
20
+ layerId: z.ZodString;
21
+ where: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ where: string;
24
+ layerId: string;
25
+ }, {
26
+ where: string;
27
+ layerId: string;
28
+ }>;
29
+ geometryLayer: z.ZodOptional<z.ZodObject<{
30
+ layerId: z.ZodString;
31
+ where: z.ZodString;
32
+ distance: z.ZodNumber;
33
+ units: z.ZodEnum<["feet", "kilometers", "meters", "miles", "nautical-miles", "us-nautical-miles"]>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ distance: number;
36
+ units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
37
+ where: string;
38
+ layerId: string;
39
+ }, {
40
+ distance: number;
41
+ units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
42
+ where: string;
43
+ layerId: string;
44
+ }>>;
45
+ includedEffect: z.ZodDefault<z.ZodOptional<z.ZodString>>;
46
+ excludedEffect: z.ZodDefault<z.ZodOptional<z.ZodString>>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ includedEffect: string;
49
+ excludedEffect: string;
50
+ targetLayer: {
51
+ where: string;
52
+ layerId: string;
53
+ };
54
+ geometryLayer?: {
55
+ distance: number;
56
+ units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
57
+ where: string;
58
+ layerId: string;
59
+ } | undefined;
60
+ }, {
61
+ targetLayer: {
62
+ where: string;
63
+ layerId: string;
64
+ };
65
+ includedEffect?: string | undefined;
66
+ excludedEffect?: string | undefined;
67
+ geometryLayer?: {
68
+ distance: number;
69
+ units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
70
+ where: string;
71
+ layerId: string;
72
+ } | undefined;
73
+ }>, {
74
+ targetLayer: {
75
+ layerId: string;
76
+ where: string;
77
+ };
78
+ geometryLayer?: {
79
+ layerId: string;
80
+ where: string;
81
+ distance: number;
82
+ units: typeof distanceUnitsSchema._type;
83
+ };
84
+ includedEffect?: string;
85
+ excludedEffect?: string;
86
+ }, {
87
+ targetLayer: {
88
+ where: string;
89
+ layerId: string;
90
+ };
91
+ includedEffect?: string | undefined;
92
+ excludedEffect?: string | undefined;
93
+ geometryLayer?: {
94
+ distance: number;
95
+ units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
96
+ where: string;
97
+ layerId: string;
98
+ } | undefined;
99
+ }, string>;
@@ -0,0 +1,5 @@
1
+ import { GeometryLayerConfig } from '../../../types/types';
2
+ export declare const setFeatureEffect: (targetLayer: {
3
+ layerId: string;
4
+ where: string;
5
+ }, arcgisMapView: __esri.MapView, includedEffect: string, excludedEffect: string, geometryLayer?: GeometryLayerConfig) => Promise<string>;
@@ -0,0 +1 @@
1
+ export * from './adapter';
@@ -0,0 +1,87 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { default as z } from 'zod';
3
+ import { distanceUnitsSchema } from '../../../types/types';
4
+ export declare const setFeatureFilterWrapper: ({ targetLayer, geometryLayer, }: {
5
+ targetLayer: {
6
+ layerId: string;
7
+ where: string;
8
+ };
9
+ geometryLayer?: {
10
+ layerId: string;
11
+ where: string;
12
+ distance: number;
13
+ units: typeof distanceUnitsSchema._type;
14
+ };
15
+ }, config?: RunnableConfig) => Promise<string>;
16
+ export declare const setFeatureFilterTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
17
+ targetLayer: z.ZodObject<{
18
+ layerId: z.ZodString;
19
+ where: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ where: string;
22
+ layerId: string;
23
+ }, {
24
+ where: string;
25
+ layerId: string;
26
+ }>;
27
+ geometryLayer: z.ZodOptional<z.ZodObject<{
28
+ layerId: z.ZodString;
29
+ where: z.ZodString;
30
+ distance: z.ZodNumber;
31
+ units: z.ZodEnum<["feet", "kilometers", "meters", "miles", "nautical-miles", "us-nautical-miles"]>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ distance: number;
34
+ units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
35
+ where: string;
36
+ layerId: string;
37
+ }, {
38
+ distance: number;
39
+ units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
40
+ where: string;
41
+ layerId: string;
42
+ }>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ targetLayer: {
45
+ where: string;
46
+ layerId: string;
47
+ };
48
+ geometryLayer?: {
49
+ distance: number;
50
+ units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
51
+ where: string;
52
+ layerId: string;
53
+ } | undefined;
54
+ }, {
55
+ targetLayer: {
56
+ where: string;
57
+ layerId: string;
58
+ };
59
+ geometryLayer?: {
60
+ distance: number;
61
+ units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
62
+ where: string;
63
+ layerId: string;
64
+ } | undefined;
65
+ }>, {
66
+ targetLayer: {
67
+ layerId: string;
68
+ where: string;
69
+ };
70
+ geometryLayer?: {
71
+ layerId: string;
72
+ where: string;
73
+ distance: number;
74
+ units: typeof distanceUnitsSchema._type;
75
+ };
76
+ }, {
77
+ targetLayer: {
78
+ where: string;
79
+ layerId: string;
80
+ };
81
+ geometryLayer?: {
82
+ distance: number;
83
+ units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
84
+ where: string;
85
+ layerId: string;
86
+ } | undefined;
87
+ }, string>;
@@ -0,0 +1,5 @@
1
+ import { GeometryLayerConfig } from '../../../types/types';
2
+ export declare const setFeatureFilter: (targetLayer: {
3
+ layerId: string;
4
+ where: string;
5
+ }, arcgisMapView: __esri.MapView, geometryLayer?: GeometryLayerConfig) => Promise<string>;
@@ -0,0 +1 @@
1
+ export * from './adapter';