@arcgis/ai-agents 5.1.0-next.2 → 5.1.0-next.20
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/dist/agents/arcgisKnowledge/context/arcgisKnowledgeContext.d.ts +3 -2
- package/dist/agents/arcgisKnowledge/context/getArcgisKnowledgeContext.d.ts +3 -2
- package/dist/agents/arcgisKnowledge/tools/addRecords/core.d.ts +2 -2
- package/dist/agents/arcgisKnowledge/tools/applyLayout/core.d.ts +3 -2
- package/dist/agents/arcgisKnowledge/tools/changeNonspatialVisibility/core.d.ts +2 -1
- package/dist/agents/arcgisKnowledge/tools/createLinkChart/core.d.ts +2 -2
- package/dist/agents/arcgisKnowledge/tools/generateCypher/GenerateCypherDataModel.d.ts +3 -3
- package/dist/agents/arcgisKnowledge/tools/generateCypher/core.d.ts +1 -1
- package/dist/agents/arcgisKnowledge/utils/dataTransformationUtils.d.ts +7 -7
- package/dist/agents/arcgisKnowledge/utils/queryUtils.d.ts +2 -2
- package/dist/agents/dataExploration/context/dataExplorationContext.d.ts +2 -1
- package/dist/agents/dataExploration/tools/filterTools/clearFilters/adapter.d.ts +4 -0
- package/dist/agents/dataExploration/tools/filterTools/clearFilters/core.d.ts +2 -0
- package/dist/agents/dataExploration/tools/filterTools/clearFilters/index.d.ts +1 -0
- package/dist/agents/dataExploration/tools/filterTools/resetMap/adapter.d.ts +4 -0
- package/dist/agents/dataExploration/tools/filterTools/resetMap/core.d.ts +2 -0
- package/dist/agents/dataExploration/tools/filterTools/resetMap/index.d.ts +1 -0
- package/dist/agents/dataExploration/tools/filterTools/setDefinitionExpression/core.d.ts +2 -1
- package/dist/agents/dataExploration/tools/filterTools/setFeatureEffect/adapter.d.ts +105 -33
- package/dist/agents/dataExploration/tools/filterTools/setFeatureEffect/core.d.ts +3 -2
- package/dist/agents/dataExploration/tools/filterTools/setFeatureFilter/adapter.d.ts +97 -31
- package/dist/agents/dataExploration/tools/filterTools/setFeatureFilter/core.d.ts +3 -2
- package/dist/agents/dataExploration/tools/index.d.ts +270 -113
- package/dist/agents/dataExploration/tools/queryTools/getAttribute/core.d.ts +2 -1
- package/dist/agents/dataExploration/tools/queryTools/getStatistics/adapter.d.ts +89 -13
- package/dist/agents/dataExploration/tools/queryTools/getStatistics/core.d.ts +5 -4
- package/dist/agents/dataExploration/tools/queryTools/getTopFeatures/adapter.d.ts +85 -9
- package/dist/agents/dataExploration/tools/queryTools/getTopFeatures/core.d.ts +3 -2
- package/dist/agents/dataExploration/tools/queryTools/queryFeatures/core.d.ts +2 -1
- package/dist/agents/dataExploration/types/types.d.ts +2 -2
- package/dist/agents/dataExploration/utils/getDomainName.d.ts +3 -2
- package/dist/agents/dataExploration/utils/getGeometry.d.ts +4 -2
- package/dist/agents/dataExploration/utils/zoomToWhereClause.d.ts +3 -1
- package/dist/agents/layerFilter/context/layerFilterContext.d.ts +2 -1
- package/dist/agents/layerFilter/tools/setDefinitionExpression/core.d.ts +2 -1
- package/dist/agents/layerFilter/tools/setFeatureEffect/core.d.ts +2 -1
- package/dist/agents/layerFilter/tools/setFeatureFilter/core.d.ts +2 -1
- package/dist/agents/layerFilter/utils/getGeometryForFilter.d.ts +4 -2
- package/dist/agents/layerFilter/utils/zoomToWhereClause.d.ts +2 -1
- package/dist/agents/layerQuery/context/layerQueryContext.d.ts +2 -1
- package/dist/agents/layerQuery/tools/getAttribute/core.d.ts +2 -1
- package/dist/agents/layerQuery/tools/getStatistics/adapter.d.ts +1 -1
- package/dist/agents/layerQuery/tools/getStatistics/core.d.ts +3 -2
- package/dist/agents/layerQuery/tools/getTopFeatures/core.d.ts +2 -1
- package/dist/agents/layerQuery/tools/queryFeatures/core.d.ts +2 -1
- package/dist/agents/layerQuery/utils/getGeometryForQuery.d.ts +4 -2
- package/dist/agents/layerStyling/context/layerStylingContext.d.ts +2 -1
- package/dist/agents/layerStyling/tools/applyChartRenderer/core.d.ts +4 -2
- package/dist/agents/layerStyling/tools/applyColorAgeRenderer/core.d.ts +4 -2
- package/dist/agents/layerStyling/tools/applyColorRenderer/core.d.ts +4 -2
- package/dist/agents/layerStyling/tools/applyColorSizeUnivariateRenderer/core.d.ts +4 -2
- package/dist/agents/layerStyling/tools/applyDotDensityRenderer/core.d.ts +4 -2
- package/dist/agents/layerStyling/tools/applyHeatmapRenderer/core.d.ts +4 -2
- package/dist/agents/layerStyling/tools/applyPredominanceRenderer/core.d.ts +4 -2
- package/dist/agents/layerStyling/tools/applyRelationshipRenderer/core.d.ts +4 -2
- package/dist/agents/layerStyling/tools/applySizeAgeRenderer/core.d.ts +4 -2
- package/dist/agents/layerStyling/tools/applySizeRenderer/core.d.ts +4 -2
- package/dist/agents/layerStyling/tools/applyTypeRenderer/core.d.ts +4 -2
- package/dist/agents/layerStyling/types/types.d.ts +17 -5
- package/dist/agents/layerStyling/utils/renderers/chart.d.ts +3 -2
- package/dist/agents/layerStyling/utils/renderers/color-age.d.ts +3 -2
- package/dist/agents/layerStyling/utils/renderers/color-size-univariate.d.ts +3 -2
- package/dist/agents/layerStyling/utils/renderers/color.d.ts +3 -2
- package/dist/agents/layerStyling/utils/renderers/dot-density.d.ts +3 -2
- package/dist/agents/layerStyling/utils/renderers/heatmap.d.ts +3 -2
- package/dist/agents/layerStyling/utils/renderers/predominance.d.ts +3 -2
- package/dist/agents/layerStyling/utils/renderers/relationship.d.ts +3 -2
- package/dist/agents/layerStyling/utils/renderers/size-age.d.ts +3 -2
- package/dist/agents/layerStyling/utils/renderers/size.d.ts +3 -2
- package/dist/agents/layerStyling/utils/renderers/type.d.ts +3 -2
- package/dist/agents/navigation/context/navigationContext.d.ts +2 -1
- package/dist/agents/navigation/nodes/navigationIntentLLM.d.ts +2 -1
- package/dist/agents/navigation/tools/goToAddress/core.d.ts +2 -1
- package/dist/agents/navigation/tools/goToBookmark/core.d.ts +2 -1
- package/dist/agents/navigation/tools/goToFeatures/core.d.ts +2 -1
- package/dist/agents/navigation/tools/goToFullExtent/core.d.ts +2 -1
- package/dist/agents/navigation/tools/goToHomeExtent/core.d.ts +2 -1
- package/dist/agents/navigation/tools/goToLayer/core.d.ts +3 -2
- package/dist/agents/navigation/tools/goToScale/core.d.ts +2 -1
- package/dist/agents/navigation/tools/goToViewpoint/core.d.ts +2 -1
- package/dist/agents/navigation/tools/goToZoom/core.d.ts +2 -1
- package/dist/agents/navigation/types/types.d.ts +2 -1
- package/dist/{data_explore_filter_prompt-CpgEu_mo.js → data_explore_filter_prompt-LbM80SIY.js} +33 -3
- package/dist/{data_explore_query_prompt-CtSDS9l_.js → data_explore_query_prompt-CRLHQoXb.js} +12 -0
- package/dist/index.js +2121 -2059
- package/dist/navigation_intent_prompt-zcuSWrlv.js +34 -0
- package/dist/summarize_query_response_prompt-B9bQLnuT.js +49 -0
- package/dist/utils/fieldStatistics.d.ts +2 -1
- package/dist/utils/getFieldStatistics.d.ts +1 -1
- package/dist/utils/useClientSide.d.ts +2 -2
- package/package.json +2 -2
- package/dist/navigation_intent_prompt-DEERQeWD.js +0 -19
- package/dist/summarize_query_response_prompt-CeugxjZK.js +0 -32
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { default as KnowledgeGraph } from '@arcgis/core/rest/knowledgeGraph/KnowledgeGraph';
|
|
1
|
+
import { default as KnowledgeGraph } from '@arcgis/core/rest/knowledgeGraph/KnowledgeGraph.js';
|
|
2
|
+
import { default as LinkChartView } from '@arcgis/core/views/LinkChartView.js';
|
|
2
3
|
/**
|
|
3
4
|
* Context required by the Knowledge Link Chart agent.
|
|
4
5
|
* Supplied by the application via an agent `getContext()` provider.
|
|
5
6
|
*/
|
|
6
7
|
export type ArcgisKnowledgeContext = {
|
|
7
|
-
linkChartView:
|
|
8
|
+
linkChartView: LinkChartView;
|
|
8
9
|
knowledgeGraph: KnowledgeGraph;
|
|
9
10
|
};
|
|
10
11
|
export declare const arcgisKnowledgeContextRequiredKeys: readonly ["linkChartView"];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
|
-
import { default as KnowledgeGraph } from '@arcgis/core/rest/knowledgeGraph/KnowledgeGraph';
|
|
2
|
+
import { default as KnowledgeGraph } from '@arcgis/core/rest/knowledgeGraph/KnowledgeGraph.js';
|
|
3
|
+
import { default as LinkChartView } from '@arcgis/core/views/LinkChartView.js';
|
|
3
4
|
export declare function getLinkChartContext(config?: RunnableConfig): {
|
|
4
|
-
linkChartView:
|
|
5
|
+
linkChartView: LinkChartView;
|
|
5
6
|
};
|
|
6
7
|
export declare function getKnowledgeGraphContext(config?: RunnableConfig): {
|
|
7
8
|
knowledgeGraph: KnowledgeGraph;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
|
-
import { default as KnowledgeGraph } from '@arcgis/core/rest/knowledgeGraph/KnowledgeGraph';
|
|
3
|
-
import { default as LinkChartView } from '@arcgis/core/views/LinkChartView';
|
|
2
|
+
import { default as KnowledgeGraph } from '@arcgis/core/rest/knowledgeGraph/KnowledgeGraph.js';
|
|
3
|
+
import { default as LinkChartView } from '@arcgis/core/views/LinkChartView.js';
|
|
4
4
|
export declare function executeAddRecords(prompt: string, knowledgeGraph: KnowledgeGraph, graphQueryServiceUrl: string, view: LinkChartView, config?: RunnableConfig): Promise<string>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { LayoutMode } from '@arcgis/core/layers/knowledgeGraph/types';
|
|
2
|
-
|
|
1
|
+
import { LayoutMode } from '@arcgis/core/layers/knowledgeGraph/types.js';
|
|
2
|
+
import { default as LinkChartView } from '@arcgis/core/views/LinkChartView.js';
|
|
3
|
+
export declare function executeApplyLayout(layout: LayoutMode, linkChartView: LinkChartView): Promise<string>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as LinkChartView } from '@arcgis/core/views/LinkChartView.js';
|
|
2
|
+
export declare function executeChangeNonspatialVisibility(setting: "hidden" | "visible", linkChartView: LinkChartView): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
|
-
import { default as KnowledgeGraph } from '@arcgis/core/rest/knowledgeGraph/KnowledgeGraph';
|
|
3
|
-
import { default as LinkChartView } from '@arcgis/core/views/LinkChartView';
|
|
2
|
+
import { default as KnowledgeGraph } from '@arcgis/core/rest/knowledgeGraph/KnowledgeGraph.js';
|
|
3
|
+
import { default as LinkChartView } from '@arcgis/core/views/LinkChartView.js';
|
|
4
4
|
export declare function executeCreateLinkChart(prompt: string, knowledgeGraph: KnowledgeGraph, graphQueryServiceUrl: string, view: LinkChartView, config?: RunnableConfig): Promise<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { default as DataModel } from '@arcgis/core/rest/knowledgeGraph/DataModel';
|
|
2
|
-
import { default as EntityType } from '@arcgis/core/rest/knowledgeGraph/EntityType';
|
|
3
|
-
import { default as RelationshipType } from '@arcgis/core/rest/knowledgeGraph/RelationshipType';
|
|
1
|
+
import { default as DataModel } from '@arcgis/core/rest/knowledgeGraph/DataModel.js';
|
|
2
|
+
import { default as EntityType } from '@arcgis/core/rest/knowledgeGraph/EntityType.js';
|
|
3
|
+
import { default as RelationshipType } from '@arcgis/core/rest/knowledgeGraph/RelationshipType.js';
|
|
4
4
|
export default class GenerateCypherContext {
|
|
5
5
|
dataModel: DataModel;
|
|
6
6
|
kind: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as DataModel } from '@arcgis/core/rest/knowledgeGraph/DataModel';
|
|
1
|
+
import { default as DataModel } from '@arcgis/core/rest/knowledgeGraph/DataModel.js';
|
|
2
2
|
import { RunnableConfig } from '@langchain/core/runnables';
|
|
3
3
|
export declare function executeGenerateCypher(prompt: string, dataModel: DataModel, graphQueryServiceUrl: string, config?: RunnableConfig): Promise<string>;
|
|
4
4
|
export declare function getCypherFromPrompt(prompt: string, dataModel: DataModel, graphQueryServiceUrl: string, config?: RunnableConfig): Promise<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IdTypePair } from '@arcgis/core/layers/knowledgeGraph/types';
|
|
2
|
-
import { GraphAnyValue } from '@arcgis/core/rest/knowledgeGraph/GraphAnyValue';
|
|
3
|
-
import { default as GraphNamedObject } from '@arcgis/core/rest/knowledgeGraph/GraphNamedObject';
|
|
4
|
-
import { default as GraphObject } from '@arcgis/core/rest/knowledgeGraph/GraphObject';
|
|
5
|
-
import { default as KnowledgeGraph } from '@arcgis/core/rest/knowledgeGraph/KnowledgeGraph';
|
|
6
|
-
import { default as Path } from '@arcgis/core/rest/knowledgeGraph/Path';
|
|
7
|
-
import { default as WebLinkChart } from '@arcgis/core/WebLinkChart';
|
|
1
|
+
import { IdTypePair } from '@arcgis/core/layers/knowledgeGraph/types.js';
|
|
2
|
+
import { GraphAnyValue } from '@arcgis/core/rest/knowledgeGraph/GraphAnyValue.js';
|
|
3
|
+
import { default as GraphNamedObject } from '@arcgis/core/rest/knowledgeGraph/GraphNamedObject.js';
|
|
4
|
+
import { default as GraphObject } from '@arcgis/core/rest/knowledgeGraph/GraphObject.js';
|
|
5
|
+
import { default as KnowledgeGraph } from '@arcgis/core/rest/knowledgeGraph/KnowledgeGraph.js';
|
|
6
|
+
import { default as Path } from '@arcgis/core/rest/knowledgeGraph/Path.js';
|
|
7
|
+
import { default as WebLinkChart } from '@arcgis/core/WebLinkChart.js';
|
|
8
8
|
export declare function extractGraphNamedObjectsFromQueryValueRecursive(resultValue: GraphAnyValue, results: Map<string, IdTypePair>): void;
|
|
9
9
|
export declare function isGraphNamedObject(item: GraphAnyValue): item is GraphNamedObject;
|
|
10
10
|
export declare function isPathObject(item: GraphAnyValue): item is Path;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IdTypePair } from '@arcgis/core/layers/knowledgeGraph/types';
|
|
2
|
-
import { default as GraphQueryStreamingResult } from '@arcgis/core/rest/knowledgeGraph/GraphQueryStreamingResult';
|
|
1
|
+
import { IdTypePair } from '@arcgis/core/layers/knowledgeGraph/types.js';
|
|
2
|
+
import { default as GraphQueryStreamingResult } from '@arcgis/core/rest/knowledgeGraph/GraphQueryStreamingResult.js';
|
|
3
3
|
export declare const queryResultToIdTypePairs: (queryResult: GraphQueryStreamingResult) => Promise<IdTypePair[]>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { default as MapView } from '@arcgis/core/views/MapView.js';
|
|
1
2
|
/**
|
|
2
3
|
* Context required by the Data Exploration agent.
|
|
3
4
|
* Supplied by the application via an agent `getContext()` provider.
|
|
4
5
|
*/
|
|
5
6
|
export type DataExplorationContext = {
|
|
6
|
-
mapView:
|
|
7
|
+
mapView: MapView;
|
|
7
8
|
};
|
|
8
9
|
export declare const dataExplorationContextRequiredKeys: readonly ["mapView"];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as z } from 'zod';
|
|
2
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
3
|
+
export declare const clearFiltersWrapper: (_input: Record<string, never>, config?: RunnableConfig) => Promise<string>;
|
|
4
|
+
export declare const clearFiltersTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, Record<string, never>, {}, string, "clearFilters">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as z } from 'zod';
|
|
2
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
3
|
+
export declare const resetMapWrapper: (_input: Record<string, never>, config?: RunnableConfig) => Promise<string>;
|
|
4
|
+
export declare const resetMapTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, Record<string, never>, {}, string, "resetMap">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapter';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as MapView } from '@arcgis/core/views/MapView.js';
|
|
2
|
+
export declare const setDefinitionExpression: (layerId: string, definitionExpression: string, arcgisMapView: MapView) => Promise<string>;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
2
|
import { default as z } from 'zod';
|
|
3
|
-
import {
|
|
4
|
-
export declare const setFeatureEffectWrapper: ({ targetLayer,
|
|
3
|
+
import { GeometryConfig } from '../../../types/types';
|
|
4
|
+
export declare const setFeatureEffectWrapper: ({ targetLayer, geometryFilter, useCurrentExtent, includedEffect, excludedEffect, }: {
|
|
5
5
|
targetLayer: {
|
|
6
6
|
layerId: string;
|
|
7
7
|
where: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
where: string;
|
|
12
|
-
distance: number;
|
|
13
|
-
units: typeof distanceUnitsSchema._type;
|
|
14
|
-
};
|
|
9
|
+
geometryFilter?: GeometryConfig;
|
|
10
|
+
useCurrentExtent?: boolean;
|
|
15
11
|
includedEffect?: string;
|
|
16
12
|
excludedEffect?: string;
|
|
17
13
|
}, config?: RunnableConfig) => Promise<string>;
|
|
@@ -26,24 +22,71 @@ export declare const setFeatureEffectTool: import('@langchain/core/tools').Dynam
|
|
|
26
22
|
where: string;
|
|
27
23
|
layerId: string;
|
|
28
24
|
}>;
|
|
29
|
-
|
|
25
|
+
geometryFilter: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
30
26
|
layerId: z.ZodString;
|
|
31
27
|
where: z.ZodString;
|
|
32
|
-
distance: z.ZodNumber
|
|
33
|
-
units: z.ZodEnum<["feet", "kilometers", "meters", "miles", "nautical-miles", "us-nautical-miles"]
|
|
28
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
units: z.ZodOptional<z.ZodEnum<["feet", "kilometers", "meters", "miles", "nautical-miles", "us-nautical-miles"]>>;
|
|
34
30
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
distance: number;
|
|
36
|
-
units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
|
|
37
31
|
where: string;
|
|
38
32
|
layerId: string;
|
|
33
|
+
distance?: number | undefined;
|
|
34
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
39
35
|
}, {
|
|
40
|
-
distance: number;
|
|
41
|
-
units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
|
|
42
36
|
where: string;
|
|
43
37
|
layerId: string;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
distance?: number | undefined;
|
|
39
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
40
|
+
}>, z.ZodObject<{
|
|
41
|
+
point: z.ZodObject<{
|
|
42
|
+
x: z.ZodNumber;
|
|
43
|
+
y: z.ZodNumber;
|
|
44
|
+
spatialReference: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
wkid: z.ZodNumber;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
wkid: number;
|
|
48
|
+
}, {
|
|
49
|
+
wkid: number;
|
|
50
|
+
}>>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
spatialReference?: {
|
|
55
|
+
wkid: number;
|
|
56
|
+
} | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
x: number;
|
|
59
|
+
y: number;
|
|
60
|
+
spatialReference?: {
|
|
61
|
+
wkid: number;
|
|
62
|
+
} | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
units: z.ZodOptional<z.ZodEnum<["feet", "kilometers", "meters", "miles", "nautical-miles", "us-nautical-miles"]>>;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
point: {
|
|
68
|
+
x: number;
|
|
69
|
+
y: number;
|
|
70
|
+
spatialReference?: {
|
|
71
|
+
wkid: number;
|
|
72
|
+
} | undefined;
|
|
73
|
+
};
|
|
74
|
+
distance?: number | undefined;
|
|
75
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
point: {
|
|
78
|
+
x: number;
|
|
79
|
+
y: number;
|
|
80
|
+
spatialReference?: {
|
|
81
|
+
wkid: number;
|
|
82
|
+
} | undefined;
|
|
83
|
+
};
|
|
84
|
+
distance?: number | undefined;
|
|
85
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
86
|
+
}>]>>;
|
|
87
|
+
useCurrentExtent: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
includedEffect: z.ZodDefault<z.ZodString>;
|
|
89
|
+
excludedEffect: z.ZodDefault<z.ZodString>;
|
|
47
90
|
}, "strip", z.ZodTypeAny, {
|
|
48
91
|
includedEffect: string;
|
|
49
92
|
excludedEffect: string;
|
|
@@ -51,12 +94,23 @@ export declare const setFeatureEffectTool: import('@langchain/core/tools').Dynam
|
|
|
51
94
|
where: string;
|
|
52
95
|
layerId: string;
|
|
53
96
|
};
|
|
54
|
-
|
|
55
|
-
distance: number;
|
|
56
|
-
units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
|
|
97
|
+
geometryFilter?: {
|
|
57
98
|
where: string;
|
|
58
99
|
layerId: string;
|
|
100
|
+
distance?: number | undefined;
|
|
101
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
102
|
+
} | {
|
|
103
|
+
point: {
|
|
104
|
+
x: number;
|
|
105
|
+
y: number;
|
|
106
|
+
spatialReference?: {
|
|
107
|
+
wkid: number;
|
|
108
|
+
} | undefined;
|
|
109
|
+
};
|
|
110
|
+
distance?: number | undefined;
|
|
111
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
59
112
|
} | undefined;
|
|
113
|
+
useCurrentExtent?: boolean | undefined;
|
|
60
114
|
}, {
|
|
61
115
|
targetLayer: {
|
|
62
116
|
where: string;
|
|
@@ -64,23 +118,30 @@ export declare const setFeatureEffectTool: import('@langchain/core/tools').Dynam
|
|
|
64
118
|
};
|
|
65
119
|
includedEffect?: string | undefined;
|
|
66
120
|
excludedEffect?: string | undefined;
|
|
67
|
-
|
|
68
|
-
distance: number;
|
|
69
|
-
units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
|
|
121
|
+
geometryFilter?: {
|
|
70
122
|
where: string;
|
|
71
123
|
layerId: string;
|
|
124
|
+
distance?: number | undefined;
|
|
125
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
126
|
+
} | {
|
|
127
|
+
point: {
|
|
128
|
+
x: number;
|
|
129
|
+
y: number;
|
|
130
|
+
spatialReference?: {
|
|
131
|
+
wkid: number;
|
|
132
|
+
} | undefined;
|
|
133
|
+
};
|
|
134
|
+
distance?: number | undefined;
|
|
135
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
72
136
|
} | undefined;
|
|
137
|
+
useCurrentExtent?: boolean | undefined;
|
|
73
138
|
}>, {
|
|
74
139
|
targetLayer: {
|
|
75
140
|
layerId: string;
|
|
76
141
|
where: string;
|
|
77
142
|
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
where: string;
|
|
81
|
-
distance: number;
|
|
82
|
-
units: typeof distanceUnitsSchema._type;
|
|
83
|
-
};
|
|
143
|
+
geometryFilter?: GeometryConfig;
|
|
144
|
+
useCurrentExtent?: boolean;
|
|
84
145
|
includedEffect?: string;
|
|
85
146
|
excludedEffect?: string;
|
|
86
147
|
}, {
|
|
@@ -90,10 +151,21 @@ export declare const setFeatureEffectTool: import('@langchain/core/tools').Dynam
|
|
|
90
151
|
};
|
|
91
152
|
includedEffect?: string | undefined;
|
|
92
153
|
excludedEffect?: string | undefined;
|
|
93
|
-
|
|
94
|
-
distance: number;
|
|
95
|
-
units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
|
|
154
|
+
geometryFilter?: {
|
|
96
155
|
where: string;
|
|
97
156
|
layerId: string;
|
|
157
|
+
distance?: number | undefined;
|
|
158
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
159
|
+
} | {
|
|
160
|
+
point: {
|
|
161
|
+
x: number;
|
|
162
|
+
y: number;
|
|
163
|
+
spatialReference?: {
|
|
164
|
+
wkid: number;
|
|
165
|
+
} | undefined;
|
|
166
|
+
};
|
|
167
|
+
distance?: number | undefined;
|
|
168
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
98
169
|
} | undefined;
|
|
170
|
+
useCurrentExtent?: boolean | undefined;
|
|
99
171
|
}, string, "setFeatureEffect">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GeometryConfig } from '../../../types/types';
|
|
2
|
+
import { default as MapView } from '@arcgis/core/views/MapView.js';
|
|
2
3
|
export declare const setFeatureEffect: (targetLayer: {
|
|
3
4
|
layerId: string;
|
|
4
5
|
where: string;
|
|
5
|
-
}, arcgisMapView:
|
|
6
|
+
}, arcgisMapView: MapView, includedEffect: string, excludedEffect: string, geometryFilter?: GeometryConfig, useCurrentExtent?: boolean) => Promise<string>;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import { RunnableConfig } from '@langchain/core/runnables';
|
|
2
2
|
import { default as z } from 'zod';
|
|
3
|
-
import {
|
|
4
|
-
export declare const setFeatureFilterWrapper: ({ targetLayer,
|
|
3
|
+
import { GeometryConfig } from '../../../types/types';
|
|
4
|
+
export declare const setFeatureFilterWrapper: ({ targetLayer, geometryFilter, }: {
|
|
5
5
|
targetLayer: {
|
|
6
6
|
layerId: string;
|
|
7
7
|
where: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
layerId: string;
|
|
11
|
-
where: string;
|
|
12
|
-
distance: number;
|
|
13
|
-
units: typeof distanceUnitsSchema._type;
|
|
14
|
-
};
|
|
9
|
+
geometryFilter?: GeometryConfig;
|
|
15
10
|
}, config?: RunnableConfig) => Promise<string>;
|
|
16
11
|
export declare const setFeatureFilterTool: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
|
|
17
12
|
targetLayer: z.ZodObject<{
|
|
@@ -24,64 +19,135 @@ export declare const setFeatureFilterTool: import('@langchain/core/tools').Dynam
|
|
|
24
19
|
where: string;
|
|
25
20
|
layerId: string;
|
|
26
21
|
}>;
|
|
27
|
-
|
|
22
|
+
geometryFilter: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
28
23
|
layerId: z.ZodString;
|
|
29
24
|
where: z.ZodString;
|
|
30
|
-
distance: z.ZodNumber
|
|
31
|
-
units: z.ZodEnum<["feet", "kilometers", "meters", "miles", "nautical-miles", "us-nautical-miles"]
|
|
25
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
units: z.ZodOptional<z.ZodEnum<["feet", "kilometers", "meters", "miles", "nautical-miles", "us-nautical-miles"]>>;
|
|
32
27
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
distance: number;
|
|
34
|
-
units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
|
|
35
28
|
where: string;
|
|
36
29
|
layerId: string;
|
|
30
|
+
distance?: number | undefined;
|
|
31
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
37
32
|
}, {
|
|
38
|
-
distance: number;
|
|
39
|
-
units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
|
|
40
33
|
where: string;
|
|
41
34
|
layerId: string;
|
|
42
|
-
|
|
35
|
+
distance?: number | undefined;
|
|
36
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
37
|
+
}>, z.ZodObject<{
|
|
38
|
+
point: z.ZodObject<{
|
|
39
|
+
x: z.ZodNumber;
|
|
40
|
+
y: z.ZodNumber;
|
|
41
|
+
spatialReference: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
wkid: z.ZodNumber;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
wkid: number;
|
|
45
|
+
}, {
|
|
46
|
+
wkid: number;
|
|
47
|
+
}>>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
spatialReference?: {
|
|
52
|
+
wkid: number;
|
|
53
|
+
} | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
x: number;
|
|
56
|
+
y: number;
|
|
57
|
+
spatialReference?: {
|
|
58
|
+
wkid: number;
|
|
59
|
+
} | undefined;
|
|
60
|
+
}>;
|
|
61
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
units: z.ZodOptional<z.ZodEnum<["feet", "kilometers", "meters", "miles", "nautical-miles", "us-nautical-miles"]>>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
point: {
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
spatialReference?: {
|
|
68
|
+
wkid: number;
|
|
69
|
+
} | undefined;
|
|
70
|
+
};
|
|
71
|
+
distance?: number | undefined;
|
|
72
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
point: {
|
|
75
|
+
x: number;
|
|
76
|
+
y: number;
|
|
77
|
+
spatialReference?: {
|
|
78
|
+
wkid: number;
|
|
79
|
+
} | undefined;
|
|
80
|
+
};
|
|
81
|
+
distance?: number | undefined;
|
|
82
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
83
|
+
}>]>>;
|
|
43
84
|
}, "strip", z.ZodTypeAny, {
|
|
44
85
|
targetLayer: {
|
|
45
86
|
where: string;
|
|
46
87
|
layerId: string;
|
|
47
88
|
};
|
|
48
|
-
|
|
49
|
-
distance: number;
|
|
50
|
-
units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
|
|
89
|
+
geometryFilter?: {
|
|
51
90
|
where: string;
|
|
52
91
|
layerId: string;
|
|
92
|
+
distance?: number | undefined;
|
|
93
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
94
|
+
} | {
|
|
95
|
+
point: {
|
|
96
|
+
x: number;
|
|
97
|
+
y: number;
|
|
98
|
+
spatialReference?: {
|
|
99
|
+
wkid: number;
|
|
100
|
+
} | undefined;
|
|
101
|
+
};
|
|
102
|
+
distance?: number | undefined;
|
|
103
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
53
104
|
} | undefined;
|
|
54
105
|
}, {
|
|
55
106
|
targetLayer: {
|
|
56
107
|
where: string;
|
|
57
108
|
layerId: string;
|
|
58
109
|
};
|
|
59
|
-
|
|
60
|
-
distance: number;
|
|
61
|
-
units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
|
|
110
|
+
geometryFilter?: {
|
|
62
111
|
where: string;
|
|
63
112
|
layerId: string;
|
|
113
|
+
distance?: number | undefined;
|
|
114
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
115
|
+
} | {
|
|
116
|
+
point: {
|
|
117
|
+
x: number;
|
|
118
|
+
y: number;
|
|
119
|
+
spatialReference?: {
|
|
120
|
+
wkid: number;
|
|
121
|
+
} | undefined;
|
|
122
|
+
};
|
|
123
|
+
distance?: number | undefined;
|
|
124
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
64
125
|
} | undefined;
|
|
65
126
|
}>, {
|
|
66
127
|
targetLayer: {
|
|
67
128
|
layerId: string;
|
|
68
129
|
where: string;
|
|
69
130
|
};
|
|
70
|
-
|
|
71
|
-
layerId: string;
|
|
72
|
-
where: string;
|
|
73
|
-
distance: number;
|
|
74
|
-
units: typeof distanceUnitsSchema._type;
|
|
75
|
-
};
|
|
131
|
+
geometryFilter?: GeometryConfig;
|
|
76
132
|
}, {
|
|
77
133
|
targetLayer: {
|
|
78
134
|
where: string;
|
|
79
135
|
layerId: string;
|
|
80
136
|
};
|
|
81
|
-
|
|
82
|
-
distance: number;
|
|
83
|
-
units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
|
|
137
|
+
geometryFilter?: {
|
|
84
138
|
where: string;
|
|
85
139
|
layerId: string;
|
|
140
|
+
distance?: number | undefined;
|
|
141
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
142
|
+
} | {
|
|
143
|
+
point: {
|
|
144
|
+
x: number;
|
|
145
|
+
y: number;
|
|
146
|
+
spatialReference?: {
|
|
147
|
+
wkid: number;
|
|
148
|
+
} | undefined;
|
|
149
|
+
};
|
|
150
|
+
distance?: number | undefined;
|
|
151
|
+
units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | undefined;
|
|
86
152
|
} | undefined;
|
|
87
153
|
}, string, "setFeatureFilter">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GeometryConfig } from '../../../types/types';
|
|
2
|
+
import { default as MapView } from '@arcgis/core/views/MapView.js';
|
|
2
3
|
export declare const setFeatureFilter: (targetLayer: {
|
|
3
4
|
layerId: string;
|
|
4
5
|
where: string;
|
|
5
|
-
}, arcgisMapView:
|
|
6
|
+
}, arcgisMapView: MapView, geometryFilter?: GeometryConfig) => Promise<string>;
|