@arcgis/ai-components 5.2.0-next.87 → 5.2.0-next.89
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/agent-utils/LLMAgent.js +1 -0
- package/dist/cdn/222B5OU6.js +2 -0
- package/dist/cdn/{7XY54M57.js → 2FOCAXWJ.js} +1 -1
- package/dist/cdn/6VJXUIXY.js +3 -0
- package/dist/cdn/{LF2LOV25.js → C5ZL5Z52.js} +5 -5
- package/dist/cdn/{HNL4WZKH.js → COL6QYGQ.js} +1 -1
- package/dist/cdn/{JKMZQOJQ.js → CXP3ACSA.js} +1 -1
- package/dist/cdn/{IOKXNJWG.js → FUZ77UGP.js} +4 -4
- package/dist/cdn/{TAJLCMAG.js → HKSFWTWK.js} +5 -5
- package/dist/cdn/{WPKGJJ57.js → LPR72QZF.js} +2 -2
- package/dist/cdn/{PNFK73E5.js → LS4FJKFE.js} +1 -1
- package/dist/cdn/{Y2776DWQ.js → OYSPNIJI.js} +28 -28
- package/dist/cdn/{FAR3DFFK.js → PEYYWXFE.js} +1 -1
- package/dist/cdn/{NTBDGSXI.js → SUYWKYWI.js} +2 -2
- package/dist/cdn/{B3YSZHAE.js → VTQKRCKU.js} +1 -1
- package/dist/cdn/Y5TYSBLZ.js +3 -0
- package/dist/cdn/{CF6ZLMFG.js → Y7QZBO46.js} +1 -1
- package/dist/cdn/{EMLOVMD4.js → ZVGUAOXE.js} +1 -1
- package/dist/cdn/agent-utils/index.js +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/adapter.js +60 -55
- package/dist/chunks/arcgisKnowledgeGraph.js +3 -2
- package/dist/chunks/dataExplorationGraph.js +3 -2
- package/dist/chunks/helpGraph.js +3 -2
- package/dist/chunks/layerStylingGraph.js +1 -0
- package/dist/chunks/navigationGraph.js +3 -2
- package/dist/chunks/orchestrator.js +322 -193
- package/dist/chunks/toolCallResponse.js +3 -2
- package/dist/components/arcgis-assistant/customElement.d.ts +16 -0
- package/dist/components/arcgis-assistant/customElement.js +190 -178
- package/dist/components/arcgis-assistant-agent/customElement.js +209 -208
- package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +1 -0
- package/dist/components/arcgis-assistant-help-agent/customElement.js +1 -0
- package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +1 -0
- package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +6 -5
- package/dist/components/arcgis-assistant-navigation-agent/customElement.js +1 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/orchestrator/orchestrator/orchestratorEvents.d.ts +78 -0
- package/dist/types/lumina.d.ts +2 -1
- package/dist/types/preact.d.ts +2 -1
- package/dist/types/react.d.ts +2 -1
- package/dist/types/stencil.d.ts +2 -1
- package/package.json +5 -5
- package/dist/cdn/L7XTRDFM.js +0 -3
- package/dist/cdn/W5G35GO4.js +0 -2
- package/dist/cdn/ZUNLFO6M.js +0 -3
- /package/dist/cdn/{ONMNQBPO.js → SZ2QSSB3.js} +0 -0
package/dist/chunks/adapter.js
CHANGED
|
@@ -7,6 +7,7 @@ import "@arcgis/toolkit/string";
|
|
|
7
7
|
import { i as le } from "./generateLayerDescriptions.js";
|
|
8
8
|
import "@langchain/core/messages";
|
|
9
9
|
import "@langchain/core/callbacks/dispatch/web";
|
|
10
|
+
import "@langchain/core/callbacks/base";
|
|
10
11
|
import "@langchain/openai";
|
|
11
12
|
import "@arcgis/core/config.js";
|
|
12
13
|
import * as ce from "@arcgis/core/core/reactiveUtils.js";
|
|
@@ -46,7 +47,7 @@ import re from "@arcgis/core/rest/knowledgeGraph/GraphQueryStreaming.js";
|
|
|
46
47
|
import { fetchKnowledgeGraph as Y, executeQueryStreaming as je, executeSearchStreaming as Fe } from "@arcgis/core/rest/knowledgeGraphService.js";
|
|
47
48
|
import _e from "@arcgis/core/rest/knowledgeGraph/GraphSearchStreaming.js";
|
|
48
49
|
import { getBindParametersFromCypherQuery as Qe } from "@arcgis/core/applications/KnowledgeStudio/generalSharedKgUtils.js";
|
|
49
|
-
const k = (e, t) => t ?? e,
|
|
50
|
+
const k = (e, t) => t ?? e, va = m.Root({
|
|
50
51
|
...pe(),
|
|
51
52
|
// internal to the navigation agent
|
|
52
53
|
intent: m({
|
|
@@ -92,13 +93,13 @@ ${Object.keys(Z).join(`
|
|
|
92
93
|
const Ie = (e, t = 300) => {
|
|
93
94
|
const r = e.replace(/\s+/gu, " ").replace(/[*_`#>\-]/gu, "").trim();
|
|
94
95
|
return r.length > t ? `${r.slice(0, t)}...` : r;
|
|
95
|
-
},
|
|
96
|
+
}, Ra = (e, t) => (r, a) => {
|
|
96
97
|
const o = a?.configurable?.services;
|
|
97
98
|
for (const i of e)
|
|
98
99
|
if (!o?.[i])
|
|
99
100
|
throw new Error(`${t} requires services.${i} to be available.`);
|
|
100
101
|
return r;
|
|
101
|
-
},
|
|
102
|
+
}, xa = m.Root({
|
|
102
103
|
...G(),
|
|
103
104
|
vectorSearchLayerIds: m(),
|
|
104
105
|
vectorSearchFieldResults: m(),
|
|
@@ -108,8 +109,8 @@ const Ie = (e, t = 300) => {
|
|
|
108
109
|
reducer: ee,
|
|
109
110
|
default: () => []
|
|
110
111
|
})
|
|
111
|
-
}), Oe = [me, ge, fe, we],
|
|
112
|
-
async function
|
|
112
|
+
}), Oe = [me, ge, fe, we], Ca = [ye, he, ue], Ke = new de(Oe, { handleToolErrors: !1 });
|
|
113
|
+
async function $a(e, t) {
|
|
113
114
|
const { messages: r } = await Ke.invoke({ messages: e.dataExplorationMessages }, t), a = [], o = [];
|
|
114
115
|
for (const i of r) {
|
|
115
116
|
const s = i.content;
|
|
@@ -230,7 +231,7 @@ const Je = c.object({
|
|
|
230
231
|
fields: c.array(c.string()).describe("The fields to use for the chart renderer (multiple numeric fields)"),
|
|
231
232
|
colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
|
|
232
233
|
includeSize: c.boolean().optional().describe("Whether to vary the chart size (chart-size)")
|
|
233
|
-
}),
|
|
234
|
+
}), Pa = g(He, {
|
|
234
235
|
name: "chart",
|
|
235
236
|
description: `Label: Charts
|
|
236
237
|
Description: Show the values of two or more categories as a proportion of the total using a pie chart.
|
|
@@ -313,7 +314,7 @@ const rr = c.object({
|
|
|
313
314
|
fields: c.array(c.string()).describe("The field(s) to use for the color-age renderer (temporal/date data)"),
|
|
314
315
|
colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
|
|
315
316
|
theme: c.enum(["above-and-below", "above", "below", "centered-on", "extremes", "high-to-low"]).optional().describe("Optional theme for the color ramp")
|
|
316
|
-
}),
|
|
317
|
+
}), Ea = g(er, {
|
|
317
318
|
name: "color-age",
|
|
318
319
|
description: `Label: Age (color)
|
|
319
320
|
Description: Use colors along a continuous color ramp to represent the age of features. Age reflects the length of time from a start date to an end date.
|
|
@@ -392,7 +393,7 @@ const ir = c.object({
|
|
|
392
393
|
fields: c.array(c.string()).describe("The field(s) to use for the color renderer"),
|
|
393
394
|
colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
|
|
394
395
|
theme: c.enum(["above-and-below", "above", "below", "centered-on", "extremes", "high-to-low"]).optional().describe("Optional theme for the color ramp")
|
|
395
|
-
}),
|
|
396
|
+
}), za = g(nr, {
|
|
396
397
|
name: "color",
|
|
397
398
|
description: `Label: Counts and Amounts (color)
|
|
398
399
|
Description: Vary color along a continuous color ramp to represent numeric or ranked data.
|
|
@@ -470,7 +471,7 @@ const dr = c.object({
|
|
|
470
471
|
fields: c.array(c.string()).describe("The fields to use for the color-size univariate renderer"),
|
|
471
472
|
colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
|
|
472
473
|
theme: c.enum(["above-and-below", "above", "below", "centered-on", "extremes", "high-to-low"]).optional().describe("Optional theme for the color and size ramps")
|
|
473
|
-
}),
|
|
474
|
+
}), ka = g(pr, {
|
|
474
475
|
name: "color-size-univariate",
|
|
475
476
|
description: `Label: Color and Size (univariate)
|
|
476
477
|
Description: Vary symbol size and color based on the values of two numeric attributes.
|
|
@@ -544,7 +545,7 @@ const gr = c.object({
|
|
|
544
545
|
layerId: c.string().describe("The id of the layer to apply the dot density renderer to"),
|
|
545
546
|
fields: c.array(c.string()).describe("The field(s) to use for the dot density renderer (population or count data)"),
|
|
546
547
|
colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use")
|
|
547
|
-
}),
|
|
548
|
+
}), Aa = g(mr, {
|
|
548
549
|
name: "dot-density",
|
|
549
550
|
description: `Dot Density
|
|
550
551
|
Use dot density to visualize the distribution of one attribute or compare the density of multiple attributes. This is only valid for polygon layers.
|
|
@@ -619,7 +620,7 @@ const Sr = c.object({
|
|
|
619
620
|
layerId: c.string().describe("The id of the layer to apply the heatmap renderer to"),
|
|
620
621
|
fields: c.array(c.string()).describe("The field(s) to use for the heatmap renderer (typically point density)"),
|
|
621
622
|
colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use")
|
|
622
|
-
}),
|
|
623
|
+
}), qa = g(Tr, {
|
|
623
624
|
name: "heatmap",
|
|
624
625
|
description: `Label: Heat Map
|
|
625
626
|
Description: Show areas of high density with colors that appear to glow hotter. This is only valid for point layers.
|
|
@@ -694,7 +695,7 @@ const $r = c.object({
|
|
|
694
695
|
fields: c.array(c.string()).describe("The fields to use for the predominance renderer (competing categories)"),
|
|
695
696
|
colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
|
|
696
697
|
includeSize: c.boolean().optional().describe("Whether to include size visualization (predominance-size)")
|
|
697
|
-
}),
|
|
698
|
+
}), Na = g(Cr, {
|
|
698
699
|
name: "predominance",
|
|
699
700
|
description: `Label: Predominant category
|
|
700
701
|
Description: Compare attributes that share a common subject and unit of measurement to see which has the highest value.
|
|
@@ -775,7 +776,7 @@ const Ar = c.object({
|
|
|
775
776
|
layerId: c.string().describe("The id of the layer to apply the relationship renderer to"),
|
|
776
777
|
fields: c.array(c.string()).describe("The two fields to use for the relationship renderer (bivariate visualization)"),
|
|
777
778
|
colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use")
|
|
778
|
-
}),
|
|
779
|
+
}), Ma = g(kr, {
|
|
779
780
|
name: "relationship",
|
|
780
781
|
description: `Label: Relationship
|
|
781
782
|
Description: Overlays two color ramps to represent the relationship between two numeric attributes.
|
|
@@ -846,7 +847,7 @@ const Lr = c.object({
|
|
|
846
847
|
fields: c.array(c.string()).describe("The field(s) to use for the size-age renderer (temporal data with size)"),
|
|
847
848
|
colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
|
|
848
849
|
theme: c.enum(["above-and-below", "above", "below", "centered-on", "extremes", "high-to-low"]).optional().describe("Optional theme for the size ramp")
|
|
849
|
-
}),
|
|
850
|
+
}), Da = g(Dr, {
|
|
850
851
|
name: "size-age",
|
|
851
852
|
description: `Label: Age (size)
|
|
852
853
|
Description: Vary symbol sizes along a continuous ramp to represent the age of features. Age reflects the length of time from a start date to an end date.
|
|
@@ -919,7 +920,7 @@ const Qr = c.object({
|
|
|
919
920
|
fields: c.array(c.string()).describe("The field(s) to use for the size renderer (numeric data)"),
|
|
920
921
|
colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
|
|
921
922
|
theme: c.enum(["above-and-below", "above", "below", "centered-on", "extremes", "high-to-low"]).optional().describe("Optional theme for the size ramp")
|
|
922
|
-
}),
|
|
923
|
+
}), La = g(_r, {
|
|
923
924
|
name: "size",
|
|
924
925
|
description: `Label: Counts and Amounts (size)
|
|
925
926
|
Description: Vary symbol sizes along a continuous ramp to represent numeric or ranked data.
|
|
@@ -1001,7 +1002,7 @@ const Br = c.object({
|
|
|
1001
1002
|
fields: c.array(c.string()).describe("The field(s) to use for the type renderer (categorical data)"),
|
|
1002
1003
|
colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
|
|
1003
1004
|
theme: c.enum(["above-and-below", "above", "below", "centered-on", "extremes", "high-to-low"]).optional().describe("Optional theme for the color scheme")
|
|
1004
|
-
}),
|
|
1005
|
+
}), Ga = g(Vr, {
|
|
1005
1006
|
name: "type",
|
|
1006
1007
|
description: `Label: Types (unique symbols)
|
|
1007
1008
|
Description: Represent features as categories with different symbol colors or shapes. Examples include type of tree, road class, or province name.
|
|
@@ -1009,13 +1010,13 @@ Keywords: categorical, category, type, unique, discrete, point of interest, regi
|
|
|
1009
1010
|
Example: Color each feature based on the region it belongs to
|
|
1010
1011
|
Fields: This style requires a single field which may be a string, number, or date type. It is usually a string.`,
|
|
1011
1012
|
schema: Br
|
|
1012
|
-
}),
|
|
1013
|
+
}), ja = m.Root({
|
|
1013
1014
|
...G(),
|
|
1014
1015
|
vectorSearchLayerIds: m(),
|
|
1015
1016
|
vectorSearchFieldResults: m(),
|
|
1016
1017
|
layerFieldInfo: m(),
|
|
1017
1018
|
selectedLayerId: m()
|
|
1018
|
-
}),
|
|
1019
|
+
}), Fa = m.Root({
|
|
1019
1020
|
...G(),
|
|
1020
1021
|
// internal to the help agent
|
|
1021
1022
|
helpInternalState: m({
|
|
@@ -1024,7 +1025,7 @@ Fields: This style requires a single field which may be a string, number, or dat
|
|
|
1024
1025
|
toolCallMessage: void 0
|
|
1025
1026
|
})
|
|
1026
1027
|
})
|
|
1027
|
-
}),
|
|
1028
|
+
}), _a = m.Root({
|
|
1028
1029
|
...G(),
|
|
1029
1030
|
intent: m({
|
|
1030
1031
|
reducer: (e, t) => t
|
|
@@ -1060,7 +1061,7 @@ function q(e) {
|
|
|
1060
1061
|
view: a
|
|
1061
1062
|
};
|
|
1062
1063
|
}
|
|
1063
|
-
function
|
|
1064
|
+
function Qa(e) {
|
|
1064
1065
|
const r = e?.configurable?.context;
|
|
1065
1066
|
if (te(e) === "knowledgeGraph")
|
|
1066
1067
|
return "knowledgeGraph";
|
|
@@ -1711,7 +1712,7 @@ Number of records added: ${h.length}`,
|
|
|
1711
1712
|
error: d
|
|
1712
1713
|
};
|
|
1713
1714
|
}
|
|
1714
|
-
},
|
|
1715
|
+
}, Ia = g(dt, {
|
|
1715
1716
|
name: M,
|
|
1716
1717
|
description: `Adds records (entities or relationships) to the current link chart visualization from an inquiry into the knowledge graph data. The inquiry will retrieve data from the graph database that will serve as the basis for the records to be added to the link chart. The user should have explicitly requested to add records to the current link chart from their prompt. "add to new link chart" is not a valid prompt for this tool.
|
|
1717
1718
|
|
|
@@ -1762,7 +1763,7 @@ const _ = "applyLayout", ht = c.object({
|
|
|
1762
1763
|
errorMessage: "The applyLayout tool can only be used with a LinkChartView.",
|
|
1763
1764
|
error: new Error()
|
|
1764
1765
|
};
|
|
1765
|
-
},
|
|
1766
|
+
}, Oa = g(yt, {
|
|
1766
1767
|
name: _,
|
|
1767
1768
|
description: "Apply a diagram layout to the link chart",
|
|
1768
1769
|
schema: ht
|
|
@@ -1791,7 +1792,7 @@ const Q = "changeNonspatialVisibility", gt = c.object({
|
|
|
1791
1792
|
errorMessage: "The changeNonspatialVisibility tool can only be used with a LinkChartView.",
|
|
1792
1793
|
error: new Error()
|
|
1793
1794
|
};
|
|
1794
|
-
},
|
|
1795
|
+
}, Ka = g(ft, {
|
|
1795
1796
|
name: Q,
|
|
1796
1797
|
description: "Change whether or not nonspatial data is visible in the link chart. The value must be either 'hidden' or 'visible'.",
|
|
1797
1798
|
schema: gt
|
|
@@ -1891,7 +1892,7 @@ Explanation: ${l}`,
|
|
|
1891
1892
|
errorMessage: "The createLinkChart tool can only be used with a LinkChartView.",
|
|
1892
1893
|
error: new Error()
|
|
1893
1894
|
};
|
|
1894
|
-
},
|
|
1895
|
+
}, Va = g(Tt, {
|
|
1895
1896
|
name: D,
|
|
1896
1897
|
description: "Creates a new link chart visualization from an inquiry into the knowledge graph data. The inquiry will retrieve data from the graph database that will serve as the basis for the new link chart. The user should have explicitly requested the creation of a new link chart from their prompt using language like 'create new link chart' or 'add to new link chart'.",
|
|
1897
1898
|
schema: bt
|
|
@@ -1966,11 +1967,15 @@ ${w.length > y ? `Showing top ${y} results:
|
|
|
1966
1967
|
details: {
|
|
1967
1968
|
generatedQuery: p,
|
|
1968
1969
|
explanation: d,
|
|
1969
|
-
resultHeader:
|
|
1970
|
+
resultHeader: {
|
|
1971
|
+
headerKeys: f,
|
|
1972
|
+
exceededTransferLimit: h.exceededTransferLimit,
|
|
1973
|
+
outSpatialReference: h.outSpatialReference
|
|
1974
|
+
},
|
|
1970
1975
|
queryResults: u
|
|
1971
1976
|
}
|
|
1972
1977
|
};
|
|
1973
|
-
},
|
|
1978
|
+
}, Ba = g(vt, {
|
|
1974
1979
|
name: I,
|
|
1975
1980
|
description: "Allows users to explore the data in their knowledge graph via cypher query. Generates and executes a cypher query based on the user's inquiry into the knowledge graph, and displays the results in the chat pane without modifying the user's link chart if any. Use this tool when the user is asking an exploratory question about their data as a whole that can be answered via cypher query, for example 'What are the top 5 suppliers by total parts cost?' or 'How many employees do we have in each department?'.",
|
|
1976
1981
|
schema: St
|
|
@@ -2006,7 +2011,7 @@ Explanation: ${s}`,
|
|
|
2006
2011
|
error: i
|
|
2007
2012
|
};
|
|
2008
2013
|
}
|
|
2009
|
-
},
|
|
2014
|
+
}, Wa = g(xt, {
|
|
2010
2015
|
name: O,
|
|
2011
2016
|
description: "Generates an Open Cypher query based on the user's prompt which represents an inquiry into the data of the knowledge service and its graph database, attempting to filter based on certain conditions and traverse specified relationships. The generated query should be syntactically correct and optimized for performance.",
|
|
2012
2017
|
schema: Rt
|
|
@@ -2105,7 +2110,7 @@ const K = "searchGraphData", Pt = c.object({
|
|
|
2105
2110
|
searchResults: o.results
|
|
2106
2111
|
}
|
|
2107
2112
|
};
|
|
2108
|
-
},
|
|
2113
|
+
}, Ua = g(Et, {
|
|
2109
2114
|
name: K,
|
|
2110
2115
|
description: `
|
|
2111
2116
|
Search the knowledge graph using one or more search texts, using lucene search syntax, against indexed string properties defined on their entities and relationships. Use this tool when the user asks a question about their knowledge graph data as a whole, that could be answered via lucene text search of properties stored on graph elements, e.g requiring fuzzy matching. Otherwise if the inquiry is looking for connected records (e.g. paths), data aggregations, etc explore the data via the queryGraphData tool.
|
|
@@ -2120,36 +2125,36 @@ const K = "searchGraphData", Pt = c.object({
|
|
|
2120
2125
|
schema: Pt
|
|
2121
2126
|
});
|
|
2122
2127
|
export {
|
|
2123
|
-
|
|
2124
|
-
|
|
2128
|
+
Ga as A,
|
|
2129
|
+
xa as D,
|
|
2125
2130
|
W as G,
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2131
|
+
Fa as H,
|
|
2132
|
+
ja as L,
|
|
2133
|
+
va as N,
|
|
2134
|
+
Oa as a,
|
|
2135
|
+
Wa as b,
|
|
2136
|
+
Ka as c,
|
|
2137
|
+
Va as d,
|
|
2138
|
+
Ia as e,
|
|
2139
|
+
Qa as f,
|
|
2135
2140
|
L as g,
|
|
2136
2141
|
N as h,
|
|
2137
|
-
|
|
2138
|
-
|
|
2142
|
+
_a as i,
|
|
2143
|
+
Ca as j,
|
|
2139
2144
|
Oe as k,
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2145
|
+
$a as l,
|
|
2146
|
+
Pa as m,
|
|
2147
|
+
Ea as n,
|
|
2148
|
+
za as o,
|
|
2149
|
+
ka as p,
|
|
2150
|
+
Ba as q,
|
|
2151
|
+
Ra as r,
|
|
2152
|
+
Ua as s,
|
|
2148
2153
|
Ie as t,
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2154
|
+
Aa as u,
|
|
2155
|
+
qa as v,
|
|
2156
|
+
Na as w,
|
|
2157
|
+
Ma as x,
|
|
2158
|
+
Da as y,
|
|
2159
|
+
La as z
|
|
2155
2160
|
};
|
|
@@ -8,6 +8,7 @@ import "@arcgis/toolkit/string";
|
|
|
8
8
|
import { h as N, e as R } from "./generateLayerDescriptions.js";
|
|
9
9
|
import { AIMessage as y } from "@langchain/core/messages";
|
|
10
10
|
import "@langchain/core/callbacks/dispatch/web";
|
|
11
|
+
import "@langchain/core/callbacks/base";
|
|
11
12
|
import "@langchain/openai";
|
|
12
13
|
import "@arcgis/core/config.js";
|
|
13
14
|
import "@arcgis/core/core/reactiveUtils.js";
|
|
@@ -217,7 +218,7 @@ _example: "Discover and add all the relationships originating at 'Entity E' to t
|
|
|
217
218
|
_example: "Show me all entities with a name similar to 'Smith' and add them to the link chart"_
|
|
218
219
|
_example: "Find reports in my graph that have a title similar to 'Quarterly Earnings'"_
|
|
219
220
|
_example: "Find John Smith and all people he has made phone calls to in the last year"_
|
|
220
|
-
_example: "What is the average age of all people who work for Esri?"_`,
|
|
221
|
+
_example: "What is the average age of all people who work for Esri?"_`, de = {
|
|
221
222
|
id: "arcgisKnowledge",
|
|
222
223
|
name: "ArcgisKnowledge Agent",
|
|
223
224
|
description: J,
|
|
@@ -225,5 +226,5 @@ _example: "What is the average age of all people who work for Esri?"_`, le = {
|
|
|
225
226
|
workspace: m
|
|
226
227
|
};
|
|
227
228
|
export {
|
|
228
|
-
|
|
229
|
+
de as A
|
|
229
230
|
};
|
|
@@ -8,6 +8,7 @@ import "@arcgis/toolkit/string";
|
|
|
8
8
|
import { h as M, e as A } from "./generateLayerDescriptions.js";
|
|
9
9
|
import { AIMessage as _ } from "@langchain/core/messages";
|
|
10
10
|
import { s } from "./index.js";
|
|
11
|
+
import "@langchain/core/callbacks/base";
|
|
11
12
|
import "@langchain/openai";
|
|
12
13
|
import "@arcgis/core/config.js";
|
|
13
14
|
import "@arcgis/core/core/reactiveUtils.js";
|
|
@@ -241,7 +242,7 @@ ${i}` : n = "Vector search completed. No matching layers found.", await s({ text
|
|
|
241
242
|
_Example: “What’s the average population?”_
|
|
242
243
|
_Example: “Which values are in the status field?”_
|
|
243
244
|
|
|
244
|
-
This agent does NOT handle help/metadata requests such as listing available layers, listing field names/columns/attributes for a layer, or capability guidance.`,
|
|
245
|
+
This agent does NOT handle help/metadata requests such as listing available layers, listing field names/columns/attributes for a layer, or capability guidance.`, fe = {
|
|
245
246
|
id: "dataExploration",
|
|
246
247
|
name: "Data Exploration Agent",
|
|
247
248
|
description: K,
|
|
@@ -249,5 +250,5 @@ ${i}` : n = "Vector search completed. No matching layers found.", await s({ text
|
|
|
249
250
|
workspace: T
|
|
250
251
|
};
|
|
251
252
|
export {
|
|
252
|
-
|
|
253
|
+
fe as D
|
|
253
254
|
};
|
package/dist/chunks/helpGraph.js
CHANGED
|
@@ -8,6 +8,7 @@ import "@arcgis/toolkit/string";
|
|
|
8
8
|
import { h as y } from "./generateLayerDescriptions.js";
|
|
9
9
|
import "@langchain/core/messages";
|
|
10
10
|
import "@langchain/core/callbacks/dispatch/web";
|
|
11
|
+
import "@langchain/core/callbacks/base";
|
|
11
12
|
import "@langchain/openai";
|
|
12
13
|
import "@arcgis/core/config.js";
|
|
13
14
|
import "@arcgis/core/core/reactiveUtils.js";
|
|
@@ -120,7 +121,7 @@ const M = () => new d(u).addNode("requireHelpServices", H).addNode("agent", _).a
|
|
|
120
121
|
|
|
121
122
|
IF the user asks map related queries, but those that are not performed by any of the agents, call this agent so we can respond that the requested action is not supported.
|
|
122
123
|
_Example: "Create a chart"_
|
|
123
|
-
_Example: "Create a table"_`,
|
|
124
|
+
_Example: "Create a table"_`, Q = {
|
|
124
125
|
id: "help",
|
|
125
126
|
name: "Help Agent",
|
|
126
127
|
description: k,
|
|
@@ -128,5 +129,5 @@ const M = () => new d(u).addNode("requireHelpServices", H).addNode("agent", _).a
|
|
|
128
129
|
workspace: u
|
|
129
130
|
};
|
|
130
131
|
export {
|
|
131
|
-
|
|
132
|
+
Q as H
|
|
132
133
|
};
|
|
@@ -7,6 +7,7 @@ import "@arcgis/toolkit/string";
|
|
|
7
7
|
import { h as v } from "./generateLayerDescriptions.js";
|
|
8
8
|
import "@langchain/core/messages";
|
|
9
9
|
import { s as i } from "./index.js";
|
|
10
|
+
import "@langchain/core/callbacks/base";
|
|
10
11
|
import "@langchain/openai";
|
|
11
12
|
import "@arcgis/core/config.js";
|
|
12
13
|
import "@arcgis/core/core/reactiveUtils.js";
|
|
@@ -8,6 +8,7 @@ import "@arcgis/toolkit/string";
|
|
|
8
8
|
import { h as L, i as M } from "./generateLayerDescriptions.js";
|
|
9
9
|
import "@langchain/core/messages";
|
|
10
10
|
import "@langchain/core/callbacks/dispatch/web";
|
|
11
|
+
import "@langchain/core/callbacks/base";
|
|
11
12
|
import "@langchain/openai";
|
|
12
13
|
import "@arcgis/core/config.js";
|
|
13
14
|
import "@arcgis/core/core/reactiveUtils.js";
|
|
@@ -274,7 +275,7 @@ ${s.results.map((d) => ` - ${d.name} (${d.score.toFixed(2)})`).join(`
|
|
|
274
275
|
_Example: “Center the map on San Francisco at scale 50000”_
|
|
275
276
|
_Example: “Zoom to the features in the schools layer where city = 'Austin'”_
|
|
276
277
|
_Example: “Go to the Downtown bookmark”_
|
|
277
|
-
_Example: “Where is Mount Rainier?”_`,
|
|
278
|
+
_Example: “Where is Mount Rainier?”_`, Le = {
|
|
278
279
|
id: "navigation",
|
|
279
280
|
name: "Navigation Agent",
|
|
280
281
|
description: ee,
|
|
@@ -282,5 +283,5 @@ ${s.results.map((d) => ` - ${d.name} (${d.score.toFixed(2)})`).join(`
|
|
|
282
283
|
workspace: k
|
|
283
284
|
};
|
|
284
285
|
export {
|
|
285
|
-
|
|
286
|
+
Le as N
|
|
286
287
|
};
|