@arcgis/ai-components 5.2.0-next.5 → 5.2.0-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/cdn/{3WINIQWY.js → 3NI46YCE.js} +1 -1
  2. package/dist/cdn/{GBNUMN4J.js → 47FWPQ2A.js} +1 -1
  3. package/dist/cdn/{GJUXVEOF.js → AEJHYRGT.js} +1 -1
  4. package/dist/cdn/{ERBQSEPQ.js → BFZJNJL6.js} +1 -1
  5. package/dist/cdn/{M6F4MXDK.js → GCQLVNNC.js} +1 -1
  6. package/dist/cdn/{DO2P3PWF.js → JV4SI65E.js} +26 -24
  7. package/dist/cdn/{J5CMRCPS.js → R6HV42YW.js} +1 -1
  8. package/dist/cdn/{3BKUCFKS.js → V7OJRG26.js} +1 -1
  9. package/dist/cdn/{CXWBEDXN.js → VOQX4AVB.js} +1 -1
  10. package/dist/cdn/index.js +1 -1
  11. package/dist/cdn/main.css +1 -1
  12. package/dist/chunks/generateLayerDescriptions.js +153 -145
  13. package/dist/components/arcgis-assistant-chat/customElement.d.ts +6 -1
  14. package/dist/components/arcgis-assistant-chat-entry/customElement.d.ts +2 -1
  15. package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +4 -1
  16. package/dist/components/arcgis-assistant-message/customElement.d.ts +21 -0
  17. package/dist/components/arcgis-assistant-message/index.d.ts +1 -0
  18. package/dist/components/arcgis-assistant-message-block/customElement.d.ts +1 -1
  19. package/dist/components/arcgis-assistant-message-feedback/customElement.d.ts +4 -1
  20. package/dist/components/arcgis-assistant-message-footer/customElement.d.ts +4 -1
  21. package/dist/components/arcgis-assistant-message-loading/customElement.d.ts +4 -1
  22. package/dist/components/arcgis-assistant-message-log/customElement.d.ts +4 -1
  23. package/dist/components/arcgis-assistant-message-read-aloud/customElement.d.ts +4 -1
  24. package/dist/components/arcgis-assistant-message-text/customElement.d.ts +4 -1
  25. package/dist/components/arcgis-assistant-speech-input/customElement.d.ts +6 -1
  26. package/dist/components/arcgis-assistant-suggested-prompts/customElement.d.ts +4 -1
  27. package/dist/components/arcgis-assistant-user-message/customElement.d.ts +4 -1
  28. package/dist/docs/api.json +1 -1
  29. package/dist/docs/docs.json +1 -1
  30. package/dist/docs/vscode.html-custom-data.json +1 -1
  31. package/dist/docs/web-types.json +1 -1
  32. package/dist/index.d.ts +4 -0
  33. package/dist/types/lumina.d.ts +5 -0
  34. package/dist/types/preact.d.ts +6 -0
  35. package/dist/types/react.d.ts +7 -0
  36. package/dist/types/stencil.d.ts +5 -0
  37. package/dist/utils/index.d.ts +2 -11
  38. package/dist/utils/index.js +64 -78
  39. package/package.json +5 -5
package/dist/index.d.ts CHANGED
@@ -34,6 +34,7 @@ import type { ArcgisAssistantNavigationAgent } from "./components/arcgis-assista
34
34
  import type { ArcgisAssistantChat } from "./components/arcgis-assistant-chat/customElement.js";
35
35
  import type { ArcgisAssistantChatEntry } from "./components/arcgis-assistant-chat-entry/customElement.js";
36
36
  import type { ArcgisAssistantInterrupt } from "./components/arcgis-assistant-interrupt/customElement.js";
37
+ import type { ArcgisAssistantMessage } from "./components/arcgis-assistant-message/customElement.js";
37
38
  import type { ArcgisAssistantMessageBlock } from "./components/arcgis-assistant-message-block/customElement.js";
38
39
  import type { ArcgisAssistantMessageFeedback } from "./components/arcgis-assistant-message-feedback/customElement.js";
39
40
  import type { ArcgisAssistantMessageFooter } from "./components/arcgis-assistant-message-footer/customElement.js";
@@ -91,6 +92,7 @@ declare global {
91
92
  "arcgis-assistant-chat": ArcgisAssistantChat;
92
93
  "arcgis-assistant-chat-entry": ArcgisAssistantChatEntry;
93
94
  "arcgis-assistant-interrupt": ArcgisAssistantInterrupt;
95
+ "arcgis-assistant-message": ArcgisAssistantMessage;
94
96
  "arcgis-assistant-message-block": ArcgisAssistantMessageBlock;
95
97
  "arcgis-assistant-message-feedback": ArcgisAssistantMessageFeedback;
96
98
  "arcgis-assistant-message-footer": ArcgisAssistantMessageFooter;
@@ -127,6 +129,8 @@ declare global {
127
129
  type HTMLArcgisAssistantInterruptElementEventMap = ArcgisAssistantInterrupt["@eventTypes"];
128
130
  type HTMLArcgisAssistantInterruptElement = ArcgisAssistantInterrupt;
129
131
 
132
+ type HTMLArcgisAssistantMessageElement = ArcgisAssistantMessage;
133
+
130
134
  type HTMLArcgisAssistantMessageBlockElement = ArcgisAssistantMessageBlock;
131
135
 
132
136
  type HTMLArcgisAssistantMessageFeedbackElementEventMap = ArcgisAssistantMessageFeedback["@eventTypes"];
@@ -9,6 +9,7 @@ import type { ArcgisAssistantNavigationAgent } from "../components/arcgis-assist
9
9
  import type { ArcgisAssistantChat } from "../components/arcgis-assistant-chat/customElement.js";
10
10
  import type { ArcgisAssistantChatEntry } from "../components/arcgis-assistant-chat-entry/customElement.js";
11
11
  import type { ArcgisAssistantInterrupt } from "../components/arcgis-assistant-interrupt/customElement.js";
12
+ import type { ArcgisAssistantMessage } from "../components/arcgis-assistant-message/customElement.js";
12
13
  import type { ArcgisAssistantMessageBlock } from "../components/arcgis-assistant-message-block/customElement.js";
13
14
  import type { ArcgisAssistantMessageFeedback } from "../components/arcgis-assistant-message-feedback/customElement.js";
14
15
  import type { ArcgisAssistantMessageFooter } from "../components/arcgis-assistant-message-footer/customElement.js";
@@ -65,6 +66,9 @@ interface LuminaArcgisAssistantInterrupt extends Partial<Pick<ArcgisAssistantInt
65
66
  onarcgisSubmit?: EventHandler<ArcgisAssistantInterrupt["arcgisSubmit"]>;
66
67
  }
67
68
 
69
+ interface LuminaArcgisAssistantMessage extends Partial<Pick<ArcgisAssistantMessage, "copyEnabled" | "feedbackEnabled" | "footerDisabled" | "logEnabled" | "message" | "readAloudEnabled">>, h.JSX.HTMLAttributes<ArcgisAssistantMessage> {
70
+ }
71
+
68
72
  interface LuminaArcgisAssistantMessageBlock extends Partial<Pick<ArcgisAssistantMessageBlock, "block">>, h.JSX.HTMLAttributes<ArcgisAssistantMessageBlock> {
69
73
  }
70
74
 
@@ -117,6 +121,7 @@ declare module "@arcgis/lumina" {
117
121
  "arcgis-assistant-chat": LuminaArcgisAssistantChat;
118
122
  "arcgis-assistant-chat-entry": LuminaArcgisAssistantChatEntry;
119
123
  "arcgis-assistant-interrupt": LuminaArcgisAssistantInterrupt;
124
+ "arcgis-assistant-message": LuminaArcgisAssistantMessage;
120
125
  "arcgis-assistant-message-block": LuminaArcgisAssistantMessageBlock;
121
126
  "arcgis-assistant-message-feedback": LuminaArcgisAssistantMessageFeedback;
122
127
  "arcgis-assistant-message-footer": LuminaArcgisAssistantMessageFooter;
@@ -9,6 +9,7 @@ import type { ArcgisAssistantNavigationAgent } from "../components/arcgis-assist
9
9
  import type { ArcgisAssistantChat } from "../components/arcgis-assistant-chat/customElement.js";
10
10
  import type { ArcgisAssistantChatEntry } from "../components/arcgis-assistant-chat-entry/customElement.js";
11
11
  import type { ArcgisAssistantInterrupt } from "../components/arcgis-assistant-interrupt/customElement.js";
12
+ import type { ArcgisAssistantMessage } from "../components/arcgis-assistant-message/customElement.js";
12
13
  import type { ArcgisAssistantMessageBlock } from "../components/arcgis-assistant-message-block/customElement.js";
13
14
  import type { ArcgisAssistantMessageFeedback } from "../components/arcgis-assistant-message-feedback/customElement.js";
14
15
  import type { ArcgisAssistantMessageFooter } from "../components/arcgis-assistant-message-footer/customElement.js";
@@ -66,6 +67,9 @@ interface PreactArcgisAssistantInterrupt extends Partial<Pick<ArcgisAssistantInt
66
67
  onarcgisSubmit?: EventHandler<ArcgisAssistantInterrupt["arcgisSubmit"]>;
67
68
  }
68
69
 
70
+ interface PreactArcgisAssistantMessage extends Partial<Pick<ArcgisAssistantMessage, "copyEnabled" | "feedbackEnabled" | "footerDisabled" | "logEnabled" | "message" | "readAloudEnabled">>, HTMLAttributes<ArcgisAssistantMessage> {
71
+ }
72
+
69
73
  interface PreactArcgisAssistantMessageBlock extends Partial<Pick<ArcgisAssistantMessageBlock, "block">>, HTMLAttributes<ArcgisAssistantMessageBlock> {
70
74
  }
71
75
 
@@ -118,6 +122,7 @@ declare module 'preact' {
118
122
  "arcgis-assistant-chat": PreactArcgisAssistantChat;
119
123
  "arcgis-assistant-chat-entry": PreactArcgisAssistantChatEntry;
120
124
  "arcgis-assistant-interrupt": PreactArcgisAssistantInterrupt;
125
+ "arcgis-assistant-message": PreactArcgisAssistantMessage;
121
126
  "arcgis-assistant-message-block": PreactArcgisAssistantMessageBlock;
122
127
  "arcgis-assistant-message-feedback": PreactArcgisAssistantMessageFeedback;
123
128
  "arcgis-assistant-message-footer": PreactArcgisAssistantMessageFooter;
@@ -142,6 +147,7 @@ declare module 'preact' {
142
147
  "arcgis-assistant-chat": PreactArcgisAssistantChat;
143
148
  "arcgis-assistant-chat-entry": PreactArcgisAssistantChatEntry;
144
149
  "arcgis-assistant-interrupt": PreactArcgisAssistantInterrupt;
150
+ "arcgis-assistant-message": PreactArcgisAssistantMessage;
145
151
  "arcgis-assistant-message-block": PreactArcgisAssistantMessageBlock;
146
152
  "arcgis-assistant-message-feedback": PreactArcgisAssistantMessageFeedback;
147
153
  "arcgis-assistant-message-footer": PreactArcgisAssistantMessageFooter;
@@ -9,6 +9,7 @@ import type { ArcgisAssistantNavigationAgent } from "../components/arcgis-assist
9
9
  import type { ArcgisAssistantChat } from "../components/arcgis-assistant-chat/customElement.js";
10
10
  import type { ArcgisAssistantChatEntry } from "../components/arcgis-assistant-chat-entry/customElement.js";
11
11
  import type { ArcgisAssistantInterrupt } from "../components/arcgis-assistant-interrupt/customElement.js";
12
+ import type { ArcgisAssistantMessage } from "../components/arcgis-assistant-message/customElement.js";
12
13
  import type { ArcgisAssistantMessageBlock } from "../components/arcgis-assistant-message-block/customElement.js";
13
14
  import type { ArcgisAssistantMessageFeedback } from "../components/arcgis-assistant-message-feedback/customElement.js";
14
15
  import type { ArcgisAssistantMessageFooter } from "../components/arcgis-assistant-message-footer/customElement.js";
@@ -66,6 +67,9 @@ interface ReactArcgisAssistantInterrupt extends Partial<Pick<ArcgisAssistantInte
66
67
  onarcgisSubmit?: EventHandler<ArcgisAssistantInterrupt["arcgisSubmit"]>;
67
68
  }
68
69
 
70
+ interface ReactArcgisAssistantMessage extends Partial<Pick<ArcgisAssistantMessage, "copyEnabled" | "feedbackEnabled" | "footerDisabled" | "logEnabled" | "message" | "readAloudEnabled">>, HTMLProps<ArcgisAssistantMessage> {
71
+ }
72
+
69
73
  interface ReactArcgisAssistantMessageBlock extends Partial<Pick<ArcgisAssistantMessageBlock, "block">>, HTMLProps<ArcgisAssistantMessageBlock> {
70
74
  }
71
75
 
@@ -118,6 +122,7 @@ declare module "react" {
118
122
  "arcgis-assistant-chat": ReactArcgisAssistantChat;
119
123
  "arcgis-assistant-chat-entry": ReactArcgisAssistantChatEntry;
120
124
  "arcgis-assistant-interrupt": ReactArcgisAssistantInterrupt;
125
+ "arcgis-assistant-message": ReactArcgisAssistantMessage;
121
126
  "arcgis-assistant-message-block": ReactArcgisAssistantMessageBlock;
122
127
  "arcgis-assistant-message-feedback": ReactArcgisAssistantMessageFeedback;
123
128
  "arcgis-assistant-message-footer": ReactArcgisAssistantMessageFooter;
@@ -144,6 +149,7 @@ declare module "react/jsx-runtime" {
144
149
  "arcgis-assistant-chat": ReactArcgisAssistantChat;
145
150
  "arcgis-assistant-chat-entry": ReactArcgisAssistantChatEntry;
146
151
  "arcgis-assistant-interrupt": ReactArcgisAssistantInterrupt;
152
+ "arcgis-assistant-message": ReactArcgisAssistantMessage;
147
153
  "arcgis-assistant-message-block": ReactArcgisAssistantMessageBlock;
148
154
  "arcgis-assistant-message-feedback": ReactArcgisAssistantMessageFeedback;
149
155
  "arcgis-assistant-message-footer": ReactArcgisAssistantMessageFooter;
@@ -170,6 +176,7 @@ declare module "react/jsx-dev-runtime" {
170
176
  "arcgis-assistant-chat": ReactArcgisAssistantChat;
171
177
  "arcgis-assistant-chat-entry": ReactArcgisAssistantChatEntry;
172
178
  "arcgis-assistant-interrupt": ReactArcgisAssistantInterrupt;
179
+ "arcgis-assistant-message": ReactArcgisAssistantMessage;
173
180
  "arcgis-assistant-message-block": ReactArcgisAssistantMessageBlock;
174
181
  "arcgis-assistant-message-feedback": ReactArcgisAssistantMessageFeedback;
175
182
  "arcgis-assistant-message-footer": ReactArcgisAssistantMessageFooter;
@@ -9,6 +9,7 @@ import type { ArcgisAssistantNavigationAgent } from "../components/arcgis-assist
9
9
  import type { ArcgisAssistantChat } from "../components/arcgis-assistant-chat/customElement.js";
10
10
  import type { ArcgisAssistantChatEntry } from "../components/arcgis-assistant-chat-entry/customElement.js";
11
11
  import type { ArcgisAssistantInterrupt } from "../components/arcgis-assistant-interrupt/customElement.js";
12
+ import type { ArcgisAssistantMessage } from "../components/arcgis-assistant-message/customElement.js";
12
13
  import type { ArcgisAssistantMessageBlock } from "../components/arcgis-assistant-message-block/customElement.js";
13
14
  import type { ArcgisAssistantMessageFeedback } from "../components/arcgis-assistant-message-feedback/customElement.js";
14
15
  import type { ArcgisAssistantMessageFooter } from "../components/arcgis-assistant-message-footer/customElement.js";
@@ -66,6 +67,9 @@ interface StencilArcgisAssistantInterrupt extends Partial<Pick<ArcgisAssistantIn
66
67
  onArcgisSubmit?: EventHandler<ArcgisAssistantInterrupt["arcgisSubmit"]>;
67
68
  }
68
69
 
70
+ interface StencilArcgisAssistantMessage extends Partial<Pick<ArcgisAssistantMessage, "copyEnabled" | "feedbackEnabled" | "footerDisabled" | "logEnabled" | "message" | "readAloudEnabled">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessage> {
71
+ }
72
+
69
73
  interface StencilArcgisAssistantMessageBlock extends Partial<Pick<ArcgisAssistantMessageBlock, "block">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessageBlock> {
70
74
  }
71
75
 
@@ -116,6 +120,7 @@ interface ExposedElements {
116
120
  "arcgis-assistant-chat": StencilArcgisAssistantChat;
117
121
  "arcgis-assistant-chat-entry": StencilArcgisAssistantChatEntry;
118
122
  "arcgis-assistant-interrupt": StencilArcgisAssistantInterrupt;
123
+ "arcgis-assistant-message": StencilArcgisAssistantMessage;
119
124
  "arcgis-assistant-message-block": StencilArcgisAssistantMessageBlock;
120
125
  "arcgis-assistant-message-feedback": StencilArcgisAssistantMessageFeedback;
121
126
  "arcgis-assistant-message-footer": StencilArcgisAssistantMessageFooter;
@@ -146,6 +146,8 @@ export type ArcgisPromptOptions = {
146
146
  * - `advanced` - An advanced model tier that may provide improved accuracy or capabilities compared to
147
147
  * the default tier. However, it may also come with increased cost and slower performance. At
148
148
  * JS SDK v5.0, this model tier corresponds to GPT-5.2 model.
149
+ * - `fast` - A lower cost model suitable for tasks like classification and summarization. This tier may have limitations in terms of response length and complexity.
150
+ * New at JS SDK v5.1, this model tier corresponds to GPT-5.4-nano model.
149
151
  *
150
152
  * The specific models available in each tier may evolve over time as new models are released and existing
151
153
  * models are retired. The dates models are retired depends on the model provider and therefore may not
@@ -307,17 +309,6 @@ export function sendTraceMessage(data: TraceEventData, config?: RunnableConfig):
307
309
  */
308
310
  export function getEmbeddings(inputs: string[]): Promise<number[][]>;
309
311
 
310
- /**
311
- * Calculates the cosine similarity between two numeric vectors. This is used to measure the similarity
312
- * between two embedding vectors, where a score of 1 indicates identical vectors, 0 indicates orthogonal
313
- * vectors, and -1 indicates opposite vectors.
314
- *
315
- * @param vectorA - The first vector array.
316
- * @param vectorB - The second vector array.
317
- * @returns A similarity score from -1 (opposite) to 1 (identical).
318
- */
319
- export function cosineSimilarity(vectorA: number[], vectorB: number[]): number;
320
-
321
312
  /**
322
313
  * The suggestions emitted by the agent to the user interface.
323
314
  *
@@ -1,115 +1,101 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { g as p } from "../chunks/orchestrator.js";
3
- import { O as ye } from "../chunks/orchestrator.js";
4
- import { g as h, a as A, W as S, f, l as y, d as v, m as w, b as $, e as b, i as E, h as L, j as P, s as M, k as T, n as R, c as k, o as x } from "../chunks/generateLayerDescriptions.js";
5
- import D from "@arcgis/core/layers/FeatureLayer.js";
6
- import * as W from "@arcgis/core/core/reactiveUtils.js";
7
- import { N as F } from "../chunks/navigationGraph.js";
3
+ import { O as ge } from "../chunks/orchestrator.js";
4
+ import { g as A, a as h, W as v, f as g, l as f, d as S, m as w, b as $, e as b, i as L, h as P, j as E, s as T, k as R, n as k, c as D, o as W } from "../chunks/generateLayerDescriptions.js";
5
+ import x from "@arcgis/core/layers/FeatureLayer.js";
6
+ import * as F from "@arcgis/core/core/reactiveUtils.js";
7
+ import { N as M } from "../chunks/navigationGraph.js";
8
8
  import { L as C } from "../chunks/layerStylingGraph.js";
9
9
  import { D as N } from "../chunks/dataExplorationGraph.js";
10
10
  import { H as z } from "../chunks/helpGraph.js";
11
11
  import { A as H } from "../chunks/arcgisKnowledgeGraph.js";
12
- const I = async (e) => {
13
- const t = e.allLayers.toArray(), s = [], n = /* @__PURE__ */ new Map();
14
- for (const a of t)
15
- if (a instanceof D) {
12
+ const I = async (t) => {
13
+ const e = t.allLayers.toArray(), s = [], o = /* @__PURE__ */ new Map();
14
+ for (const a of e)
15
+ if (a instanceof x) {
16
16
  const m = (async () => {
17
- const o = await h(a), r = await A(a, o);
18
- n.set(a.id, { layerItem: r, fieldRegistry: o });
17
+ const r = await A(a), c = await h(a, r);
18
+ o.set(a.id, { layerItem: c, fieldRegistry: r });
19
19
  })();
20
20
  s.push(m);
21
21
  }
22
- return await Promise.all(s), n;
23
- }, O = async (e) => {
24
- await W.whenOnce(() => e.ready);
25
- const t = await I(e.map), { layers: s } = await U(t), n = {
22
+ return await Promise.all(s), o;
23
+ }, O = async (t) => {
24
+ await F.whenOnce(() => t.ready);
25
+ const e = await I(t.map), { layers: s } = await U(e), o = {
26
26
  schemaVersion: b,
27
27
  modified: Date.now(),
28
28
  embeddings: {
29
29
  modelProvider: $,
30
30
  model: w,
31
- dimensions: v,
31
+ dimensions: S,
32
32
  templates: {
33
- layer: y,
34
- field: f
33
+ layer: f,
34
+ field: g
35
35
  }
36
36
  },
37
37
  layers: s
38
- }, a = S.safeParse(n);
38
+ }, a = v.safeParse(o);
39
39
  if (!a.success)
40
40
  throw console.error("Schema Mismatch:", a.error.format()), new Error("Webmap embedding generation failed validation.");
41
41
  return a.data;
42
- }, U = async (e) => {
43
- const t = [], s = [];
44
- for (const [o, { fieldRegistry: r, layerItem: i }] of e.entries()) {
45
- const l = g(y, {
46
- name: i.name,
47
- title: i.title,
48
- description: i.description
42
+ }, U = async (t) => {
43
+ const e = [], s = [];
44
+ for (const [r, { fieldRegistry: c, layerItem: n }] of t.entries()) {
45
+ const y = l(f, {
46
+ name: n.name,
47
+ title: n.title,
48
+ description: n.description
49
49
  });
50
- t.push(l);
50
+ e.push(y);
51
51
  const d = {
52
- id: o,
53
- name: i.name ?? "",
54
- title: i.title,
55
- description: i.description,
52
+ id: r,
53
+ name: n.name ?? "",
54
+ title: n.title,
55
+ description: n.description,
56
56
  vector: [],
57
57
  fields: []
58
58
  };
59
- for (const [, c] of r.entries()) {
60
- const u = g(f, {
61
- name: c.name,
62
- alias: c.alias,
63
- description: c.description
59
+ for (const [, i] of c.entries()) {
60
+ const u = l(g, {
61
+ name: i.name,
62
+ alias: i.alias,
63
+ description: i.description
64
64
  });
65
- t.push(u), d.fields.push({
66
- name: c.name,
67
- alias: c.alias,
68
- description: c.description,
65
+ e.push(u), d.fields.push({
66
+ name: i.name,
67
+ alias: i.alias,
68
+ description: i.description,
69
69
  vector: []
70
70
  });
71
71
  }
72
72
  s.push(d);
73
73
  }
74
- const n = await p(t);
74
+ const o = await p(e);
75
75
  let a = 0;
76
- return { layers: s.map((o) => (o.vector = n[a++], o.fields.forEach((r) => {
77
- r.vector = n[a++];
78
- }), o)) };
79
- }, g = (e, t) => e.replace(/\{(\w+)\}/gu, (s, n) => t[n] ?? ""), V = (e, t) => {
80
- if (e.length !== t.length)
81
- throw new Error("Vectors must be the same length");
82
- let s = 0, n = 0, a = 0;
83
- for (let r = 0; r < e.length; ++r) {
84
- const i = e[r], l = t[r];
85
- s += i * l, n += i * i, a += l * l;
86
- }
87
- const m = Math.sqrt(n * a);
88
- if (m === 0)
89
- return 0;
90
- const o = s / m;
91
- return Math.max(-1, Math.min(1, o));
92
- }, Q = L, Y = E, Z = P, ee = M, te = p, ae = V, se = F, ne = C, oe = N, re = z, ie = H, ce = O, me = () => T(), le = () => R(), de = async (e, t) => await x(e, t), ge = async ({
93
- modelTier: e = "default",
94
- temperature: t = 0,
76
+ return { layers: s.map((r) => (r.vector = o[a++], r.fields.forEach((c) => {
77
+ c.vector = o[a++];
78
+ }), r)) };
79
+ }, l = (t, e) => t.replace(/\{(\w+)\}/gu, (s, o) => e[o] ?? ""), J = P, Q = L, Y = E, Z = T, ee = p, te = M, ae = C, se = N, oe = z, re = H, ne = O, ie = () => R(), ce = () => k(), me = async (t, e) => await W(t, e), de = async ({
80
+ modelTier: t = "default",
81
+ temperature: e = 0,
95
82
  abortSignal: s
96
- } = {}) => await k({ modelTier: e, temperature: t, abortSignal: s });
83
+ } = {}) => await D({ modelTier: t, temperature: e, abortSignal: s });
97
84
  export {
98
- ie as ArcgisKnowledgeAgent,
99
- oe as DataExplorationAgent,
100
- re as HelpAgent,
101
- ne as LayerStylingAgent,
102
- se as NavigationAgent,
103
- ye as Orchestrator,
104
- ae as cosineSimilarity,
105
- me as createAgentRuntimeState,
106
- le as createAgentRuntimeStateWithSharedState,
107
- ge as createChatModel,
108
- ce as createWebmapEmbeddings,
109
- te as getEmbeddings,
110
- Y as invokeStructuredPrompt,
111
- Q as invokeTextPrompt,
112
- Z as invokeToolPrompt,
113
- ee as sendTraceMessage,
114
- de as sendUXSuggestion
85
+ re as ArcgisKnowledgeAgent,
86
+ se as DataExplorationAgent,
87
+ oe as HelpAgent,
88
+ ae as LayerStylingAgent,
89
+ te as NavigationAgent,
90
+ ge as Orchestrator,
91
+ ie as createAgentRuntimeState,
92
+ ce as createAgentRuntimeStateWithSharedState,
93
+ de as createChatModel,
94
+ ne as createWebmapEmbeddings,
95
+ ee as getEmbeddings,
96
+ Q as invokeStructuredPrompt,
97
+ J as invokeTextPrompt,
98
+ Y as invokeToolPrompt,
99
+ Z as sendTraceMessage,
100
+ me as sendUXSuggestion
115
101
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/ai-components",
3
- "version": "5.2.0-next.5",
3
+ "version": "5.2.0-next.6",
4
4
  "description": "ArcGIS AI Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -47,13 +47,13 @@
47
47
  "marked": "~18.0.4",
48
48
  "tslib": "^2.8.1",
49
49
  "zod": "^4.3.6",
50
- "@arcgis/toolkit": "5.2.0-next.5",
51
- "@arcgis/lumina": "5.2.0-next.5"
50
+ "@arcgis/toolkit": "5.2.0-next.6",
51
+ "@arcgis/lumina": "5.2.0-next.6"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@arcgis/core": "^5.1.0-next",
55
- "@esri/calcite-components": "^5.1.0-next.60",
56
- "@arcgis/map-components": "~5.2.0-next.5"
55
+ "@esri/calcite-components": "^5.1.1-next.3",
56
+ "@arcgis/map-components": "~5.2.0-next.6"
57
57
  },
58
58
  "css.customData": [
59
59
  "dist/docs/vscode.css-custom-data.json"