@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
|
@@ -7,12 +7,13 @@ import "@arcgis/toolkit/string";
|
|
|
7
7
|
import "./generateLayerDescriptions.js";
|
|
8
8
|
import "@langchain/core/messages";
|
|
9
9
|
import { s as a } 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";
|
|
13
14
|
import "@arcgis/core/layers/FeatureLayer.js";
|
|
14
15
|
import "@langchain/core/prompts";
|
|
15
|
-
const
|
|
16
|
+
const x = async (t, o) => {
|
|
16
17
|
const i = t.tool_calls ?? [];
|
|
17
18
|
if (i.length === 0) {
|
|
18
19
|
await a({ text: `LLM did not request any tool calls: ${String(t?.content)}` }, o);
|
|
@@ -28,5 +29,5 @@ const L = async (t, o) => {
|
|
|
28
29
|
);
|
|
29
30
|
};
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
x as h
|
|
32
33
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type Collection from "@arcgis/core/core/Collection.js";
|
|
3
|
+
import type { RuntimeSpanEvent } from "../../orchestrator/orchestrator/orchestratorEvents.js";
|
|
3
4
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
5
|
import type { AssistantMessage, AssistantPromptSelectDetail, AssistantSlottableRequestDetail, ChatMessage, Interrupt } from "./types.js";
|
|
5
6
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
@@ -304,6 +305,14 @@ export abstract class ArcgisAssistant extends LitElement {
|
|
|
304
305
|
* ```
|
|
305
306
|
*/
|
|
306
307
|
accessor referenceElement: ArcgisMap | string | null;
|
|
308
|
+
/**
|
|
309
|
+
* When `true`, emits normalized runtime span events while processing requests.
|
|
310
|
+
*
|
|
311
|
+
* @default false
|
|
312
|
+
* @internal
|
|
313
|
+
* @since 5.2
|
|
314
|
+
*/
|
|
315
|
+
accessor runtimeEventsEnabled: boolean;
|
|
307
316
|
/**
|
|
308
317
|
* When `true`, assistant text responses render after completion instead of streaming progressively.
|
|
309
318
|
*
|
|
@@ -509,6 +518,12 @@ export abstract class ArcgisAssistant extends LitElement {
|
|
|
509
518
|
* @since 5.1
|
|
510
519
|
*/
|
|
511
520
|
readonly arcgisResponse: import("@arcgis/lumina").TargetedEvent<this, AssistantMessage>;
|
|
521
|
+
/**
|
|
522
|
+
* Emitted for each normalized runtime span lifecycle event produced while processing a request.
|
|
523
|
+
*
|
|
524
|
+
* @internal
|
|
525
|
+
*/
|
|
526
|
+
readonly arcgisRuntime: import("@arcgis/lumina").TargetedEvent<this, RuntimeSpanEvent>;
|
|
512
527
|
/**
|
|
513
528
|
* Emitted when the assistant requests custom slotted content for an assistant message.
|
|
514
529
|
*
|
|
@@ -564,6 +579,7 @@ export abstract class ArcgisAssistant extends LitElement {
|
|
|
564
579
|
arcgisPromptSelect: ArcgisAssistant["arcgisPromptSelect"]["detail"];
|
|
565
580
|
arcgisReady: ArcgisAssistant["arcgisReady"]["detail"];
|
|
566
581
|
arcgisResponse: ArcgisAssistant["arcgisResponse"]["detail"];
|
|
582
|
+
arcgisRuntime: ArcgisAssistant["arcgisRuntime"]["detail"];
|
|
567
583
|
arcgisSlottableRequest: ArcgisAssistant["arcgisSlottableRequest"]["detail"];
|
|
568
584
|
arcgisSubmit: ArcgisAssistant["arcgisSubmit"]["detail"];
|
|
569
585
|
};
|