@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.
- package/LICENSE.md +17 -0
- package/README.md +11 -0
- package/dist/agents/dataExploration/context/dataExplorationContext.d.ts +8 -0
- package/dist/agents/dataExploration/context/getDataExplorationContext.d.ts +3 -0
- package/dist/agents/dataExploration/graph/dataExplorationGraph.d.ts +8 -0
- package/dist/agents/dataExploration/index.d.ts +2 -0
- package/dist/agents/dataExploration/nodes/dataExplorationExit.d.ts +3 -0
- package/dist/agents/dataExploration/nodes/fieldStatistics.d.ts +3 -0
- package/dist/agents/dataExploration/nodes/layerFilterLLM.d.ts +3 -0
- package/dist/agents/dataExploration/nodes/layerFilterToolCalling.d.ts +3 -0
- package/dist/agents/dataExploration/nodes/layerQueryLLM.d.ts +3 -0
- package/dist/agents/dataExploration/nodes/layerQueryToolCalling.d.ts +3 -0
- package/dist/agents/dataExploration/nodes/requireDataExplorationServices.d.ts +7 -0
- package/dist/agents/dataExploration/nodes/summarizeQueryResponseLLM.d.ts +3 -0
- package/dist/agents/dataExploration/nodes/vectorSearchFields.d.ts +3 -0
- package/dist/agents/dataExploration/nodes/vectorSearchLayers.d.ts +3 -0
- package/dist/agents/dataExploration/state/dataExplorationState.d.ts +12 -0
- package/dist/agents/dataExploration/tools/filterTools/setDefinitionExpression/adapter.d.ts +22 -0
- package/dist/agents/dataExploration/tools/filterTools/setDefinitionExpression/core.d.ts +1 -0
- package/dist/agents/dataExploration/tools/filterTools/setDefinitionExpression/index.d.ts +1 -0
- package/dist/agents/dataExploration/tools/filterTools/setFeatureEffect/adapter.d.ts +99 -0
- package/dist/agents/dataExploration/tools/filterTools/setFeatureEffect/core.d.ts +5 -0
- package/dist/agents/dataExploration/tools/filterTools/setFeatureEffect/index.d.ts +1 -0
- package/dist/agents/dataExploration/tools/filterTools/setFeatureFilter/adapter.d.ts +87 -0
- package/dist/agents/dataExploration/tools/filterTools/setFeatureFilter/core.d.ts +5 -0
- package/dist/agents/dataExploration/tools/filterTools/setFeatureFilter/index.d.ts +1 -0
- package/dist/agents/dataExploration/tools/index.d.ts +553 -0
- package/dist/agents/dataExploration/tools/queryTools/getAttribute/adapter.d.ts +44 -0
- package/dist/agents/dataExploration/tools/queryTools/getAttribute/core.d.ts +4 -0
- package/dist/agents/dataExploration/tools/queryTools/getAttribute/index.d.ts +1 -0
- package/dist/agents/dataExploration/tools/queryTools/getStatistics/adapter.d.ts +90 -0
- package/dist/agents/dataExploration/tools/queryTools/getStatistics/core.d.ts +14 -0
- package/dist/agents/dataExploration/tools/queryTools/getStatistics/index.d.ts +1 -0
- package/dist/agents/dataExploration/tools/queryTools/getTopFeatures/adapter.d.ts +131 -0
- package/dist/agents/dataExploration/tools/queryTools/getTopFeatures/core.d.ts +15 -0
- package/dist/agents/dataExploration/tools/queryTools/getTopFeatures/index.d.ts +1 -0
- package/dist/agents/dataExploration/tools/queryTools/queryFeatures/adapter.d.ts +175 -0
- package/dist/agents/dataExploration/tools/queryTools/queryFeatures/core.d.ts +7 -0
- package/dist/agents/dataExploration/tools/queryTools/queryFeatures/index.d.ts +1 -0
- package/dist/agents/dataExploration/types/types.d.ts +27 -0
- package/dist/agents/dataExploration/utils/getDomainName.d.ts +2 -0
- package/dist/agents/dataExploration/utils/getGeometry.d.ts +8 -0
- package/dist/agents/dataExploration/utils/zoomToWhereClause.d.ts +4 -0
- package/dist/agents/layerFilter/context/getLayerFilterContext.d.ts +3 -0
- package/dist/agents/layerFilter/context/layerFilterContext.d.ts +8 -0
- package/dist/agents/layerFilter/graph/layerFilterGraph.d.ts +8 -0
- package/dist/agents/layerFilter/index.d.ts +2 -0
- package/dist/agents/layerFilter/nodes/fieldStatistics.d.ts +3 -0
- package/dist/agents/layerFilter/nodes/layerFilterExit.d.ts +3 -0
- package/dist/agents/layerFilter/nodes/layerFilterLLM.d.ts +3 -0
- package/dist/agents/layerFilter/nodes/layerFilterToolCalling.d.ts +3 -0
- package/dist/agents/layerFilter/nodes/requireLayerFilterServices.d.ts +7 -0
- package/dist/agents/layerFilter/nodes/vectorSearchFields.d.ts +3 -0
- package/dist/agents/layerFilter/nodes/vectorSearchLayers.d.ts +3 -0
- package/dist/agents/layerFilter/state/layerFilterState.d.ts +10 -0
- package/dist/agents/layerFilter/tools/index.d.ts +168 -0
- package/dist/agents/layerFilter/tools/setDefinitionExpression/adapter.d.ts +22 -0
- package/dist/agents/layerFilter/tools/setDefinitionExpression/core.d.ts +1 -0
- package/dist/agents/layerFilter/tools/setDefinitionExpression/index.d.ts +1 -0
- package/dist/agents/layerFilter/tools/setFeatureEffect/adapter.d.ts +99 -0
- package/dist/agents/layerFilter/tools/setFeatureEffect/core.d.ts +5 -0
- package/dist/agents/layerFilter/tools/setFeatureEffect/index.d.ts +1 -0
- package/dist/agents/layerFilter/tools/setFeatureFilter/adapter.d.ts +87 -0
- package/dist/agents/layerFilter/tools/setFeatureFilter/core.d.ts +5 -0
- package/dist/agents/layerFilter/tools/setFeatureFilter/index.d.ts +1 -0
- package/dist/agents/layerFilter/types/types.d.ts +9 -0
- package/dist/agents/layerFilter/utils/getGeometryForFilter.d.ts +12 -0
- package/dist/agents/layerFilter/utils/zoomToWhereClause.d.ts +1 -0
- package/dist/agents/layerQuery/context/getLayerQueryContext.d.ts +3 -0
- package/dist/agents/layerQuery/context/layerQueryContext.d.ts +8 -0
- package/dist/agents/layerQuery/graph/layerQueryGraph.d.ts +8 -0
- package/dist/agents/layerQuery/index.d.ts +2 -0
- package/dist/agents/layerQuery/nodes/fieldStatistics.d.ts +3 -0
- package/dist/agents/layerQuery/nodes/layerQueryExit.d.ts +3 -0
- package/dist/agents/layerQuery/nodes/layerQueryLLM.d.ts +3 -0
- package/dist/agents/layerQuery/nodes/layerQueryToolCalling.d.ts +3 -0
- package/dist/agents/layerQuery/nodes/requireLayerQueryServices.d.ts +7 -0
- package/dist/agents/layerQuery/nodes/summarizeQueryResponseLLM.d.ts +3 -0
- package/dist/agents/layerQuery/nodes/vectorSearchFields.d.ts +3 -0
- package/dist/agents/layerQuery/nodes/vectorSearchLayers.d.ts +3 -0
- package/dist/agents/layerQuery/state/layerQueryState.d.ts +12 -0
- package/dist/agents/layerQuery/tools/getAttribute/adapter.d.ts +44 -0
- package/dist/agents/layerQuery/tools/getAttribute/core.d.ts +4 -0
- package/dist/agents/layerQuery/tools/getAttribute/index.d.ts +1 -0
- package/dist/agents/layerQuery/tools/getStatistics/adapter.d.ts +90 -0
- package/dist/agents/layerQuery/tools/getStatistics/core.d.ts +14 -0
- package/dist/agents/layerQuery/tools/getStatistics/index.d.ts +1 -0
- package/dist/agents/layerQuery/tools/getTopFeatures/adapter.d.ts +131 -0
- package/dist/agents/layerQuery/tools/getTopFeatures/core.d.ts +14 -0
- package/dist/agents/layerQuery/tools/getTopFeatures/index.d.ts +1 -0
- package/dist/agents/layerQuery/tools/index.d.ts +304 -0
- package/dist/agents/layerQuery/tools/queryFeatures/adapter.d.ts +93 -0
- package/dist/agents/layerQuery/tools/queryFeatures/core.d.ts +7 -0
- package/dist/agents/layerQuery/tools/queryFeatures/index.d.ts +1 -0
- package/dist/agents/layerQuery/types/types.d.ts +15 -0
- package/dist/agents/layerQuery/utils/getGeometryForQuery.d.ts +6 -0
- package/dist/agents/layerStyling/context/getLayerStylingContext.d.ts +3 -0
- package/dist/agents/layerStyling/context/layerStylingContext.d.ts +8 -0
- package/dist/agents/layerStyling/graph/layerStylingGraph.d.ts +8 -0
- package/dist/agents/layerStyling/index.d.ts +2 -0
- package/dist/agents/layerStyling/nodes/layerFieldInfo.d.ts +3 -0
- package/dist/agents/layerStyling/nodes/layerSelectionHITL.d.ts +9 -0
- package/dist/agents/layerStyling/nodes/layerStylingExit.d.ts +3 -0
- package/dist/agents/layerStyling/nodes/layerStylingLLM.d.ts +3 -0
- package/dist/agents/layerStyling/nodes/layerStylingToolCalling.d.ts +3 -0
- package/dist/agents/layerStyling/nodes/requireLayerStylingServices.d.ts +7 -0
- package/dist/agents/layerStyling/nodes/vectorSearchFields.d.ts +3 -0
- package/dist/agents/layerStyling/nodes/vectorSearchLayers.d.ts +3 -0
- package/dist/agents/layerStyling/state/layerStylingState.d.ts +11 -0
- package/dist/agents/layerStyling/tools/applyChartRenderer/adapter.d.ts +34 -0
- package/dist/agents/layerStyling/tools/applyChartRenderer/core.d.ts +10 -0
- package/dist/agents/layerStyling/tools/applyChartRenderer/index.d.ts +1 -0
- package/dist/agents/layerStyling/tools/applyColorAgeRenderer/adapter.d.ts +34 -0
- package/dist/agents/layerStyling/tools/applyColorAgeRenderer/core.d.ts +10 -0
- package/dist/agents/layerStyling/tools/applyColorAgeRenderer/index.d.ts +1 -0
- package/dist/agents/layerStyling/tools/applyColorRenderer/adapter.d.ts +34 -0
- package/dist/agents/layerStyling/tools/applyColorRenderer/core.d.ts +10 -0
- package/dist/agents/layerStyling/tools/applyColorRenderer/index.d.ts +1 -0
- package/dist/agents/layerStyling/tools/applyColorSizeUnivariateRenderer/adapter.d.ts +34 -0
- package/dist/agents/layerStyling/tools/applyColorSizeUnivariateRenderer/core.d.ts +10 -0
- package/dist/agents/layerStyling/tools/applyColorSizeUnivariateRenderer/index.d.ts +1 -0
- package/dist/agents/layerStyling/tools/applyDotDensityRenderer/adapter.d.ts +28 -0
- package/dist/agents/layerStyling/tools/applyDotDensityRenderer/core.d.ts +9 -0
- package/dist/agents/layerStyling/tools/applyDotDensityRenderer/index.d.ts +1 -0
- package/dist/agents/layerStyling/tools/applyHeatmapRenderer/adapter.d.ts +28 -0
- package/dist/agents/layerStyling/tools/applyHeatmapRenderer/core.d.ts +9 -0
- package/dist/agents/layerStyling/tools/applyHeatmapRenderer/index.d.ts +1 -0
- package/dist/agents/layerStyling/tools/applyPredominanceRenderer/adapter.d.ts +34 -0
- package/dist/agents/layerStyling/tools/applyPredominanceRenderer/core.d.ts +10 -0
- package/dist/agents/layerStyling/tools/applyPredominanceRenderer/index.d.ts +1 -0
- package/dist/agents/layerStyling/tools/applyRelationshipRenderer/adapter.d.ts +28 -0
- package/dist/agents/layerStyling/tools/applyRelationshipRenderer/core.d.ts +9 -0
- package/dist/agents/layerStyling/tools/applyRelationshipRenderer/index.d.ts +1 -0
- package/dist/agents/layerStyling/tools/applySizeAgeRenderer/adapter.d.ts +34 -0
- package/dist/agents/layerStyling/tools/applySizeAgeRenderer/core.d.ts +10 -0
- package/dist/agents/layerStyling/tools/applySizeAgeRenderer/index.d.ts +1 -0
- package/dist/agents/layerStyling/tools/applySizeRenderer/adapter.d.ts +34 -0
- package/dist/agents/layerStyling/tools/applySizeRenderer/core.d.ts +10 -0
- package/dist/agents/layerStyling/tools/applySizeRenderer/index.d.ts +1 -0
- package/dist/agents/layerStyling/tools/applyTypeRenderer/adapter.d.ts +34 -0
- package/dist/agents/layerStyling/tools/applyTypeRenderer/core.d.ts +10 -0
- package/dist/agents/layerStyling/tools/applyTypeRenderer/index.d.ts +1 -0
- package/dist/agents/layerStyling/tools/index.d.ts +71 -0
- package/dist/agents/layerStyling/types/types.d.ts +23 -0
- package/dist/agents/layerStyling/utils/renderers/chart.d.ts +3 -0
- package/dist/agents/layerStyling/utils/renderers/color-age.d.ts +3 -0
- package/dist/agents/layerStyling/utils/renderers/color-size-univariate.d.ts +3 -0
- package/dist/agents/layerStyling/utils/renderers/color.d.ts +3 -0
- package/dist/agents/layerStyling/utils/renderers/dot-density.d.ts +3 -0
- package/dist/agents/layerStyling/utils/renderers/heatmap.d.ts +3 -0
- package/dist/agents/layerStyling/utils/renderers/predominance.d.ts +3 -0
- package/dist/agents/layerStyling/utils/renderers/relationship.d.ts +3 -0
- package/dist/agents/layerStyling/utils/renderers/size-age.d.ts +3 -0
- package/dist/agents/layerStyling/utils/renderers/size.d.ts +3 -0
- package/dist/agents/layerStyling/utils/renderers/type.d.ts +3 -0
- package/dist/agents/linkChart/context/getLinkChartContext.d.ts +3 -0
- package/dist/agents/linkChart/context/linkChartContext.d.ts +8 -0
- package/dist/agents/linkChart/graph/linkChartGraph.d.ts +8 -0
- package/dist/agents/linkChart/index.d.ts +2 -0
- package/dist/agents/linkChart/nodes/linkChartIntentLLM.d.ts +2 -0
- package/dist/agents/linkChart/nodes/linkChartLLM.d.ts +3 -0
- package/dist/agents/linkChart/nodes/linkChartToolCalling.d.ts +3 -0
- package/dist/agents/linkChart/nodes/requireLinkChartServices.d.ts +6 -0
- package/dist/agents/linkChart/state/linkChartState.d.ts +7 -0
- package/dist/agents/linkChart/tools/applyLayout/adapter.d.ts +16 -0
- package/dist/agents/linkChart/tools/applyLayout/core.d.ts +2 -0
- package/dist/agents/linkChart/tools/applyLayout/index.d.ts +1 -0
- package/dist/agents/linkChart/tools/changeNonspatialVisibility/adapter.d.ts +16 -0
- package/dist/agents/linkChart/tools/changeNonspatialVisibility/core.d.ts +1 -0
- package/dist/agents/linkChart/tools/changeNonspatialVisibility/index.d.ts +1 -0
- package/dist/agents/linkChart/tools/index.d.ts +21 -0
- package/dist/agents/navigation/context/getNavigationContext.d.ts +3 -0
- package/dist/agents/navigation/context/navigationContext.d.ts +8 -0
- package/dist/agents/navigation/graph/navigationGraph.d.ts +8 -0
- package/dist/agents/navigation/index.d.ts +2 -0
- package/dist/agents/navigation/nodes/navigationIntentLLM.d.ts +2 -0
- package/dist/agents/navigation/nodes/navigationLLM.d.ts +3 -0
- package/dist/agents/navigation/nodes/navigationToolCalling.d.ts +3 -0
- package/dist/agents/navigation/nodes/requireNavigationServices.d.ts +7 -0
- package/dist/agents/navigation/nodes/vectorSearchFields.d.ts +3 -0
- package/dist/agents/navigation/nodes/vectorSearchLayers.d.ts +3 -0
- package/dist/agents/navigation/state/navigationState.d.ts +19 -0
- package/dist/agents/navigation/tools/goToAddress/adapter.d.ts +16 -0
- package/dist/agents/navigation/tools/goToAddress/core.d.ts +1 -0
- package/dist/agents/navigation/tools/goToAddress/index.d.ts +1 -0
- package/dist/agents/navigation/tools/goToBookmark/adapter.d.ts +16 -0
- package/dist/agents/navigation/tools/goToBookmark/core.d.ts +1 -0
- package/dist/agents/navigation/tools/goToBookmark/index.d.ts +1 -0
- package/dist/agents/navigation/tools/goToFeatures/adapter.d.ts +22 -0
- package/dist/agents/navigation/tools/goToFeatures/core.d.ts +1 -0
- package/dist/agents/navigation/tools/goToFeatures/index.d.ts +1 -0
- package/dist/agents/navigation/tools/goToFullExtent/adapter.d.ts +4 -0
- package/dist/agents/navigation/tools/goToFullExtent/core.d.ts +1 -0
- package/dist/agents/navigation/tools/goToFullExtent/index.d.ts +1 -0
- package/dist/agents/navigation/tools/goToHomeExtent/adapter.d.ts +4 -0
- package/dist/agents/navigation/tools/goToHomeExtent/core.d.ts +1 -0
- package/dist/agents/navigation/tools/goToHomeExtent/index.d.ts +1 -0
- package/dist/agents/navigation/tools/goToLayer/adapter.d.ts +23 -0
- package/dist/agents/navigation/tools/goToLayer/core.d.ts +1 -0
- package/dist/agents/navigation/tools/goToLayer/index.d.ts +1 -0
- package/dist/agents/navigation/tools/goToScale/adapter.d.ts +16 -0
- package/dist/agents/navigation/tools/goToScale/core.d.ts +1 -0
- package/dist/agents/navigation/tools/goToScale/index.d.ts +1 -0
- package/dist/agents/navigation/tools/goToViewpoint/adapter.d.ts +52 -0
- package/dist/agents/navigation/tools/goToViewpoint/core.d.ts +7 -0
- package/dist/agents/navigation/tools/goToViewpoint/index.d.ts +1 -0
- package/dist/agents/navigation/tools/goToZoom/adapter.d.ts +16 -0
- package/dist/agents/navigation/tools/goToZoom/core.d.ts +1 -0
- package/dist/agents/navigation/tools/goToZoom/index.d.ts +1 -0
- package/dist/agents/navigation/tools/index.d.ts +107 -0
- package/dist/agents/navigation/types/types.d.ts +12 -0
- package/dist/data_explore_filter_prompt-CpgEu_mo.js +79 -0
- package/dist/data_explore_query_prompt-CtSDS9l_.js +90 -0
- package/dist/data_query_prompt-N4YzctpM.js +61 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3345 -0
- package/dist/layer_filter_prompt-0ujK87_y.js +4 -0
- package/dist/layer_styling_prompt-ybkb5Jgq.js +71 -0
- package/dist/link_chart_intent_prompt-C1t8tzl2.js +19 -0
- package/dist/link_chart_tool_prompt-IJcTG4Ya.js +16 -0
- package/dist/navigation_intent_prompt-DEERQeWD.js +19 -0
- package/dist/navigation_tool_prompt-C2jIBkeu.js +27 -0
- package/dist/summarize_query_response_prompt-DBJy1AAu.js +30 -0
- package/dist/types/types.d.ts +6 -0
- package/dist/utils/contextSelectors.d.ts +17 -0
- package/dist/utils/fetchService.d.ts +6 -0
- package/dist/utils/fieldStatistics.d.ts +3 -0
- package/dist/utils/getFieldStatistics.d.ts +3 -0
- package/dist/utils/getPrompt.d.ts +1 -0
- package/dist/utils/requireAgentServices.d.ts +9 -0
- package/dist/utils/timeZone.d.ts +8 -0
- package/dist/utils/toolCallResponse.d.ts +3 -0
- package/dist/utils/useClientSide.d.ts +6 -0
- package/package.json +28 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
|
+
import { LinkChartGraphStateType } from '../state/linkChartState';
|
|
3
|
+
/**
|
|
4
|
+
* Entry guard for LinkChart Agent.
|
|
5
|
+
*/
|
|
6
|
+
export declare const requireLinkChartServices: (state: LinkChartGraphStateType, config?: RunnableConfig) => typeof state;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChatHistory } from '@arcgis/ai-orchestrator';
|
|
2
|
+
export declare const linkChartState: import('@langchain/langgraph/web').AnnotationRoot<{
|
|
3
|
+
messages: import('@langchain/langgraph/web').BinaryOperatorAggregate<ChatHistory, ChatHistory>;
|
|
4
|
+
outputMessage: import('@langchain/langgraph/web').BinaryOperatorAggregate<string, string>;
|
|
5
|
+
intent: import('@langchain/langgraph/web').BinaryOperatorAggregate<string, string>;
|
|
6
|
+
}>;
|
|
7
|
+
export type LinkChartGraphStateType = typeof linkChartState.State;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
|
+
import { default as z } from 'zod';
|
|
3
|
+
export declare function applyLayoutWrapper({ layout }: {
|
|
4
|
+
layout: string;
|
|
5
|
+
}, config?: RunnableConfig): Promise<string>;
|
|
6
|
+
export declare const applyLayout: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
|
|
7
|
+
layout: z.ZodEnum<["organic-standard", "organic-community", "basic-grid", "hierarchical-bottom-to-top", "radial-root-centric", "tree-left-to-right", "geographic-organic-standard", "chronological-mono-timeline", "chronological-multi-timeline"]>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
layout: "basic-grid" | "chronological-mono-timeline" | "chronological-multi-timeline" | "geographic-organic-standard" | "hierarchical-bottom-to-top" | "organic-community" | "organic-standard" | "radial-root-centric" | "tree-left-to-right";
|
|
10
|
+
}, {
|
|
11
|
+
layout: "basic-grid" | "chronological-mono-timeline" | "chronological-multi-timeline" | "geographic-organic-standard" | "hierarchical-bottom-to-top" | "organic-community" | "organic-standard" | "radial-root-centric" | "tree-left-to-right";
|
|
12
|
+
}>, {
|
|
13
|
+
layout: string;
|
|
14
|
+
}, {
|
|
15
|
+
layout: "basic-grid" | "chronological-mono-timeline" | "chronological-multi-timeline" | "geographic-organic-standard" | "hierarchical-bottom-to-top" | "organic-community" | "organic-standard" | "radial-root-centric" | "tree-left-to-right";
|
|
16
|
+
}, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
|
+
import { default as z } from 'zod';
|
|
3
|
+
export declare function changeNonspatialVisibilityWrapper({ setting }: {
|
|
4
|
+
setting: string;
|
|
5
|
+
}, config?: RunnableConfig): string;
|
|
6
|
+
export declare const changeNonspatialVisibility: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
|
|
7
|
+
setting: z.ZodEnum<["hidden", "visible"]>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
setting: "visible" | "hidden";
|
|
10
|
+
}, {
|
|
11
|
+
setting: "visible" | "hidden";
|
|
12
|
+
}>, {
|
|
13
|
+
setting: string;
|
|
14
|
+
}, {
|
|
15
|
+
setting: "visible" | "hidden";
|
|
16
|
+
}, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function executeChangeNonspatialVisibility(setting: "hidden" | "visible", linkChartView: __esri.LinkChartView): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const linkChartTools: (import('@langchain/core/tools').DynamicStructuredTool<import('zod').ZodObject<{
|
|
2
|
+
layout: import('zod').ZodEnum<["organic-standard", "organic-community", "basic-grid", "hierarchical-bottom-to-top", "radial-root-centric", "tree-left-to-right", "geographic-organic-standard", "chronological-mono-timeline", "chronological-multi-timeline"]>;
|
|
3
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
4
|
+
layout: "basic-grid" | "chronological-mono-timeline" | "chronological-multi-timeline" | "geographic-organic-standard" | "hierarchical-bottom-to-top" | "organic-community" | "organic-standard" | "radial-root-centric" | "tree-left-to-right";
|
|
5
|
+
}, {
|
|
6
|
+
layout: "basic-grid" | "chronological-mono-timeline" | "chronological-multi-timeline" | "geographic-organic-standard" | "hierarchical-bottom-to-top" | "organic-community" | "organic-standard" | "radial-root-centric" | "tree-left-to-right";
|
|
7
|
+
}>, {
|
|
8
|
+
layout: string;
|
|
9
|
+
}, {
|
|
10
|
+
layout: "basic-grid" | "chronological-mono-timeline" | "chronological-multi-timeline" | "geographic-organic-standard" | "hierarchical-bottom-to-top" | "organic-community" | "organic-standard" | "radial-root-centric" | "tree-left-to-right";
|
|
11
|
+
}, string> | import('@langchain/core/tools').DynamicStructuredTool<import('zod').ZodObject<{
|
|
12
|
+
setting: import('zod').ZodEnum<["hidden", "visible"]>;
|
|
13
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
14
|
+
setting: "visible" | "hidden";
|
|
15
|
+
}, {
|
|
16
|
+
setting: "visible" | "hidden";
|
|
17
|
+
}>, {
|
|
18
|
+
setting: string;
|
|
19
|
+
}, {
|
|
20
|
+
setting: "visible" | "hidden";
|
|
21
|
+
}, string>)[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context required by the Navigation agent.
|
|
3
|
+
* Supplied by the application via an agent `getContext()` provider.
|
|
4
|
+
*/
|
|
5
|
+
export type NavigationContext = {
|
|
6
|
+
mapView: __esri.MapView;
|
|
7
|
+
};
|
|
8
|
+
export declare const navigationContextRequiredKeys: readonly ["mapView"];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StateGraph } from '@langchain/langgraph/web';
|
|
2
|
+
import { NavigationGraphStateType } from '../state/navigationState';
|
|
3
|
+
import { AgentRegistration } from '@arcgis/ai-orchestrator';
|
|
4
|
+
/**
|
|
5
|
+
* Builds the Navigation Agent graph (intent classification + tool execution).
|
|
6
|
+
*/
|
|
7
|
+
export declare const createNavigationAgentGraph: () => StateGraph<NavigationGraphStateType>;
|
|
8
|
+
export declare const NavigationAgent: AgentRegistration;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
|
+
import { NavigationGraphStateType } from '../state/navigationState';
|
|
3
|
+
/**
|
|
4
|
+
* Entry guard for Navigation Agent.
|
|
5
|
+
* Ensures layerSearch + layersAndFieldsRegistry services are available.
|
|
6
|
+
*/
|
|
7
|
+
export declare const requireNavigationServices: (state: NavigationGraphStateType, config?: RunnableConfig) => typeof state;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ChatHistory, VectorSearchFieldResults } from '@arcgis/ai-orchestrator';
|
|
2
|
+
export declare const NavigationState: import('@langchain/langgraph/web').AnnotationRoot<{
|
|
3
|
+
messages: import('@langchain/langgraph/web').BinaryOperatorAggregate<ChatHistory, ChatHistory>;
|
|
4
|
+
outputMessage: import('@langchain/langgraph/web').BinaryOperatorAggregate<string, string>;
|
|
5
|
+
intent: import('@langchain/langgraph/web').BinaryOperatorAggregate<string, string>;
|
|
6
|
+
vectorSearchLayerResults: import('@langchain/langgraph/web').BinaryOperatorAggregate<{
|
|
7
|
+
id: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
score: number;
|
|
11
|
+
}[], {
|
|
12
|
+
id: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
score: number;
|
|
16
|
+
}[]>;
|
|
17
|
+
vectorSearchFieldResults: import('@langchain/langgraph/web').BinaryOperatorAggregate<VectorSearchFieldResults, VectorSearchFieldResults>;
|
|
18
|
+
}>;
|
|
19
|
+
export type NavigationGraphStateType = typeof NavigationState.State;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
|
+
import { default as z } from 'zod';
|
|
3
|
+
export declare function goToAddressWrapper({ address }: {
|
|
4
|
+
address: string;
|
|
5
|
+
}, config?: RunnableConfig): Promise<string>;
|
|
6
|
+
export declare const goToAddressTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
|
|
7
|
+
address: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
address: string;
|
|
10
|
+
}, {
|
|
11
|
+
address: string;
|
|
12
|
+
}>, {
|
|
13
|
+
address: string;
|
|
14
|
+
}, {
|
|
15
|
+
address: string;
|
|
16
|
+
}, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function goToAddress(address: string, mapView: __esri.MapView): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
3
|
+
export declare function goToBookmarkWrapper({ bookmarkName }: {
|
|
4
|
+
bookmarkName: string;
|
|
5
|
+
}, config?: RunnableConfig): Promise<string>;
|
|
6
|
+
export declare const goToBookmarkTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
|
|
7
|
+
bookmarkName: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
bookmarkName: string;
|
|
10
|
+
}, {
|
|
11
|
+
bookmarkName: string;
|
|
12
|
+
}>, {
|
|
13
|
+
bookmarkName: string;
|
|
14
|
+
}, {
|
|
15
|
+
bookmarkName: string;
|
|
16
|
+
}, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function goToBookmark(bookmarkName: string, mapView: __esri.MapView): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
3
|
+
export declare function goToFeaturesWrapper({ layerId, where }: {
|
|
4
|
+
layerId: string;
|
|
5
|
+
where: string;
|
|
6
|
+
}, config?: RunnableConfig): Promise<string>;
|
|
7
|
+
export declare const goToFeaturesTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
|
|
8
|
+
layerId: z.ZodString;
|
|
9
|
+
where: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
where: string;
|
|
12
|
+
layerId: string;
|
|
13
|
+
}, {
|
|
14
|
+
where: string;
|
|
15
|
+
layerId: string;
|
|
16
|
+
}>, {
|
|
17
|
+
layerId: string;
|
|
18
|
+
where: string;
|
|
19
|
+
}, {
|
|
20
|
+
where: string;
|
|
21
|
+
layerId: string;
|
|
22
|
+
}, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function goToFeatures(layerId: string, where: string, arcgisMapView: __esri.MapView): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
3
|
+
export declare function goToFullExtentWrapper(_input: string, config?: RunnableConfig): Promise<string>;
|
|
4
|
+
export declare const goToFullExtentTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, string, {}, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function goToFullExtent(mapView: __esri.MapView): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
|
+
import { default as z } from 'zod';
|
|
3
|
+
export declare function goToHomeExtentWrapper(_input: string, config?: RunnableConfig): Promise<string>;
|
|
4
|
+
export declare const goToHomeExtentTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, string, {}, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function goToHomeExtent(mapView: __esri.MapView): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
3
|
+
export declare function goToLayerWrapper({ layerId }: {
|
|
4
|
+
layerId: string;
|
|
5
|
+
}, config?: RunnableConfig): Promise<string>;
|
|
6
|
+
export declare const goToLayerSchema: z.ZodObject<{
|
|
7
|
+
layerId: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
layerId: string;
|
|
10
|
+
}, {
|
|
11
|
+
layerId: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const goToLayerTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
|
|
14
|
+
layerId: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
layerId: string;
|
|
17
|
+
}, {
|
|
18
|
+
layerId: string;
|
|
19
|
+
}>, {
|
|
20
|
+
layerId: string;
|
|
21
|
+
}, {
|
|
22
|
+
layerId: string;
|
|
23
|
+
}, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function goToLayer(layerId: string, mapView: __esri.MapView): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
|
+
import { default as z } from 'zod';
|
|
3
|
+
export declare function goToScaleWrapper({ scale }: {
|
|
4
|
+
scale: number;
|
|
5
|
+
}, config?: RunnableConfig): Promise<string>;
|
|
6
|
+
export declare const goToScaleTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
|
|
7
|
+
scale: z.ZodNumber;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
scale: number;
|
|
10
|
+
}, {
|
|
11
|
+
scale: number;
|
|
12
|
+
}>, {
|
|
13
|
+
scale: number;
|
|
14
|
+
}, {
|
|
15
|
+
scale: number;
|
|
16
|
+
}, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function goToScale(scale: number, arcgisMapView: __esri.MapView): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
|
+
import { default as z } from 'zod';
|
|
3
|
+
export declare function goToViewpointWrapper({ center, zoom, scale, }: {
|
|
4
|
+
center: {
|
|
5
|
+
longitude: number;
|
|
6
|
+
latitude: number;
|
|
7
|
+
};
|
|
8
|
+
zoom?: number;
|
|
9
|
+
scale?: number;
|
|
10
|
+
}, config?: RunnableConfig): Promise<string>;
|
|
11
|
+
export declare const goToViewpointTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
|
|
12
|
+
center: z.ZodObject<{
|
|
13
|
+
longitude: z.ZodNumber;
|
|
14
|
+
latitude: z.ZodNumber;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
latitude: number;
|
|
17
|
+
longitude: number;
|
|
18
|
+
}, {
|
|
19
|
+
latitude: number;
|
|
20
|
+
longitude: number;
|
|
21
|
+
}>;
|
|
22
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
center: {
|
|
26
|
+
latitude: number;
|
|
27
|
+
longitude: number;
|
|
28
|
+
};
|
|
29
|
+
scale?: number | undefined;
|
|
30
|
+
zoom?: number | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
center: {
|
|
33
|
+
latitude: number;
|
|
34
|
+
longitude: number;
|
|
35
|
+
};
|
|
36
|
+
scale?: number | undefined;
|
|
37
|
+
zoom?: number | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
center: {
|
|
40
|
+
longitude: number;
|
|
41
|
+
latitude: number;
|
|
42
|
+
};
|
|
43
|
+
zoom?: number;
|
|
44
|
+
scale?: number;
|
|
45
|
+
}, {
|
|
46
|
+
center: {
|
|
47
|
+
latitude: number;
|
|
48
|
+
longitude: number;
|
|
49
|
+
};
|
|
50
|
+
scale?: number | undefined;
|
|
51
|
+
zoom?: number | undefined;
|
|
52
|
+
}, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
|
+
import { default as z } from 'zod';
|
|
3
|
+
export declare function goToZoomWrapper({ zoom }: {
|
|
4
|
+
zoom: number;
|
|
5
|
+
}, config?: RunnableConfig): Promise<string>;
|
|
6
|
+
export declare const goToZoomTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
|
|
7
|
+
zoom: z.ZodNumber;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
zoom: number;
|
|
10
|
+
}, {
|
|
11
|
+
zoom: number;
|
|
12
|
+
}>, {
|
|
13
|
+
zoom: number;
|
|
14
|
+
}, {
|
|
15
|
+
zoom: number;
|
|
16
|
+
}, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function goToZoom(zoom: number, arcgisMapView: __esri.MapView): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare const navigationTools: (import('@langchain/core/tools').DynamicStructuredTool<import('zod').ZodObject<{
|
|
2
|
+
address: import('zod').ZodString;
|
|
3
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
4
|
+
address: string;
|
|
5
|
+
}, {
|
|
6
|
+
address: string;
|
|
7
|
+
}>, {
|
|
8
|
+
address: string;
|
|
9
|
+
}, {
|
|
10
|
+
address: string;
|
|
11
|
+
}, string> | import('@langchain/core/tools').DynamicStructuredTool<import('zod').ZodObject<{
|
|
12
|
+
bookmarkName: import('zod').ZodString;
|
|
13
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
14
|
+
bookmarkName: string;
|
|
15
|
+
}, {
|
|
16
|
+
bookmarkName: string;
|
|
17
|
+
}>, {
|
|
18
|
+
bookmarkName: string;
|
|
19
|
+
}, {
|
|
20
|
+
bookmarkName: string;
|
|
21
|
+
}, string> | import('@langchain/core/tools').DynamicStructuredTool<import('zod').ZodObject<{
|
|
22
|
+
layerId: import('zod').ZodString;
|
|
23
|
+
where: import('zod').ZodString;
|
|
24
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
25
|
+
where: string;
|
|
26
|
+
layerId: string;
|
|
27
|
+
}, {
|
|
28
|
+
where: string;
|
|
29
|
+
layerId: string;
|
|
30
|
+
}>, {
|
|
31
|
+
layerId: string;
|
|
32
|
+
where: string;
|
|
33
|
+
}, {
|
|
34
|
+
where: string;
|
|
35
|
+
layerId: string;
|
|
36
|
+
}, string> | import('@langchain/core/tools').DynamicStructuredTool<import('zod').ZodObject<{}, "strip", import('zod').ZodTypeAny, {}, {}>, string, {}, string> | import('@langchain/core/tools').DynamicStructuredTool<import('zod').ZodObject<{
|
|
37
|
+
layerId: import('zod').ZodString;
|
|
38
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
39
|
+
layerId: string;
|
|
40
|
+
}, {
|
|
41
|
+
layerId: string;
|
|
42
|
+
}>, {
|
|
43
|
+
layerId: string;
|
|
44
|
+
}, {
|
|
45
|
+
layerId: string;
|
|
46
|
+
}, string> | import('@langchain/core/tools').DynamicStructuredTool<import('zod').ZodObject<{
|
|
47
|
+
scale: import('zod').ZodNumber;
|
|
48
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
49
|
+
scale: number;
|
|
50
|
+
}, {
|
|
51
|
+
scale: number;
|
|
52
|
+
}>, {
|
|
53
|
+
scale: number;
|
|
54
|
+
}, {
|
|
55
|
+
scale: number;
|
|
56
|
+
}, string> | import('@langchain/core/tools').DynamicStructuredTool<import('zod').ZodObject<{
|
|
57
|
+
center: import('zod').ZodObject<{
|
|
58
|
+
longitude: import('zod').ZodNumber;
|
|
59
|
+
latitude: import('zod').ZodNumber;
|
|
60
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
61
|
+
latitude: number;
|
|
62
|
+
longitude: number;
|
|
63
|
+
}, {
|
|
64
|
+
latitude: number;
|
|
65
|
+
longitude: number;
|
|
66
|
+
}>;
|
|
67
|
+
zoom: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
68
|
+
scale: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
69
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
70
|
+
center: {
|
|
71
|
+
latitude: number;
|
|
72
|
+
longitude: number;
|
|
73
|
+
};
|
|
74
|
+
scale?: number | undefined;
|
|
75
|
+
zoom?: number | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
center: {
|
|
78
|
+
latitude: number;
|
|
79
|
+
longitude: number;
|
|
80
|
+
};
|
|
81
|
+
scale?: number | undefined;
|
|
82
|
+
zoom?: number | undefined;
|
|
83
|
+
}>, {
|
|
84
|
+
center: {
|
|
85
|
+
longitude: number;
|
|
86
|
+
latitude: number;
|
|
87
|
+
};
|
|
88
|
+
zoom?: number;
|
|
89
|
+
scale?: number;
|
|
90
|
+
}, {
|
|
91
|
+
center: {
|
|
92
|
+
latitude: number;
|
|
93
|
+
longitude: number;
|
|
94
|
+
};
|
|
95
|
+
scale?: number | undefined;
|
|
96
|
+
zoom?: number | undefined;
|
|
97
|
+
}, string> | import('@langchain/core/tools').DynamicStructuredTool<import('zod').ZodObject<{
|
|
98
|
+
zoom: import('zod').ZodNumber;
|
|
99
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
100
|
+
zoom: number;
|
|
101
|
+
}, {
|
|
102
|
+
zoom: number;
|
|
103
|
+
}>, {
|
|
104
|
+
zoom: number;
|
|
105
|
+
}, {
|
|
106
|
+
zoom: number;
|
|
107
|
+
}, string>)[];
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
const e = `# ArcGIS Online Map Viewer — Layer Filter Tool Calling Assistant
|
|
2
|
+
|
|
3
|
+
You are an assistant that helps generate layer filter expressions for **ArcGIS Online Map Viewer** by selecting and calling the appropriate tool.
|
|
4
|
+
|
|
5
|
+
CRITICAL: You MUST make exactly ONE tool call. You are FORBIDDEN from making zero or multiple tool calls. Even if the question has been answered, you need to filter the features.
|
|
6
|
+
|
|
7
|
+
## You are given:
|
|
8
|
+
|
|
9
|
+
A list of layers, with layerId, layerSummary and each with associated field information
|
|
10
|
+
{layerFieldInfo}
|
|
11
|
+
|
|
12
|
+
FieldInfo:
|
|
13
|
+
|
|
14
|
+
- \`name\`: the actual field name used in layer filter expressions
|
|
15
|
+
- \`type\`: one of \`string\`, \`number\`, \`date\`, etc.
|
|
16
|
+
- \`alias\`: a human-readable label
|
|
17
|
+
- \`description\`: optional field metadata
|
|
18
|
+
- \`statistics\`: such as min, max, unique values, etc.
|
|
19
|
+
|
|
20
|
+
## Your task
|
|
21
|
+
|
|
22
|
+
1. Analyze the user's request and the provided layer and field information.
|
|
23
|
+
2. Generate a **single ArcGIS SQL WHERE clause** to match features based on the user's request and intent.
|
|
24
|
+
3. Select the most appropriate tool to call based on the user's request.
|
|
25
|
+
|
|
26
|
+
The tool will apply the provided WHERE clause to the layer in the map viewer.
|
|
27
|
+
|
|
28
|
+
### Rules for generating Layer Filter expressions:
|
|
29
|
+
|
|
30
|
+
- Use only the field’s **\`name\`** in the output expression.
|
|
31
|
+
- Use metadata (\`alias\`, \`description\`, \`statistics\`) only to help understand the user's meaning — not in the syntax.
|
|
32
|
+
- Use field \`type\` to choose appropriate operators:
|
|
33
|
+
- **String** → \`LIKE '%value%'\`, \`=\`, \`IN (...)\`
|
|
34
|
+
- **Number/Date** → \`=\`, \`<\`, \`>\`, \`BETWEEN\`, etc.
|
|
35
|
+
- Use fields with the **highest \`relevanceScore\`**.
|
|
36
|
+
- DO NOT use subqueries or \`SELECT\` keyword.
|
|
37
|
+
- Combine conditions with \`AND\`, \`OR\`, or \`NOT\` as appropriate.
|
|
38
|
+
- If no meaningful layer filter can be generated, do not call a tool.
|
|
39
|
+
|
|
40
|
+
## SQL-92 Date/Time Syntax
|
|
41
|
+
|
|
42
|
+
User timezone: {userTimezone} ({userTimezoneOffset})
|
|
43
|
+
|
|
44
|
+
Database stores dates in UTC. Convert user's local time to UTC.
|
|
45
|
+
|
|
46
|
+
To convert: if offset is \`-08:00\`, add 8 hours. If \`-05:00\`, add 5 hours.
|
|
47
|
+
|
|
48
|
+
Format: \`TIMESTAMP 'YYYY-MM-DD HH:MM:SS'\`
|
|
49
|
+
|
|
50
|
+
## RULES
|
|
51
|
+
|
|
52
|
+
When dealing with geometry and proximity and spatial queries:
|
|
53
|
+
|
|
54
|
+
1. TARGET LAYER = What you want to FIND/RETURN in results
|
|
55
|
+
2. GEOMETRY LAYER = The location to search FROM (with distance buffer)
|
|
56
|
+
|
|
57
|
+
For questions like "Is [specific item A] near/within [any of type B]":
|
|
58
|
+
|
|
59
|
+
- Target: Type B (what we're searching for)
|
|
60
|
+
- Geometry: Specific item A (where we're searching from)
|
|
61
|
+
|
|
62
|
+
Examples:
|
|
63
|
+
|
|
64
|
+
Q: "Is well P132_1873 within 300m from a protected area?"
|
|
65
|
+
Target: Protected Areas (what we want to find)
|
|
66
|
+
Geometry: Well (where="ID = 'P132_1873'" - single point)
|
|
67
|
+
Result: Returns which protected areas are nearby
|
|
68
|
+
|
|
69
|
+
Q: "Find roads within 500m of park X"
|
|
70
|
+
Target: Roads (what we want to find)
|
|
71
|
+
Geometry: Park X (specific location)
|
|
72
|
+
Result: Returns which roads are nearby
|
|
73
|
+
|
|
74
|
+
Key principle: The geometry layer should be the SIMPLER geometry (ideally a single feature or small set),
|
|
75
|
+
not a large collection that requires union operations.
|
|
76
|
+
`;
|
|
77
|
+
export {
|
|
78
|
+
e as default
|
|
79
|
+
};
|