@arcgis/ai-components 5.2.0-next.65 → 5.2.0-next.67
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/cdn/{GLOALVJR.js → 563R6SX5.js} +1 -1
- package/dist/cdn/B6CJG5UH.js +66 -0
- package/dist/cdn/{3YCSUTGV.js → CXW5URTF.js} +1 -1
- package/dist/cdn/{L4SS54EZ.js → DTIVDIDY.js} +1 -1
- package/dist/cdn/{AYMUK2MC.js → E5ZKBC24.js} +2 -2
- package/dist/cdn/{7NP7WGR5.js → EKZTQFYI.js} +1 -1
- package/dist/cdn/{FVDFPK3V.js → GP6NDTUE.js} +1 -1
- package/dist/cdn/{LUJCH5V7.js → HTBMJ557.js} +1 -1
- package/dist/cdn/{THXUE6R4.js → JMIXLFSZ.js} +1 -1
- package/dist/cdn/{BI3LK5D3.js → KJAWV5SK.js} +1 -1
- package/dist/cdn/KQHLOYKL.js +3 -0
- package/dist/cdn/{QBINZNXI.js → KX43Z26W.js} +1 -1
- package/dist/cdn/{QZLE7B6X.js → MBIIANTX.js} +1 -1
- package/dist/cdn/{FC45FF2D.js → MW5S2XCB.js} +1 -1
- package/dist/cdn/{275NKWUE.js → PUFTYLJ2.js} +1 -1
- package/dist/cdn/{AHLLB5QW.js → QXGXNOTJ.js} +1 -1
- package/dist/cdn/{OY2P2O47.js → ST5FQYT7.js} +32 -32
- package/dist/cdn/{WHOZT5H5.js → SXHH575T.js} +17 -17
- package/dist/cdn/{RAAV47KU.js → UAKSN7EQ.js} +1 -1
- package/dist/cdn/{NSER3L4A.js → WVPU4QOO.js} +1 -1
- package/dist/cdn/{242OOJML.js → Y2JULDNA.js} +1 -1
- package/dist/cdn/agent-utils/index.js +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/adapter.js +2 -2
- package/dist/chunks/generateLayerDescriptions.js +200 -189
- package/dist/chunks/navigationGraph.js +21 -20
- package/dist/chunks/orchestrator.js +221 -193
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/package.json +6 -6
- package/dist/cdn/FNPLHH4E.js +0 -3
- package/dist/cdn/NQROZZHC.js +0 -65
|
@@ -35,12 +35,12 @@ async function B(e, t) {
|
|
|
35
35
|
`) : "", c = e.vectorSearchFieldResults?.length > 0 ? JSON.stringify(e.vectorSearchFieldResults, null, 2) : "", a = e.intent === "goToBookmark" && i.length ? `Available bookmarks:
|
|
36
36
|
${i.map((p) => `- ${p}`).join(`
|
|
37
37
|
`)}` : "", r = (e.intent === "goToLayer" || e.intent === "goToFeatures") && e.vectorSearchLayerResults?.length ? `Candidate layers:
|
|
38
|
-
${l}` : "",
|
|
38
|
+
${l}` : "", m = e.intent === "goToFeatures" && e.vectorSearchFieldResults?.length ? `Candidate fields:
|
|
39
39
|
${c}` : "", y = {
|
|
40
40
|
intent: e.intent,
|
|
41
41
|
bookmarksSection: a,
|
|
42
42
|
layersSection: r,
|
|
43
|
-
fieldsSection:
|
|
43
|
+
fieldsSection: m,
|
|
44
44
|
currentZoom: s.zoom,
|
|
45
45
|
assignedTask: e.agentExecutionContext.assignedTask,
|
|
46
46
|
userRequest: e.agentExecutionContext.userRequest,
|
|
@@ -53,16 +53,16 @@ ${c}` : "", y = {
|
|
|
53
53
|
tools: S
|
|
54
54
|
});
|
|
55
55
|
await G(n, t);
|
|
56
|
-
const
|
|
56
|
+
const g = (n.tool_calls?.length ?? 0) > 0, v = typeof n.text == "string" ? n.text.trim() : "", N = v.length > 0;
|
|
57
57
|
return {
|
|
58
58
|
...e,
|
|
59
59
|
navigationInternalState: {
|
|
60
60
|
...e.navigationInternalState,
|
|
61
|
-
toolCallMessage:
|
|
61
|
+
toolCallMessage: g ? n : void 0
|
|
62
62
|
},
|
|
63
63
|
// No tool call => surface fallback text now. Tool call => tool node will set output.
|
|
64
|
-
outputMessage:
|
|
65
|
-
status:
|
|
64
|
+
outputMessage: g ? e.outputMessage : v,
|
|
65
|
+
status: g ? e.status : N ? "success" : "failed"
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
const D = (e) => {
|
|
@@ -130,7 +130,7 @@ async function H(e, t) {
|
|
|
130
130
|
})), l = s.map.bookmarks?.map((n) => n.name).filter(Boolean) ?? [], c = l.length ? `Available bookmarks:
|
|
131
131
|
${l.map((n) => `- ${n}`).join(`
|
|
132
132
|
`)}` : "No bookmarks are available in this map.", a = {
|
|
133
|
-
tools: d.map(({ name: n, description:
|
|
133
|
+
tools: d.map(({ name: n, description: g, schema: v }) => `${n}: ${g}, ${JSON.stringify(v)}`).join(`
|
|
134
134
|
`),
|
|
135
135
|
bookmarks: c,
|
|
136
136
|
assignedTask: e.agentExecutionContext.assignedTask,
|
|
@@ -138,13 +138,13 @@ ${l.map((n) => `- ${n}`).join(`
|
|
|
138
138
|
priorSteps: e.agentExecutionContext.priorSteps
|
|
139
139
|
}, r = x.object({
|
|
140
140
|
intent: x.string()
|
|
141
|
-
}),
|
|
141
|
+
}), m = await z({
|
|
142
142
|
promptText: o,
|
|
143
143
|
config: t,
|
|
144
144
|
inputVariables: a,
|
|
145
145
|
schema: r,
|
|
146
146
|
modelTier: "fast"
|
|
147
|
-
}), y = typeof
|
|
147
|
+
}), y = typeof m.intent == "string" ? m.intent.trim().replace(/^"|"$/gu, "") : "";
|
|
148
148
|
return { ...e, intent: y || "" };
|
|
149
149
|
}
|
|
150
150
|
const U = 0.7, W = async (e, t) => {
|
|
@@ -158,11 +158,11 @@ const U = 0.7, W = async (e, t) => {
|
|
|
158
158
|
minScore: U,
|
|
159
159
|
embeddingCache: d
|
|
160
160
|
})).map(({ id: a, score: r }) => {
|
|
161
|
-
const
|
|
161
|
+
const m = s.get(a)?.layerItem;
|
|
162
162
|
return {
|
|
163
163
|
id: a,
|
|
164
|
-
title:
|
|
165
|
-
name:
|
|
164
|
+
title: m?.title,
|
|
165
|
+
name: m?.name ?? void 0,
|
|
166
166
|
score: r
|
|
167
167
|
};
|
|
168
168
|
});
|
|
@@ -194,20 +194,21 @@ ${l.map((a) => `- layerId=${a.id} | title=${a.title ?? ""} | name=${a.name ?? ""
|
|
|
194
194
|
minScore: f,
|
|
195
195
|
topResults: K,
|
|
196
196
|
embeddingCache: d
|
|
197
|
-
})).map(({ layerId: r, results:
|
|
197
|
+
})).map(({ layerId: r, results: m }) => {
|
|
198
198
|
const y = s.get(r)?.fieldRegistry;
|
|
199
199
|
return {
|
|
200
200
|
layerId: r,
|
|
201
201
|
layerName: s.get(r)?.layerItem.name,
|
|
202
|
-
results:
|
|
203
|
-
const
|
|
202
|
+
results: m.map((n) => {
|
|
203
|
+
const g = y?.get(n.name);
|
|
204
204
|
return {
|
|
205
205
|
name: n.name,
|
|
206
206
|
score: n.score,
|
|
207
|
-
type:
|
|
208
|
-
alias:
|
|
209
|
-
description:
|
|
210
|
-
statistics:
|
|
207
|
+
type: g?.type,
|
|
208
|
+
alias: g?.alias,
|
|
209
|
+
description: g?.description,
|
|
210
|
+
statistics: g?.statistics,
|
|
211
|
+
domain: g?.domain
|
|
211
212
|
};
|
|
212
213
|
})
|
|
213
214
|
};
|
|
@@ -216,7 +217,7 @@ ${l.map((a) => `- layerId=${a.id} | title=${a.title ?? ""} | name=${a.name ?? ""
|
|
|
216
217
|
return c.length > 0 ? a = `Vector search completed. Matching layers and fields:
|
|
217
218
|
${c.map(
|
|
218
219
|
(r) => `${r.layerName ?? r.layerId}:
|
|
219
|
-
${r.results.map((
|
|
220
|
+
${r.results.map((m) => ` - ${m.name} (${m.score.toFixed(2)})`).join(`
|
|
220
221
|
`)}`
|
|
221
222
|
).join(`
|
|
222
223
|
`)}` : a = `No vector search field results found for score over ${f}.`, await h({ text: a }, t), {
|