@arcgis/ai-components 5.2.0-next.0 → 5.2.0-next.10

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 (110) hide show
  1. package/dist/agent-utils/LLMAgent.js +22 -22
  2. package/dist/cdn/{DHOVCT6R.js → 2SJAOYZT.js} +1 -1
  3. package/dist/cdn/434TAA3J.js +2 -0
  4. package/dist/cdn/{AMP6IALT.js → 5W7S2RS4.js} +1 -1
  5. package/dist/cdn/64PJB5NU.js +2 -0
  6. package/dist/cdn/{OH64RMOR.js → 6AWNQHCO.js} +2 -2
  7. package/dist/cdn/BIV2IPHH.js +2 -0
  8. package/dist/cdn/CCY4TSBO.js +2 -0
  9. package/dist/cdn/{AO7BQHKC.js → CTSALWEP.js} +1 -1
  10. package/dist/cdn/{NAUXSHIE.js → D2N2NSRQ.js} +2 -2
  11. package/dist/cdn/{3PKJWIC3.js → D3TNNRP4.js} +1 -1
  12. package/dist/cdn/{H7422XUG.js → DOV5ZJ7M.js} +1 -1
  13. package/dist/cdn/EEUCKMU7.js +2 -0
  14. package/dist/cdn/EGHBXLNG.js +2 -0
  15. package/dist/cdn/{N2VQD46V.js → ETRWZ3MS.js} +31 -29
  16. package/dist/cdn/{QDO2AO53.js → EWI4V3GQ.js} +10 -10
  17. package/dist/cdn/{6MAINSY5.js → FL4W4VYN.js} +0 -1
  18. package/dist/cdn/GTLS44GI.js +2 -0
  19. package/dist/cdn/{SZOVY2QU.js → I6HNBTWY.js} +1 -1
  20. package/dist/cdn/JBHNHHWO.js +3 -0
  21. package/dist/cdn/{FX5JFRDL.js → JOFUPKIB.js} +1 -1
  22. package/dist/cdn/KUEOKIQR.js +2 -0
  23. package/dist/cdn/LKRAPK4A.js +165 -0
  24. package/dist/cdn/{6R6AY3D3.js → MODWHY3R.js} +2 -2
  25. package/dist/cdn/NXKKG5TK.js +2 -0
  26. package/dist/cdn/{2AXF774U.js → OBUZ7HBN.js} +1 -1
  27. package/dist/cdn/OIVRK7HT.js +2 -0
  28. package/dist/cdn/{HB5A5R2E.js → RUURNLTP.js} +1 -1
  29. package/dist/cdn/SWOXSJ62.js +2 -0
  30. package/dist/cdn/{LBVX2JYG.js → T537PKP4.js} +10 -7
  31. package/dist/cdn/{Y67XAMT4.js → TSZPHE7L.js} +2 -2
  32. package/dist/cdn/VAZNJSKA.js +16 -0
  33. package/dist/cdn/{V2P4AIGG.js → VMXLYWUK.js} +1 -1
  34. package/dist/cdn/{FB5DRKEB.js → VNQN5ZQO.js} +2 -2
  35. package/dist/cdn/WIDTPVSU.js +2 -0
  36. package/dist/cdn/{GM3QP65I.js → X2ZDYHCG.js} +18 -5
  37. package/dist/cdn/{P6OPJQMC.js → XER22VYQ.js} +1 -1
  38. package/dist/cdn/index.js +1 -1
  39. package/dist/cdn/main.css +1 -1
  40. package/dist/chunks/adapter.js +527 -522
  41. package/dist/chunks/arcgisKnowledgeGraph.js +3 -3
  42. package/dist/chunks/dataExplorationGraph.js +135 -119
  43. package/dist/chunks/data_explore_query_prompt.js +18 -5
  44. package/dist/chunks/generateLayerDescriptions.js +236 -209
  45. package/dist/chunks/helpGraph.js +4 -4
  46. package/dist/chunks/intent_prompt.js +0 -1
  47. package/dist/chunks/layerStylingGraph.js +10 -10
  48. package/dist/chunks/navigationGraph.js +27 -27
  49. package/dist/chunks/orchestrator.js +240 -201
  50. package/dist/chunks/slottableRequestUtils.js +3 -7
  51. package/dist/chunks/summarize_query_response_prompt.js +10 -7
  52. package/dist/components/arcgis-assistant/customElement.d.ts +15 -0
  53. package/dist/components/arcgis-assistant/customElement.js +227 -127
  54. package/dist/components/arcgis-assistant/index.js +2 -3
  55. package/dist/components/arcgis-assistant/types.d.ts +14 -1
  56. package/dist/components/arcgis-assistant-chat/customElement.d.ts +8 -2
  57. package/dist/components/arcgis-assistant-chat/customElement.js +7 -7
  58. package/dist/components/arcgis-assistant-chat-entry/customElement.d.ts +4 -1
  59. package/dist/components/arcgis-assistant-chat-entry/customElement.js +25 -18
  60. package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +4 -1
  61. package/dist/components/arcgis-assistant-interrupt/customElement.js +13 -9
  62. package/dist/components/arcgis-assistant-interrupt-preview/customElement.js +20 -0
  63. package/dist/components/arcgis-assistant-interrupt-preview/index.js +2 -0
  64. package/dist/components/arcgis-assistant-message/customElement.d.ts +23 -0
  65. package/dist/components/arcgis-assistant-message/customElement.js +28 -26
  66. package/dist/components/arcgis-assistant-message/index.d.ts +1 -0
  67. package/dist/components/arcgis-assistant-message/index.js +2 -0
  68. package/dist/components/arcgis-assistant-message-block/customElement.d.ts +1 -1
  69. package/dist/components/arcgis-assistant-message-block/customElement.js +18 -11
  70. package/dist/components/arcgis-assistant-message-block/index.js +1 -0
  71. package/dist/components/arcgis-assistant-message-feedback/customElement.d.ts +4 -1
  72. package/dist/components/arcgis-assistant-message-footer/customElement.d.ts +4 -1
  73. package/dist/components/arcgis-assistant-message-loading/customElement.d.ts +8 -1
  74. package/dist/components/arcgis-assistant-message-loading/customElement.js +8 -8
  75. package/dist/components/arcgis-assistant-message-loading/index.js +1 -0
  76. package/dist/components/arcgis-assistant-message-log/customElement.d.ts +4 -1
  77. package/dist/components/arcgis-assistant-message-read-aloud/customElement.d.ts +4 -1
  78. package/dist/components/arcgis-assistant-message-text/customElement.d.ts +4 -1
  79. package/dist/components/arcgis-assistant-speech-input/customElement.d.ts +6 -1
  80. package/dist/components/arcgis-assistant-suggested-prompts/customElement.d.ts +4 -1
  81. package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +8 -8
  82. package/dist/components/arcgis-assistant-user-message/customElement.d.ts +4 -1
  83. package/dist/components/arcgis-assistant-user-message/customElement.js +1 -1
  84. package/dist/docs/api.json +1 -1
  85. package/dist/docs/docs.json +1 -1
  86. package/dist/docs/vscode.html-custom-data.json +1 -1
  87. package/dist/docs/web-types.json +1 -1
  88. package/dist/index.d.ts +4 -0
  89. package/dist/loader.js +6 -5
  90. package/dist/types/lumina.d.ts +10 -4
  91. package/dist/types/preact.d.ts +11 -4
  92. package/dist/types/react.d.ts +12 -4
  93. package/dist/types/stencil.d.ts +10 -4
  94. package/dist/utils/index.d.ts +85 -42
  95. package/dist/utils/index.js +22 -18
  96. package/package.json +7 -7
  97. package/dist/cdn/7BCR6TUO.js +0 -2
  98. package/dist/cdn/7GH7VSB2.js +0 -2
  99. package/dist/cdn/7PLV4QH6.js +0 -2
  100. package/dist/cdn/DDLZOMUY.js +0 -2
  101. package/dist/cdn/EF453FJ2.js +0 -3
  102. package/dist/cdn/METXWS7V.js +0 -166
  103. package/dist/cdn/MH5RPXHM.js +0 -2
  104. package/dist/cdn/NVI3I46B.js +0 -2
  105. package/dist/cdn/OAVEHGB6.js +0 -2
  106. package/dist/cdn/QR54T33D.js +0 -2
  107. package/dist/cdn/SXDLXCIM.js +0 -2
  108. package/dist/cdn/U3QQW6VA.js +0 -16
  109. package/dist/cdn/USMDJUFS.js +0 -2
  110. package/dist/cdn/Y333DGV6.js +0 -2
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"];
package/dist/loader.js CHANGED
@@ -2,21 +2,22 @@
2
2
  import { r as e } from "./chunks/runtime.js";
3
3
  import { makeDefineCustomElements as s } from "@arcgis/lumina";
4
4
  const n = s(e, {
5
- "arcgis-assistant": [() => import("./components/arcgis-assistant/customElement.js"), "_messages:,awaitingResponse:,awaitingResponseStep:,copyEnabled,description,entryMessage,feedbackEnabled,heading,interrupt:,keepSuggestedPrompts,logEnabled,messages:,orchestrator:,readAloudEnabled,referenceElement,suggestedPrompts:,voiceInputEnabled;clearChatHistory,submitMessage;cancelInterrupt,register,submitInterrupt"],
5
+ "arcgis-assistant": [() => import("./components/arcgis-assistant/customElement.js"), "_messages:,assistantAvatarEnabled,awaitingResponse:,awaitingResponseStep:,copyEnabled,description,entryMessage,feedbackEnabled,heading,interrupt:,keepSuggestedPrompts,logEnabled,messages:,orchestrator:,readAloudEnabled,referenceElement,suggestedPrompts:,voiceInputEnabled;clearChatHistory,submitMessage;cancelInterrupt,register,submitInterrupt"],
6
6
  "arcgis-assistant-agent": [() => import("./components/arcgis-assistant-agent/customElement.js"), "agent:,context:;getContext"],
7
7
  "arcgis-assistant-data-exploration-agent": [() => import("./components/arcgis-assistant-data-exploration-agent/customElement.js"), "referenceElement;;getContext"],
8
8
  "arcgis-assistant-help-agent": [() => import("./components/arcgis-assistant-help-agent/customElement.js"), "referenceElement;;getContext"],
9
9
  "arcgis-assistant-knowledge-agent": [() => import("./components/arcgis-assistant-knowledge-agent/customElement.js"), "context:,referenceElement,serviceUrl;getContext"],
10
10
  "arcgis-assistant-layer-styling-agent": [() => import("./components/arcgis-assistant-layer-styling-agent/customElement.js"), "referenceElement;;getContext"],
11
11
  "arcgis-assistant-navigation-agent": [() => import("./components/arcgis-assistant-navigation-agent/customElement.js"), "referenceElement;;getContext"],
12
- "arcgis-assistant-chat": [() => import("./components/arcgis-assistant-chat/customElement.js"), "loading,messages:"],
13
- "arcgis-assistant-chat-entry": [() => import("./components/arcgis-assistant-chat-entry/customElement.js"), "_messages:,awaitingResponse,entryPlaceholder,inputValue,keyboardShortcutsDisabled,messages:,status,voiceInputEnabled;submitMessage"],
12
+ "arcgis-assistant-chat": [() => import("./components/arcgis-assistant-chat/customElement.js"), "interrupt:,loading,messages:"],
13
+ "arcgis-assistant-chat-entry": [() => import("./components/arcgis-assistant-chat-entry/customElement.js"), "_messages:,awaitingResponse,disabled,entryPlaceholder,inputValue,keyboardShortcutsDisabled,messages:,status,voiceInputEnabled;submitMessage"],
14
14
  "arcgis-assistant-interrupt": [() => import("./components/arcgis-assistant-interrupt/customElement.js"), "_messages:,message,options:,type"],
15
- "arcgis-assistant-message": [() => import("./components/arcgis-assistant-message/customElement.js"), "copyEnabled,feedbackEnabled,footerDisabled,logEnabled,message:,readAloudEnabled"],
15
+ "arcgis-assistant-interrupt-preview": [() => import("./components/arcgis-assistant-interrupt-preview/customElement.js"), "interrupts:"],
16
+ "arcgis-assistant-message": [() => import("./components/arcgis-assistant-message/customElement.js"), "assistantAvatarEnabled,copyEnabled,feedbackEnabled,footerDisabled,logEnabled,message:,readAloudEnabled"],
16
17
  "arcgis-assistant-message-block": [() => import("./components/arcgis-assistant-message-block/customElement.js"), "block:"],
17
18
  "arcgis-assistant-message-feedback": [() => import("./components/arcgis-assistant-message-feedback/customElement.js"), "_messages:,feedbackEnabled,message:"],
18
19
  "arcgis-assistant-message-footer": [() => import("./components/arcgis-assistant-message-footer/customElement.js"), "_messages:,copyEnabled,feedbackEnabled,logEnabled,message:,readAloudEnabled"],
19
- "arcgis-assistant-message-loading": [() => import("./components/arcgis-assistant-message-loading/customElement.js"), "loading,loadingMessage"],
20
+ "arcgis-assistant-message-loading": [() => import("./components/arcgis-assistant-message-loading/customElement.js"), "assistantAvatarEnabled,interrupts:,loading,loadingMessage"],
20
21
  "arcgis-assistant-message-log": [() => import("./components/arcgis-assistant-message-log/customElement.js"), "log:,logEnabled,showLog"],
21
22
  "arcgis-assistant-message-read-aloud": [() => import("./components/arcgis-assistant-message-read-aloud/customElement.js"), "_messages:,message:,readAloudEnabled"],
22
23
  "arcgis-assistant-message-text": [() => import("./components/arcgis-assistant-message-text/customElement.js"), "content"],
@@ -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";
@@ -21,7 +22,7 @@ import type { ArcgisAssistantSuggestedPrompts } from "../components/arcgis-assis
21
22
  import type { ArcgisAssistantUserMessage } from "../components/arcgis-assistant-user-message/customElement.js";
22
23
  import type { h, EventHandler } from "@arcgis/lumina";
23
24
 
24
- interface LuminaArcgisAssistant extends Partial<Pick<ArcgisAssistant, "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "suggestedPrompts">>, h.JSX.HTMLAttributes<ArcgisAssistant> {
25
+ interface LuminaArcgisAssistant extends Partial<Pick<ArcgisAssistant, "assistantAvatarEnabled" | "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "suggestedPrompts">>, h.JSX.HTMLAttributes<ArcgisAssistant> {
25
26
  onarcgisCancel?: EventHandler<ArcgisAssistant["arcgisCancel"]>;
26
27
  onarcgisError?: EventHandler<ArcgisAssistant["arcgisError"]>;
27
28
  onarcgisFeedback?: EventHandler<ArcgisAssistant["arcgisFeedback"]>;
@@ -30,6 +31,7 @@ interface LuminaArcgisAssistant extends Partial<Pick<ArcgisAssistant, "copyEnabl
30
31
  onarcgisInterruptSubmit?: EventHandler<ArcgisAssistant["arcgisInterruptSubmit"]>;
31
32
  onarcgisPromptSelect?: EventHandler<ArcgisAssistant["arcgisPromptSelect"]>;
32
33
  onarcgisReady?: EventHandler<ArcgisAssistant["arcgisReady"]>;
34
+ onarcgisResponse?: EventHandler<ArcgisAssistant["arcgisResponse"]>;
33
35
  onarcgisSlottableRequest?: EventHandler<ArcgisAssistant["arcgisSlottableRequest"]>;
34
36
  onarcgisSubmit?: EventHandler<ArcgisAssistant["arcgisSubmit"]>;
35
37
  }
@@ -52,10 +54,10 @@ interface LuminaArcgisAssistantLayerStylingAgent extends Partial<Pick<ArcgisAssi
52
54
  interface LuminaArcgisAssistantNavigationAgent extends Partial<Pick<ArcgisAssistantNavigationAgent, "referenceElement">>, h.JSX.HTMLAttributes<ArcgisAssistantNavigationAgent> {
53
55
  }
54
56
 
55
- interface LuminaArcgisAssistantChat extends Partial<Pick<ArcgisAssistantChat, "loading" | "messages">>, h.JSX.HTMLAttributes<ArcgisAssistantChat> {
57
+ interface LuminaArcgisAssistantChat extends Partial<Pick<ArcgisAssistantChat, "interrupt" | "loading" | "messages">>, h.JSX.HTMLAttributes<ArcgisAssistantChat> {
56
58
  }
57
59
 
58
- interface LuminaArcgisAssistantChatEntry extends Partial<Pick<ArcgisAssistantChatEntry, "awaitingResponse" | "entryPlaceholder" | "inputValue" | "keyboardShortcutsDisabled" | "messages" | "status" | "voiceInputEnabled">>, h.JSX.HTMLAttributes<ArcgisAssistantChatEntry> {
60
+ interface LuminaArcgisAssistantChatEntry extends Partial<Pick<ArcgisAssistantChatEntry, "awaitingResponse" | "disabled" | "entryPlaceholder" | "inputValue" | "keyboardShortcutsDisabled" | "messages" | "status" | "voiceInputEnabled">>, h.JSX.HTMLAttributes<ArcgisAssistantChatEntry> {
59
61
  onarcgisCancel?: EventHandler<ArcgisAssistantChatEntry["arcgisCancel"]>;
60
62
  onarcgisSubmit?: EventHandler<ArcgisAssistantChatEntry["arcgisSubmit"]>;
61
63
  }
@@ -65,6 +67,9 @@ interface LuminaArcgisAssistantInterrupt extends Partial<Pick<ArcgisAssistantInt
65
67
  onarcgisSubmit?: EventHandler<ArcgisAssistantInterrupt["arcgisSubmit"]>;
66
68
  }
67
69
 
70
+ interface LuminaArcgisAssistantMessage extends Partial<Pick<ArcgisAssistantMessage, "assistantAvatarEnabled" | "copyEnabled" | "feedbackEnabled" | "footerDisabled" | "logEnabled" | "message" | "readAloudEnabled">>, h.JSX.HTMLAttributes<ArcgisAssistantMessage> {
71
+ }
72
+
68
73
  interface LuminaArcgisAssistantMessageBlock extends Partial<Pick<ArcgisAssistantMessageBlock, "block">>, h.JSX.HTMLAttributes<ArcgisAssistantMessageBlock> {
69
74
  }
70
75
 
@@ -75,7 +80,7 @@ interface LuminaArcgisAssistantMessageFeedback extends Partial<Pick<ArcgisAssist
75
80
  interface LuminaArcgisAssistantMessageFooter extends Partial<Pick<ArcgisAssistantMessageFooter, "copyEnabled" | "feedbackEnabled" | "logEnabled" | "message" | "readAloudEnabled">>, h.JSX.HTMLAttributes<ArcgisAssistantMessageFooter> {
76
81
  }
77
82
 
78
- interface LuminaArcgisAssistantMessageLoading extends Partial<Pick<ArcgisAssistantMessageLoading, "loading" | "loadingMessage">>, h.JSX.HTMLAttributes<ArcgisAssistantMessageLoading> {
83
+ interface LuminaArcgisAssistantMessageLoading extends Partial<Pick<ArcgisAssistantMessageLoading, "assistantAvatarEnabled" | "interrupts" | "loading" | "loadingMessage">>, h.JSX.HTMLAttributes<ArcgisAssistantMessageLoading> {
79
84
  }
80
85
 
81
86
  interface LuminaArcgisAssistantMessageLog extends Partial<Pick<ArcgisAssistantMessageLog, "log" | "logEnabled" | "showLog">>, h.JSX.HTMLAttributes<ArcgisAssistantMessageLog> {
@@ -117,6 +122,7 @@ declare module "@arcgis/lumina" {
117
122
  "arcgis-assistant-chat": LuminaArcgisAssistantChat;
118
123
  "arcgis-assistant-chat-entry": LuminaArcgisAssistantChatEntry;
119
124
  "arcgis-assistant-interrupt": LuminaArcgisAssistantInterrupt;
125
+ "arcgis-assistant-message": LuminaArcgisAssistantMessage;
120
126
  "arcgis-assistant-message-block": LuminaArcgisAssistantMessageBlock;
121
127
  "arcgis-assistant-message-feedback": LuminaArcgisAssistantMessageFeedback;
122
128
  "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";
@@ -22,7 +23,7 @@ import type { ArcgisAssistantUserMessage } from "../components/arcgis-assistant-
22
23
  import { HTMLAttributes } from "preact";
23
24
  import type { EventHandler } from "@arcgis/lumina";
24
25
 
25
- interface PreactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "suggestedPrompts">>, HTMLAttributes<ArcgisAssistant> {
26
+ interface PreactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "assistantAvatarEnabled" | "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "suggestedPrompts">>, HTMLAttributes<ArcgisAssistant> {
26
27
  onarcgisCancel?: EventHandler<ArcgisAssistant["arcgisCancel"]>;
27
28
  onarcgisError?: EventHandler<ArcgisAssistant["arcgisError"]>;
28
29
  onarcgisFeedback?: EventHandler<ArcgisAssistant["arcgisFeedback"]>;
@@ -31,6 +32,7 @@ interface PreactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "copyEnabl
31
32
  onarcgisInterruptSubmit?: EventHandler<ArcgisAssistant["arcgisInterruptSubmit"]>;
32
33
  onarcgisPromptSelect?: EventHandler<ArcgisAssistant["arcgisPromptSelect"]>;
33
34
  onarcgisReady?: EventHandler<ArcgisAssistant["arcgisReady"]>;
35
+ onarcgisResponse?: EventHandler<ArcgisAssistant["arcgisResponse"]>;
34
36
  onarcgisSlottableRequest?: EventHandler<ArcgisAssistant["arcgisSlottableRequest"]>;
35
37
  onarcgisSubmit?: EventHandler<ArcgisAssistant["arcgisSubmit"]>;
36
38
  }
@@ -53,10 +55,10 @@ interface PreactArcgisAssistantLayerStylingAgent extends Partial<Pick<ArcgisAssi
53
55
  interface PreactArcgisAssistantNavigationAgent extends Partial<Pick<ArcgisAssistantNavigationAgent, "referenceElement">>, HTMLAttributes<ArcgisAssistantNavigationAgent> {
54
56
  }
55
57
 
56
- interface PreactArcgisAssistantChat extends Partial<Pick<ArcgisAssistantChat, "loading" | "messages">>, HTMLAttributes<ArcgisAssistantChat> {
58
+ interface PreactArcgisAssistantChat extends Partial<Pick<ArcgisAssistantChat, "interrupt" | "loading" | "messages">>, HTMLAttributes<ArcgisAssistantChat> {
57
59
  }
58
60
 
59
- interface PreactArcgisAssistantChatEntry extends Partial<Pick<ArcgisAssistantChatEntry, "awaitingResponse" | "entryPlaceholder" | "inputValue" | "keyboardShortcutsDisabled" | "messages" | "status" | "voiceInputEnabled">>, HTMLAttributes<ArcgisAssistantChatEntry> {
61
+ interface PreactArcgisAssistantChatEntry extends Partial<Pick<ArcgisAssistantChatEntry, "awaitingResponse" | "disabled" | "entryPlaceholder" | "inputValue" | "keyboardShortcutsDisabled" | "messages" | "status" | "voiceInputEnabled">>, HTMLAttributes<ArcgisAssistantChatEntry> {
60
62
  onarcgisCancel?: EventHandler<ArcgisAssistantChatEntry["arcgisCancel"]>;
61
63
  onarcgisSubmit?: EventHandler<ArcgisAssistantChatEntry["arcgisSubmit"]>;
62
64
  }
@@ -66,6 +68,9 @@ interface PreactArcgisAssistantInterrupt extends Partial<Pick<ArcgisAssistantInt
66
68
  onarcgisSubmit?: EventHandler<ArcgisAssistantInterrupt["arcgisSubmit"]>;
67
69
  }
68
70
 
71
+ interface PreactArcgisAssistantMessage extends Partial<Pick<ArcgisAssistantMessage, "assistantAvatarEnabled" | "copyEnabled" | "feedbackEnabled" | "footerDisabled" | "logEnabled" | "message" | "readAloudEnabled">>, HTMLAttributes<ArcgisAssistantMessage> {
72
+ }
73
+
69
74
  interface PreactArcgisAssistantMessageBlock extends Partial<Pick<ArcgisAssistantMessageBlock, "block">>, HTMLAttributes<ArcgisAssistantMessageBlock> {
70
75
  }
71
76
 
@@ -76,7 +81,7 @@ interface PreactArcgisAssistantMessageFeedback extends Partial<Pick<ArcgisAssist
76
81
  interface PreactArcgisAssistantMessageFooter extends Partial<Pick<ArcgisAssistantMessageFooter, "copyEnabled" | "feedbackEnabled" | "logEnabled" | "message" | "readAloudEnabled">>, HTMLAttributes<ArcgisAssistantMessageFooter> {
77
82
  }
78
83
 
79
- interface PreactArcgisAssistantMessageLoading extends Partial<Pick<ArcgisAssistantMessageLoading, "loading" | "loadingMessage">>, HTMLAttributes<ArcgisAssistantMessageLoading> {
84
+ interface PreactArcgisAssistantMessageLoading extends Partial<Pick<ArcgisAssistantMessageLoading, "assistantAvatarEnabled" | "interrupts" | "loading" | "loadingMessage">>, HTMLAttributes<ArcgisAssistantMessageLoading> {
80
85
  }
81
86
 
82
87
  interface PreactArcgisAssistantMessageLog extends Partial<Pick<ArcgisAssistantMessageLog, "log" | "logEnabled" | "showLog">>, HTMLAttributes<ArcgisAssistantMessageLog> {
@@ -118,6 +123,7 @@ declare module 'preact' {
118
123
  "arcgis-assistant-chat": PreactArcgisAssistantChat;
119
124
  "arcgis-assistant-chat-entry": PreactArcgisAssistantChatEntry;
120
125
  "arcgis-assistant-interrupt": PreactArcgisAssistantInterrupt;
126
+ "arcgis-assistant-message": PreactArcgisAssistantMessage;
121
127
  "arcgis-assistant-message-block": PreactArcgisAssistantMessageBlock;
122
128
  "arcgis-assistant-message-feedback": PreactArcgisAssistantMessageFeedback;
123
129
  "arcgis-assistant-message-footer": PreactArcgisAssistantMessageFooter;
@@ -142,6 +148,7 @@ declare module 'preact' {
142
148
  "arcgis-assistant-chat": PreactArcgisAssistantChat;
143
149
  "arcgis-assistant-chat-entry": PreactArcgisAssistantChatEntry;
144
150
  "arcgis-assistant-interrupt": PreactArcgisAssistantInterrupt;
151
+ "arcgis-assistant-message": PreactArcgisAssistantMessage;
145
152
  "arcgis-assistant-message-block": PreactArcgisAssistantMessageBlock;
146
153
  "arcgis-assistant-message-feedback": PreactArcgisAssistantMessageFeedback;
147
154
  "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";
@@ -22,7 +23,7 @@ import type { ArcgisAssistantUserMessage } from "../components/arcgis-assistant-
22
23
  import type { HTMLProps } from 'react';
23
24
  import type { EventHandler } from "@arcgis/lumina";
24
25
 
25
- interface ReactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "suggestedPrompts">>, HTMLProps<ArcgisAssistant> {
26
+ interface ReactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "assistantAvatarEnabled" | "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "suggestedPrompts">>, HTMLProps<ArcgisAssistant> {
26
27
  onarcgisCancel?: EventHandler<ArcgisAssistant["arcgisCancel"]>;
27
28
  onarcgisError?: EventHandler<ArcgisAssistant["arcgisError"]>;
28
29
  onarcgisFeedback?: EventHandler<ArcgisAssistant["arcgisFeedback"]>;
@@ -31,6 +32,7 @@ interface ReactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "copyEnable
31
32
  onarcgisInterruptSubmit?: EventHandler<ArcgisAssistant["arcgisInterruptSubmit"]>;
32
33
  onarcgisPromptSelect?: EventHandler<ArcgisAssistant["arcgisPromptSelect"]>;
33
34
  onarcgisReady?: EventHandler<ArcgisAssistant["arcgisReady"]>;
35
+ onarcgisResponse?: EventHandler<ArcgisAssistant["arcgisResponse"]>;
34
36
  onarcgisSlottableRequest?: EventHandler<ArcgisAssistant["arcgisSlottableRequest"]>;
35
37
  onarcgisSubmit?: EventHandler<ArcgisAssistant["arcgisSubmit"]>;
36
38
  }
@@ -53,10 +55,10 @@ interface ReactArcgisAssistantLayerStylingAgent extends Partial<Pick<ArcgisAssis
53
55
  interface ReactArcgisAssistantNavigationAgent extends Partial<Pick<ArcgisAssistantNavigationAgent, "referenceElement">>, HTMLProps<ArcgisAssistantNavigationAgent> {
54
56
  }
55
57
 
56
- interface ReactArcgisAssistantChat extends Partial<Pick<ArcgisAssistantChat, "loading" | "messages">>, HTMLProps<ArcgisAssistantChat> {
58
+ interface ReactArcgisAssistantChat extends Partial<Pick<ArcgisAssistantChat, "interrupt" | "loading" | "messages">>, HTMLProps<ArcgisAssistantChat> {
57
59
  }
58
60
 
59
- interface ReactArcgisAssistantChatEntry extends Partial<Pick<ArcgisAssistantChatEntry, "awaitingResponse" | "entryPlaceholder" | "inputValue" | "keyboardShortcutsDisabled" | "messages" | "status" | "voiceInputEnabled">>, HTMLProps<ArcgisAssistantChatEntry> {
61
+ interface ReactArcgisAssistantChatEntry extends Partial<Pick<ArcgisAssistantChatEntry, "awaitingResponse" | "disabled" | "entryPlaceholder" | "inputValue" | "keyboardShortcutsDisabled" | "messages" | "status" | "voiceInputEnabled">>, HTMLProps<ArcgisAssistantChatEntry> {
60
62
  onarcgisCancel?: EventHandler<ArcgisAssistantChatEntry["arcgisCancel"]>;
61
63
  onarcgisSubmit?: EventHandler<ArcgisAssistantChatEntry["arcgisSubmit"]>;
62
64
  }
@@ -66,6 +68,9 @@ interface ReactArcgisAssistantInterrupt extends Partial<Pick<ArcgisAssistantInte
66
68
  onarcgisSubmit?: EventHandler<ArcgisAssistantInterrupt["arcgisSubmit"]>;
67
69
  }
68
70
 
71
+ interface ReactArcgisAssistantMessage extends Partial<Pick<ArcgisAssistantMessage, "assistantAvatarEnabled" | "copyEnabled" | "feedbackEnabled" | "footerDisabled" | "logEnabled" | "message" | "readAloudEnabled">>, HTMLProps<ArcgisAssistantMessage> {
72
+ }
73
+
69
74
  interface ReactArcgisAssistantMessageBlock extends Partial<Pick<ArcgisAssistantMessageBlock, "block">>, HTMLProps<ArcgisAssistantMessageBlock> {
70
75
  }
71
76
 
@@ -76,7 +81,7 @@ interface ReactArcgisAssistantMessageFeedback extends Partial<Pick<ArcgisAssista
76
81
  interface ReactArcgisAssistantMessageFooter extends Partial<Pick<ArcgisAssistantMessageFooter, "copyEnabled" | "feedbackEnabled" | "logEnabled" | "message" | "readAloudEnabled">>, HTMLProps<ArcgisAssistantMessageFooter> {
77
82
  }
78
83
 
79
- interface ReactArcgisAssistantMessageLoading extends Partial<Pick<ArcgisAssistantMessageLoading, "loading" | "loadingMessage">>, HTMLProps<ArcgisAssistantMessageLoading> {
84
+ interface ReactArcgisAssistantMessageLoading extends Partial<Pick<ArcgisAssistantMessageLoading, "assistantAvatarEnabled" | "interrupts" | "loading" | "loadingMessage">>, HTMLProps<ArcgisAssistantMessageLoading> {
80
85
  }
81
86
 
82
87
  interface ReactArcgisAssistantMessageLog extends Partial<Pick<ArcgisAssistantMessageLog, "log" | "logEnabled" | "showLog">>, HTMLProps<ArcgisAssistantMessageLog> {
@@ -118,6 +123,7 @@ declare module "react" {
118
123
  "arcgis-assistant-chat": ReactArcgisAssistantChat;
119
124
  "arcgis-assistant-chat-entry": ReactArcgisAssistantChatEntry;
120
125
  "arcgis-assistant-interrupt": ReactArcgisAssistantInterrupt;
126
+ "arcgis-assistant-message": ReactArcgisAssistantMessage;
121
127
  "arcgis-assistant-message-block": ReactArcgisAssistantMessageBlock;
122
128
  "arcgis-assistant-message-feedback": ReactArcgisAssistantMessageFeedback;
123
129
  "arcgis-assistant-message-footer": ReactArcgisAssistantMessageFooter;
@@ -144,6 +150,7 @@ declare module "react/jsx-runtime" {
144
150
  "arcgis-assistant-chat": ReactArcgisAssistantChat;
145
151
  "arcgis-assistant-chat-entry": ReactArcgisAssistantChatEntry;
146
152
  "arcgis-assistant-interrupt": ReactArcgisAssistantInterrupt;
153
+ "arcgis-assistant-message": ReactArcgisAssistantMessage;
147
154
  "arcgis-assistant-message-block": ReactArcgisAssistantMessageBlock;
148
155
  "arcgis-assistant-message-feedback": ReactArcgisAssistantMessageFeedback;
149
156
  "arcgis-assistant-message-footer": ReactArcgisAssistantMessageFooter;
@@ -170,6 +177,7 @@ declare module "react/jsx-dev-runtime" {
170
177
  "arcgis-assistant-chat": ReactArcgisAssistantChat;
171
178
  "arcgis-assistant-chat-entry": ReactArcgisAssistantChatEntry;
172
179
  "arcgis-assistant-interrupt": ReactArcgisAssistantInterrupt;
180
+ "arcgis-assistant-message": ReactArcgisAssistantMessage;
173
181
  "arcgis-assistant-message-block": ReactArcgisAssistantMessageBlock;
174
182
  "arcgis-assistant-message-feedback": ReactArcgisAssistantMessageFeedback;
175
183
  "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";
@@ -22,7 +23,7 @@ import type { ArcgisAssistantUserMessage } from "../components/arcgis-assistant-
22
23
  import { JSXBase as StencilJsx } from "@stencil/core/internal";
23
24
  import type { EventHandler } from "@arcgis/lumina";
24
25
 
25
- interface StencilArcgisAssistant extends Partial<Pick<ArcgisAssistant, "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "suggestedPrompts">>, StencilJsx.HTMLAttributes<ArcgisAssistant> {
26
+ interface StencilArcgisAssistant extends Partial<Pick<ArcgisAssistant, "assistantAvatarEnabled" | "copyEnabled" | "description" | "entryMessage" | "feedbackEnabled" | "heading" | "keepSuggestedPrompts" | "logEnabled" | "messages" | "referenceElement" | "suggestedPrompts">>, StencilJsx.HTMLAttributes<ArcgisAssistant> {
26
27
  onArcgisCancel?: EventHandler<ArcgisAssistant["arcgisCancel"]>;
27
28
  onArcgisError?: EventHandler<ArcgisAssistant["arcgisError"]>;
28
29
  onArcgisFeedback?: EventHandler<ArcgisAssistant["arcgisFeedback"]>;
@@ -31,6 +32,7 @@ interface StencilArcgisAssistant extends Partial<Pick<ArcgisAssistant, "copyEnab
31
32
  onArcgisInterruptSubmit?: EventHandler<ArcgisAssistant["arcgisInterruptSubmit"]>;
32
33
  onArcgisPromptSelect?: EventHandler<ArcgisAssistant["arcgisPromptSelect"]>;
33
34
  onArcgisReady?: EventHandler<ArcgisAssistant["arcgisReady"]>;
35
+ onArcgisResponse?: EventHandler<ArcgisAssistant["arcgisResponse"]>;
34
36
  onArcgisSlottableRequest?: EventHandler<ArcgisAssistant["arcgisSlottableRequest"]>;
35
37
  onArcgisSubmit?: EventHandler<ArcgisAssistant["arcgisSubmit"]>;
36
38
  }
@@ -53,10 +55,10 @@ interface StencilArcgisAssistantLayerStylingAgent extends Partial<Pick<ArcgisAss
53
55
  interface StencilArcgisAssistantNavigationAgent extends Partial<Pick<ArcgisAssistantNavigationAgent, "referenceElement">>, StencilJsx.HTMLAttributes<ArcgisAssistantNavigationAgent> {
54
56
  }
55
57
 
56
- interface StencilArcgisAssistantChat extends Partial<Pick<ArcgisAssistantChat, "loading" | "messages">>, StencilJsx.HTMLAttributes<ArcgisAssistantChat> {
58
+ interface StencilArcgisAssistantChat extends Partial<Pick<ArcgisAssistantChat, "interrupt" | "loading" | "messages">>, StencilJsx.HTMLAttributes<ArcgisAssistantChat> {
57
59
  }
58
60
 
59
- interface StencilArcgisAssistantChatEntry extends Partial<Pick<ArcgisAssistantChatEntry, "awaitingResponse" | "entryPlaceholder" | "inputValue" | "keyboardShortcutsDisabled" | "messages" | "status" | "voiceInputEnabled">>, StencilJsx.HTMLAttributes<ArcgisAssistantChatEntry> {
61
+ interface StencilArcgisAssistantChatEntry extends Partial<Pick<ArcgisAssistantChatEntry, "awaitingResponse" | "disabled" | "entryPlaceholder" | "inputValue" | "keyboardShortcutsDisabled" | "messages" | "status" | "voiceInputEnabled">>, StencilJsx.HTMLAttributes<ArcgisAssistantChatEntry> {
60
62
  onArcgisCancel?: EventHandler<ArcgisAssistantChatEntry["arcgisCancel"]>;
61
63
  onArcgisSubmit?: EventHandler<ArcgisAssistantChatEntry["arcgisSubmit"]>;
62
64
  }
@@ -66,6 +68,9 @@ interface StencilArcgisAssistantInterrupt extends Partial<Pick<ArcgisAssistantIn
66
68
  onArcgisSubmit?: EventHandler<ArcgisAssistantInterrupt["arcgisSubmit"]>;
67
69
  }
68
70
 
71
+ interface StencilArcgisAssistantMessage extends Partial<Pick<ArcgisAssistantMessage, "assistantAvatarEnabled" | "copyEnabled" | "feedbackEnabled" | "footerDisabled" | "logEnabled" | "message" | "readAloudEnabled">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessage> {
72
+ }
73
+
69
74
  interface StencilArcgisAssistantMessageBlock extends Partial<Pick<ArcgisAssistantMessageBlock, "block">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessageBlock> {
70
75
  }
71
76
 
@@ -76,7 +81,7 @@ interface StencilArcgisAssistantMessageFeedback extends Partial<Pick<ArcgisAssis
76
81
  interface StencilArcgisAssistantMessageFooter extends Partial<Pick<ArcgisAssistantMessageFooter, "copyEnabled" | "feedbackEnabled" | "logEnabled" | "message" | "readAloudEnabled">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessageFooter> {
77
82
  }
78
83
 
79
- interface StencilArcgisAssistantMessageLoading extends Partial<Pick<ArcgisAssistantMessageLoading, "loading" | "loadingMessage">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessageLoading> {
84
+ interface StencilArcgisAssistantMessageLoading extends Partial<Pick<ArcgisAssistantMessageLoading, "assistantAvatarEnabled" | "interrupts" | "loading" | "loadingMessage">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessageLoading> {
80
85
  }
81
86
 
82
87
  interface StencilArcgisAssistantMessageLog extends Partial<Pick<ArcgisAssistantMessageLog, "log" | "logEnabled" | "showLog">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessageLog> {
@@ -116,6 +121,7 @@ interface ExposedElements {
116
121
  "arcgis-assistant-chat": StencilArcgisAssistantChat;
117
122
  "arcgis-assistant-chat-entry": StencilArcgisAssistantChatEntry;
118
123
  "arcgis-assistant-interrupt": StencilArcgisAssistantInterrupt;
124
+ "arcgis-assistant-message": StencilArcgisAssistantMessage;
119
125
  "arcgis-assistant-message-block": StencilArcgisAssistantMessageBlock;
120
126
  "arcgis-assistant-message-feedback": StencilArcgisAssistantMessageFeedback;
121
127
  "arcgis-assistant-message-footer": StencilArcgisAssistantMessageFooter;
@@ -8,8 +8,11 @@ import type { AnnotationRoot, BaseChannel, StateGraph } from "@langchain/langgra
8
8
  import type { ChatOpenAI } from "@langchain/openai";
9
9
  import type { ZodType } from "zod";
10
10
 
11
- export { type CustomConfigurableType } from "../orchestrator";
12
- export { Orchestrator } from "../orchestrator";
11
+ export { type CustomConfigurableType } from "../orchestrator.js";
12
+ export { Orchestrator } from "../orchestrator.js";
13
+
14
+ /** @internal */
15
+ export type ChatModelTier = "advanced" | "default" | "fast";
13
16
 
14
17
  /**
15
18
  * Represents the chat message history between the user and the assistant, including all messages sent and received during the conversation.
@@ -146,6 +149,8 @@ export type ArcgisPromptOptions = {
146
149
  * - `advanced` - An advanced model tier that may provide improved accuracy or capabilities compared to
147
150
  * the default tier. However, it may also come with increased cost and slower performance. At
148
151
  * JS SDK v5.0, this model tier corresponds to GPT-5.2 model.
152
+ * - `fast` - A lower cost model suitable for tasks like classification and summarization. This tier may have limitations in terms of response length and complexity.
153
+ * New at JS SDK v5.1, this model tier corresponds to GPT-5.4-nano model.
149
154
  *
150
155
  * The specific models available in each tier may evolve over time as new models are released and existing
151
156
  * models are retired. The dates models are retired depends on the model provider and therefore may not
@@ -172,6 +177,8 @@ export type ArcgisPromptOptions = {
172
177
  * and produce more accurate and relevant responses.
173
178
  */
174
179
  messages?: ChatHistory;
180
+ /** Abort signal for cooperative run cancellation. */
181
+ abortSignal?: AbortSignal;
175
182
  /**
176
183
  * Input variables for the prompt. This can include any relevant variables related to the context
177
184
  * provided to the agent. This may be necessary for determining tool parameters or for providing additional
@@ -319,7 +326,7 @@ export function cosineSimilarity(vectorA: number[], vectorB: number[]): number;
319
326
  /**
320
327
  * The suggestions emitted by the agent to the user interface.
321
328
  *
322
- * @internal
329
+ * @since 5.1
323
330
  */
324
331
  export type UXSuggestion = {
325
332
  /** The type of suggestion being made. */
@@ -331,32 +338,41 @@ export type UXSuggestion = {
331
338
  /**
332
339
  * Execution status returned by an agent run.
333
340
  *
334
- * @internal
341
+ * @since 5.1
335
342
  */
336
343
  export type AgentStatus = "failed" | "success" | "unknown";
337
344
 
338
345
  /**
339
346
  * Summary of a previously executed agent step.
340
347
  *
341
- * @internal
348
+ * @since 5.1
342
349
  */
343
350
  export interface PriorStep {
351
+ /** The agent that handled the step. */
344
352
  agentId: string;
353
+ /** The task assigned to the agent for this step. */
345
354
  assignedTask: string;
355
+ /** A brief summary of the step's execution. */
346
356
  summary: string;
357
+ /** The execution status of the step. */
347
358
  status: AgentStatus;
348
359
  }
349
360
 
350
361
  /**
351
362
  * Runtime execution context available to agent graph nodes and tools.
352
363
  *
353
- * @internal
364
+ * @since 5.1
354
365
  */
355
366
  export interface AgentExecutionContext<TState extends Record<string, unknown> = Record<string, unknown>> {
367
+ /** The user's original request. */
356
368
  userRequest: string;
369
+ /** The task assigned to the agent. */
357
370
  assignedTask: string;
371
+ /** The message history for the run */
358
372
  messages: ChatHistory;
373
+ /** Previous steps */
359
374
  priorSteps: PriorStep[];
375
+ /** Shared state available to the agent. */
360
376
  sharedState: SharedState<TState>;
361
377
  }
362
378
 
@@ -427,6 +443,9 @@ export const createWebmapEmbeddings: (mapView: MapView) => Promise<{
427
443
  }>;
428
444
  }>;
429
445
 
446
+ /** @internal */
447
+ export type GetContext<TContext extends Record<string, unknown>> = () => Promise<TContext> | TContext;
448
+
430
449
  /** @internal */
431
450
  export interface AgentWithContext<TContext extends Record<string, unknown> = Record<string, unknown>> {
432
451
  agent: AgentRegistration;
@@ -438,34 +457,9 @@ export interface AgentWithContext<TContext extends Record<string, unknown> = Rec
438
457
  }
439
458
 
440
459
  /** @internal */
441
- export function createAgentRuntimeState<TState extends Record<string, unknown> = Record<string, unknown>>(): StatelessAgentBaseState<TState>;
442
-
443
- /** @internal */
444
- export function createAgentRuntimeStateWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>>(): StatefulAgentBaseState<TState>;
445
-
446
- /**
447
- * @param suggestion
448
- * @param config
449
- * @internal
450
- */
451
- export function sendUXSuggestion(suggestion: UXSuggestion, config?: RunnableConfig): Promise<void>;
460
+ export type AgentExecutionContextWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>> = AgentExecutionContext<TState>;
452
461
 
453
462
  /** @internal */
454
- export type SharedStatePatch<T extends Record<string, unknown> = Record<string, unknown>> = {
455
- [K in keyof T]?: SharedStatePatchEntry<T[K]>;
456
- };
457
-
458
- /**
459
- * @param tier
460
- * @param temperature
461
- * @internal
462
- */
463
- export function createChatModel(tier?: ChatModelTier, temperature?: number): Promise<ChatOpenAI>;
464
-
465
- export type ChatModelTier = "advanced" | "default" | "fast";
466
-
467
- export type GetContext<TContext extends Record<string, unknown>> = () => Promise<TContext> | TContext;
468
-
469
463
  export type StatelessAgentBaseState<TState extends Record<string, unknown> = Record<string, unknown>> = {
470
464
  agentExecutionContext: BaseChannel<AgentExecutionContextWithSharedState<TState>, unknown, unknown>;
471
465
  outputMessage: BaseChannel<string, unknown, unknown>;
@@ -473,27 +467,76 @@ export type StatelessAgentBaseState<TState extends Record<string, unknown> = Rec
473
467
  status: BaseChannel<AgentStatus | undefined, unknown, unknown>;
474
468
  };
475
469
 
470
+ /** @internal */
476
471
  export type StatefulAgentBaseState<TState extends Record<string, unknown> = Record<string, unknown>> = StatelessAgentBaseState<TState>
477
472
  & {
478
473
  sharedStatePatch: BaseChannel<SharedStatePatch<TState> | undefined, unknown, unknown>;
479
474
  };
480
475
 
481
- /** Patch shape returned by agents. `meta` is intentionally omitted. */
482
- export type SharedStatePatchEntry<T = unknown> = {
483
- value: T;
484
- };
476
+ /**
477
+ * Creates the standard runtime state for a custom agent graph.
478
+ * Includes common fields used by the assistant flow (request context, output message, summary, and status), so you only add your agent-specific state.
479
+ *
480
+ * @since 5.1
481
+ */
482
+ export function createAgentRuntimeState<TState extends Record<string, unknown> = Record<string, unknown>>(): StatelessAgentBaseState<TState>;
485
483
 
486
- export type SharedState<T extends Record<string, unknown> = Record<string, unknown>> = {
487
- [K in keyof T]?: SharedStateEntry<T[K]>;
488
- };
484
+ /**
485
+ * Creates the standard runtime state for a custom agent graph, plus support for shared state updates.
486
+ * Use this when your agent needs to write values that other agents can read later in the same orchestration flow.
487
+ *
488
+ * @since 5.1
489
+ */
490
+ export function createAgentRuntimeStateWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>>(): StatefulAgentBaseState<TState>;
489
491
 
490
- export type AgentExecutionContextWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>> = AgentExecutionContext<TState>;
492
+ /**
493
+ * Sends an optional UX suggestion from an agent run to the host application.
494
+ * Use this for non-blocking hints (for example, recommended next actions or UI prompts) that the app may choose to display.
495
+ *
496
+ * @param suggestion
497
+ * @param config
498
+ * @since 5.1
499
+ */
500
+ export function sendUXSuggestion(suggestion: UXSuggestion, config?: RunnableConfig): Promise<void>;
491
501
 
492
- /** Stored shared state entry. `meta` is added by the orchestrator. */
502
+ /** @internal */
493
503
  export type SharedStateEntry<T = unknown> = {
494
504
  value: T;
495
505
  meta: {
496
506
  updatedByAgentId: string;
497
507
  updatedAt: number;
498
508
  };
499
- };
509
+ };
510
+
511
+ /** @internal */
512
+ export type SharedStatePatchEntry<T = unknown> = {
513
+ value: T;
514
+ };
515
+
516
+ /**
517
+ * Shared state that can be read and updated during agent execution.
518
+ *
519
+ * @since 5.1
520
+ */
521
+ export type SharedState<T extends Record<string, unknown> = Record<string, unknown>> = {
522
+ [K in keyof T]?: SharedStateEntry<T[K]>;
523
+ };
524
+
525
+ /**
526
+ * Partial shared state returned by an agent for merging into the current run state.
527
+ *
528
+ * @since 5.1
529
+ */
530
+ export type SharedStatePatch<T extends Record<string, unknown> = Record<string, unknown>> = {
531
+ [K in keyof T]?: SharedStatePatchEntry<T[K]>;
532
+ };
533
+
534
+ /**
535
+ * @param parameter0
536
+ * @internal
537
+ */
538
+ export function createChatModel(parameter0?: {
539
+ modelTier?: ChatModelTier;
540
+ temperature?: number;
541
+ abortSignal?: AbortSignal;
542
+ }): Promise<ChatOpenAI>;