@arcgis/ai-components 5.2.0-next.1 → 5.2.0-next.100
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/LICENSE.md +4 -2
- package/README.md +2 -2
- package/dist/agent-utils/FunctionAgent.d.ts +2 -2
- package/dist/agent-utils/LLMAgent.d.ts +7 -4
- package/dist/agent-utils/LLMAgent.js +26 -24
- package/dist/agent-utils/WorkflowAgent.d.ts +2 -2
- package/dist/agent-utils/WorkflowAgent.js +14 -15
- package/dist/agent-utils/index.d.ts +177 -0
- package/dist/agent-utils/index.js +167 -0
- package/dist/agent-utils/middlewares/trace.d.ts +2 -0
- package/dist/agent-utils/middlewares/trace.js +25 -33
- package/dist/agent-utils/tools/FunctionTool.d.ts +2 -2
- package/dist/agent-utils/types.d.ts +37 -8
- package/dist/agent-utils/workflows/ConditionalWorkflow.d.ts +2 -2
- package/dist/agent-utils/workflows/LoopWorkflow.d.ts +2 -2
- package/dist/agent-utils/workflows/ParallelWorkflow.d.ts +2 -2
- package/dist/agent-utils/workflows/RouterWorkflow.d.ts +2 -2
- package/dist/agent-utils/workflows/SequentialWorkflow.d.ts +2 -2
- package/dist/agent-utils/workflows/SwitchWorkflow.d.ts +2 -2
- package/dist/agentic-workflow/AgenticWorkflowRuntime.d.ts +24 -0
- package/dist/agentic-workflow/Edge.d.ts +16 -0
- package/dist/agentic-workflow/WebAgent.d.ts +39 -0
- package/dist/agentic-workflow/jsonTypes.d.ts +189 -0
- package/dist/agentic-workflow/nodes/AgentNode.d.ts +28 -0
- package/dist/agentic-workflow/nodes/BaseNode.d.ts +35 -0
- package/dist/agentic-workflow/nodes/EndMessageNode.d.ts +25 -0
- package/dist/agentic-workflow/nodes/StartNode.d.ts +21 -0
- package/dist/agentic-workflow/nodes/tools/ArcgisTool.d.ts +21 -0
- package/dist/agentic-workflow/types.d.ts +29 -0
- package/dist/agents/tools/filter/clearFilters/adapter.d.ts +8 -0
- package/dist/agents/tools/filter/clearFilters/adapter.js +22 -0
- package/dist/agents/tools/filter/resetMap/adapter.d.ts +8 -0
- package/dist/agents/tools/filter/resetMap/adapter.js +22 -0
- package/dist/agents/tools/filter/setFeatureEffect/adapter.d.ts +8 -0
- package/dist/agents/tools/filter/setFeatureEffect/adapter.js +121 -0
- package/dist/agents/tools/help/listFields/adapter.d.ts +11 -0
- package/dist/agents/tools/help/listFields/adapter.js +30 -0
- package/dist/agents/tools/navigation/goToAddress/adapter.d.ts +10 -0
- package/dist/agents/tools/navigation/goToAddress/adapter.js +60 -0
- package/dist/agents/tools/navigation/goToBookmark/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToBookmark/adapter.js +30 -0
- package/dist/agents/tools/navigation/goToFeatures/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToFeatures/adapter.js +50 -0
- package/dist/agents/tools/navigation/goToFullExtent/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToFullExtent/adapter.js +27 -0
- package/dist/agents/tools/navigation/goToHomeExtent/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToHomeExtent/adapter.js +24 -0
- package/dist/agents/tools/navigation/goToLayer/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToLayer/adapter.js +26 -0
- package/dist/agents/tools/navigation/goToScale/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToScale/adapter.js +21 -0
- package/dist/agents/tools/navigation/goToViewpoint/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToViewpoint/adapter.js +42 -0
- package/dist/agents/tools/navigation/goToZoom/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToZoom/adapter.js +21 -0
- package/dist/agents/tools/query/getAttribute/adapter.d.ts +8 -0
- package/dist/agents/tools/query/getAttribute/adapter.js +40 -0
- package/dist/agents/tools/query/getStatistics/adapter.d.ts +8 -0
- package/dist/agents/tools/query/getStatistics/adapter.js +157 -0
- package/dist/agents/tools/query/getTopFeatures/adapter.d.ts +8 -0
- package/dist/agents/tools/query/getTopFeatures/adapter.js +144 -0
- package/dist/agents/tools/query/queryFeatures/adapter.d.ts +8 -0
- package/dist/agents/tools/query/queryFeatures/adapter.js +130 -0
- package/dist/agents/tools/search/findRelevantFields/adapter.d.ts +8 -0
- package/dist/agents/tools/search/findRelevantFields/adapter.js +57 -0
- package/dist/agents/tools/search/findRelevantLayers/adapter.d.ts +8 -0
- package/dist/agents/tools/search/findRelevantLayers/adapter.js +38 -0
- package/dist/cdn/22KHSDJI.js +2 -0
- package/dist/cdn/2EY3BQQX.js +2 -0
- package/dist/cdn/2O4DON37.js +2 -0
- package/dist/cdn/34O57OGV.js +2 -0
- package/dist/cdn/{AMP6IALT.js → 3UEKINYC.js} +1 -1
- package/dist/cdn/434TAA3J.js +2 -0
- package/dist/cdn/4OGR5QKS.js +2 -0
- package/dist/cdn/5FL5BTTX.js +66 -0
- package/dist/cdn/5HBAJ57P.js +2 -0
- package/dist/cdn/5K5ZY267.js +2 -0
- package/dist/cdn/5MK44FNO.js +2 -0
- package/dist/cdn/5WYRJMBW.js +2 -0
- package/dist/cdn/5X7EG7D2.js +2 -0
- package/dist/cdn/5XZLS7UO.js +2 -0
- package/dist/cdn/5ZFUGNRN.js +2 -0
- package/dist/cdn/655YIKL3.js +11 -0
- package/dist/cdn/6ECRQVHY.js +2 -0
- package/dist/cdn/6OOZSZRJ.js +2 -0
- package/dist/cdn/{3PKJWIC3.js → 6P44KOKX.js} +1 -1
- package/dist/cdn/6YYPVU7H.js +3 -0
- package/dist/cdn/7BCQMK6D.js +2 -0
- package/dist/cdn/7SRLZQVC.js +5 -0
- package/dist/cdn/7V6OSTFC.js +2 -0
- package/dist/cdn/7VAQUCBU.js +9 -0
- package/dist/cdn/7VUSIGEM.js +2 -0
- package/dist/cdn/ACJTJLZN.js +2 -0
- package/dist/cdn/AI6DYOKR.js +181 -0
- package/dist/cdn/AKD5UOVX.js +2 -0
- package/dist/cdn/ANRQWYU2.js +2 -0
- package/dist/cdn/{ZS2TZ6BF.js → AOVJ34QE.js} +1 -1
- package/dist/cdn/APFZY4PI.js +2 -0
- package/dist/cdn/B2JDVLA6.js +2 -0
- package/dist/cdn/BE7BRJZD.js +2 -0
- package/dist/cdn/{FL4W4VYN.js → BL273EGZ.js} +17 -1
- package/dist/cdn/C4FEETBZ.js +2 -0
- package/dist/cdn/C4JT4S5E.js +2 -0
- package/dist/cdn/CCC6LBMY.js +2 -0
- package/dist/cdn/{5ZZGKP7N.js → CEKOEHB3.js} +1 -1
- package/dist/cdn/CJMUJXPL.js +2 -0
- package/dist/cdn/COH3QXWG.js +4 -0
- package/dist/cdn/CP5BVGJU.js +2 -0
- package/dist/cdn/D5UFYQHN.js +44 -0
- package/dist/cdn/EWLXNGKH.js +208 -0
- package/dist/cdn/EYOWRGDP.js +2 -0
- package/dist/cdn/F5NIRETW.js +2 -0
- package/dist/cdn/FDOMMK2M.js +2 -0
- package/dist/cdn/FG647IP6.js +2 -0
- package/dist/cdn/FJO4KNOZ.js +2 -0
- package/dist/cdn/FUF3NAU7.js +2 -0
- package/dist/cdn/FXP5UIQU.js +156 -0
- package/dist/cdn/{ZLXN7NMF.js → FYZATVB3.js} +10 -8
- package/dist/cdn/G2EGT3CF.js +6 -0
- package/dist/cdn/G3SF6U2U.js +2 -0
- package/dist/cdn/G7OMHU2B.js +2 -0
- package/dist/cdn/HAEFC2SJ.js +2 -0
- package/dist/cdn/HDACNIZF.js +2 -0
- package/dist/cdn/HHFNQR6Z.js +2 -0
- package/dist/cdn/HHUQXL3R.js +2 -0
- package/dist/cdn/IBZ2NEAO.js +2 -0
- package/dist/cdn/{FX7UOGHP.js → ICBIUFK7.js} +1 -1
- package/dist/cdn/ICQCK5D3.js +2 -0
- package/dist/cdn/IHP25JWI.js +99 -0
- package/dist/cdn/IJVMUS2L.js +14 -0
- package/dist/cdn/J6A4AS7E.js +22 -0
- package/dist/cdn/J6SZIQJA.js +2 -0
- package/dist/cdn/JCOA24UH.js +3 -0
- package/dist/cdn/{NE7E52YR.js → JEBRN3EU.js} +9 -3
- package/dist/cdn/JO5ETMPS.js +2 -0
- package/dist/cdn/K2R6XVK3.js +2 -0
- package/dist/cdn/KITIP6J2.js +2 -0
- package/dist/cdn/KWD2ECTM.js +2 -0
- package/dist/cdn/{4HU7735A.js → LAYVGCPL.js} +6 -4
- package/dist/cdn/{7RCQFLPP.js → LK7ZIQW6.js} +1 -1
- package/dist/cdn/LLUGJKAQ.js +2 -0
- package/dist/cdn/MWYBF3F3.js +66 -0
- package/dist/cdn/{V2P4AIGG.js → MXTXJKFE.js} +1 -1
- package/dist/cdn/MY47B3CE.js +3 -0
- package/dist/cdn/NEV6OZN3.js +71 -0
- package/dist/cdn/NNXISHCA.js +14 -0
- package/dist/cdn/NZSOJ726.js +2 -0
- package/dist/cdn/O4NVW75A.js +2 -0
- package/dist/cdn/OE3GW5LE.js +2 -0
- package/dist/cdn/{23EQTPO3.js → OKVLGJAG.js} +1 -1
- package/dist/cdn/ONQ6JSBJ.js +2 -0
- package/dist/cdn/OX64WOEL.js +22 -0
- package/dist/cdn/{LQ6R5YRN.js → PQ2DPOFM.js} +1 -1
- package/dist/cdn/PUHRBGKB.js +2 -0
- package/dist/cdn/Q57QWN5W.js +2 -0
- package/dist/cdn/QUKNPVAF.js +2 -0
- package/dist/cdn/R2PQVY4O.js +2 -0
- package/dist/cdn/R74ZHFA6.js +2 -0
- package/dist/cdn/RBE55SWR.js +2 -0
- package/dist/cdn/RHYNE5OE.js +2 -0
- package/dist/cdn/RLEHNAIA.js +2 -0
- package/dist/cdn/RVSTAUQS.js +2 -0
- package/dist/cdn/{X2ZDYHCG.js → SDWWUWAF.js} +10 -5
- package/dist/cdn/SXM4NUT5.js +2 -0
- package/dist/cdn/SZ2QSSB3.js +2 -0
- package/dist/cdn/T4RIGOXB.js +2 -0
- package/dist/cdn/TCH5I5LS.js +2 -0
- package/dist/cdn/TEPP7YPR.js +2 -0
- package/dist/cdn/TMVF2W5N.js +36 -0
- package/dist/cdn/TPULIO6I.js +34 -0
- package/dist/cdn/UDRKUVZP.js +2 -0
- package/dist/cdn/{6YMR4QSD.js → UHEYPSOR.js} +1 -1
- package/dist/cdn/UHNVDALX.js +18 -0
- package/dist/cdn/UZLQALHY.js +2 -0
- package/dist/cdn/V6HOUZPZ.js +2 -0
- package/dist/cdn/VAXH6RUQ.js +134 -0
- package/dist/cdn/VLLZ2FFU.js +2 -0
- package/dist/cdn/VOKXKU7M.js +56 -0
- package/dist/cdn/VXFQANGJ.js +2 -0
- package/dist/cdn/WGO5SER7.js +6 -0
- package/dist/cdn/WJXXOKGA.js +9 -0
- package/dist/cdn/WKTQVBFJ.js +2 -0
- package/dist/cdn/{DHOVCT6R.js → WSWB3B7B.js} +1 -1
- package/dist/cdn/XX6GHMNR.js +2 -0
- package/dist/cdn/Y7XD7ZRD.js +2 -0
- package/dist/cdn/YEZ3AMNX.js +2 -0
- package/dist/cdn/YLVJA4ZE.js +2 -0
- package/dist/cdn/Z5HWPSZN.js +2 -0
- package/dist/cdn/Z5W4V7RC.js +2 -0
- package/dist/cdn/ZDV4K4WG.js +2 -0
- package/dist/cdn/ZOEMBHRF.js +2 -0
- package/dist/cdn/ZRVZMPFN.js +2 -0
- package/dist/cdn/{ZTBA5PM7.js → ZU2FHVNK.js} +1 -1
- package/dist/cdn/agent-utils/index.js +2 -0
- package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +3 -0
- package/dist/cdn/agent-utils/middlewares/middleware.js +2 -0
- package/dist/cdn/agent-utils/middlewares/trace.js +2 -0
- package/dist/cdn/assets/assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/adapter.js +1299 -2113
- package/dist/chunks/arcgisKnowledgeGraph.js +128 -72
- package/dist/chunks/arcgis_knowledge_current_lc_context.js +19 -2
- package/dist/chunks/arcgis_knowledge_current_map_context.js +31 -2
- package/dist/chunks/arcgis_knowledge_cypher_query_prompt.js +102 -0
- package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +116 -27
- package/dist/chunks/baseAgentState.js +58 -0
- package/dist/chunks/converterUtils.js +66 -41
- package/dist/chunks/dataExplorationGraph.js +135 -179
- package/dist/chunks/data_explore_query_prompt.js +9 -4
- package/dist/chunks/fetchAgentContext.js +13 -0
- package/dist/chunks/fetchService.js +10 -0
- package/dist/chunks/fieldStatistics.js +79 -0
- package/dist/chunks/formatFeatureAttributes.js +132 -0
- package/dist/chunks/generateLayerDescriptions.js +250 -246
- package/dist/chunks/helpGraph.js +35 -25
- package/dist/chunks/help_prompt.js +34 -17
- package/dist/chunks/index.js +11 -0
- package/dist/chunks/intent_prompt.js +16 -0
- package/dist/chunks/layerStylingGraph.js +37 -31
- package/dist/chunks/mergeWhereClauses.js +15 -0
- package/dist/chunks/navigationGraph.js +135 -111
- package/dist/chunks/navigation_intent_prompt.js +8 -2
- package/dist/chunks/orchestrator.js +530 -280
- package/dist/chunks/resolvePointGeometryFilter.js +92 -0
- package/dist/chunks/slottableRequestUtils.js +3 -7
- package/dist/chunks/state.js +21 -27
- package/dist/chunks/summarize_query_response_prompt.js +9 -7
- package/dist/chunks/toolCallResponse.js +14 -10
- package/dist/chunks/utils2.js +11 -11
- package/dist/components/arcgis-assistant/customElement.d.ts +96 -0
- package/dist/components/arcgis-assistant/customElement.js +398 -149
- package/dist/components/arcgis-assistant/index.js +2 -3
- package/dist/components/arcgis-assistant/types.d.ts +14 -1
- package/dist/components/arcgis-assistant-agent/customElement.d.ts +13 -1
- package/dist/components/arcgis-assistant-agent/customElement.js +614 -10
- package/dist/components/arcgis-assistant-chat/customElement.d.ts +8 -2
- package/dist/components/arcgis-assistant-chat/customElement.js +23 -18
- package/dist/components/arcgis-assistant-chat-entry/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-chat-entry/customElement.js +25 -18
- package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +20 -4
- package/dist/components/arcgis-assistant-help-agent/customElement.js +29 -7
- package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +8 -1
- package/dist/components/arcgis-assistant-interrupt/customElement.js +17 -14
- package/dist/components/arcgis-assistant-interrupt-preview/customElement.js +24 -0
- package/dist/components/arcgis-assistant-interrupt-preview/index.js +2 -0
- package/dist/components/arcgis-assistant-knowledge-agent/customElement.d.ts +7 -7
- package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +40 -16
- package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +30 -7
- package/dist/components/arcgis-assistant-message/customElement.d.ts +26 -0
- package/dist/components/arcgis-assistant-message/customElement.js +29 -26
- package/dist/components/arcgis-assistant-message/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-message/index.js +2 -0
- package/dist/components/arcgis-assistant-message-block/customElement.d.ts +1 -1
- package/dist/components/arcgis-assistant-message-block/customElement.js +18 -11
- package/dist/components/arcgis-assistant-message-block/index.js +1 -0
- package/dist/components/arcgis-assistant-message-feedback/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-message-footer/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-message-loading/customElement.d.ts +11 -1
- package/dist/components/arcgis-assistant-message-loading/customElement.js +8 -7
- package/dist/components/arcgis-assistant-message-loading/index.js +1 -0
- package/dist/components/arcgis-assistant-message-log/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-message-read-aloud/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-message-text/customElement.d.ts +5 -1
- package/dist/components/arcgis-assistant-message-text/customElement.js +12 -12
- package/dist/components/arcgis-assistant-navigation-agent/customElement.js +18 -4
- package/dist/components/arcgis-assistant-speech-input/customElement.d.ts +6 -1
- package/dist/components/arcgis-assistant-speech-input/customElement.js +34 -52
- package/dist/components/arcgis-assistant-suggested-prompts/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +8 -8
- package/dist/components/arcgis-assistant-user-message/customElement.d.ts +6 -1
- package/dist/components/arcgis-assistant-user-message/customElement.js +15 -10
- 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/index.d.ts +4 -0
- package/dist/loader.js +9 -8
- package/dist/oauth-callback.html +1 -1
- package/dist/orchestrator/orchestrator/orchestratorEvents.d.ts +78 -0
- package/dist/types/lumina.d.ts +14 -7
- package/dist/types/preact.d.ts +15 -7
- package/dist/types/react.d.ts +16 -7
- package/dist/types/stencil.d.ts +16 -9
- package/dist/utils/index.d.ts +135 -65
- package/dist/utils/index.js +55 -50
- package/package.json +32 -12
- package/dist/cdn/2AXF774U.js +0 -2
- package/dist/cdn/462JBSEV.js +0 -422
- package/dist/cdn/5QAHYX7Y.js +0 -5
- package/dist/cdn/7BCR6TUO.js +0 -2
- package/dist/cdn/7GH7VSB2.js +0 -2
- package/dist/cdn/7PLV4QH6.js +0 -2
- package/dist/cdn/AO7BQHKC.js +0 -2
- package/dist/cdn/AXDZBBNL.js +0 -45
- package/dist/cdn/DDLZOMUY.js +0 -2
- package/dist/cdn/F2AHA4GB.js +0 -54
- package/dist/cdn/FHVXO2WG.js +0 -166
- package/dist/cdn/FX5JFRDL.js +0 -2
- package/dist/cdn/GSEPHN3A.js +0 -106
- package/dist/cdn/H7422XUG.js +0 -2
- package/dist/cdn/HB5A5R2E.js +0 -2
- package/dist/cdn/JY6LLOUJ.js +0 -22
- package/dist/cdn/KMQ3SP4I.js +0 -5
- package/dist/cdn/MDVYQQUG.js +0 -14
- package/dist/cdn/MH5RPXHM.js +0 -2
- package/dist/cdn/NAUXSHIE.js +0 -72
- package/dist/cdn/NVI3I46B.js +0 -2
- package/dist/cdn/OAVEHGB6.js +0 -2
- package/dist/cdn/OH64RMOR.js +0 -4
- package/dist/cdn/ON2V5XI2.js +0 -3
- package/dist/cdn/P6OPJQMC.js +0 -3
- package/dist/cdn/QR54T33D.js +0 -2
- package/dist/cdn/RVOAPUBN.js +0 -2
- package/dist/cdn/S6W6HV4T.js +0 -36
- package/dist/cdn/SXDLXCIM.js +0 -2
- package/dist/cdn/USMDJUFS.js +0 -2
- package/dist/cdn/V5YEZSRY.js +0 -16
- package/dist/cdn/Y333DGV6.js +0 -2
- package/dist/cdn/YIMNOUTF.js +0 -2
- package/dist/cdn/YY2SBO3V.js +0 -2
package/dist/utils/index.d.ts
CHANGED
|
@@ -8,8 +8,12 @@ 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
|
+
export { type AskOptions } from "../orchestrator.js";
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type ChatModelTier = "advanced" | "default" | "fast";
|
|
13
17
|
|
|
14
18
|
/**
|
|
15
19
|
* Represents the chat message history between the user and the assistant, including all messages sent and received during the conversation.
|
|
@@ -140,29 +144,25 @@ export type ArcgisPromptOptions = {
|
|
|
140
144
|
/**
|
|
141
145
|
* The model tier to use. See the following options:
|
|
142
146
|
*
|
|
143
|
-
* - `default` - The default model tier,
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
147
|
+
* - `default` - The default model tier, suitable for most general-purpose use cases.
|
|
148
|
+
* At v5.2, this tier uses the `gpt-5.6-terra` model.
|
|
149
|
+
* - `advanced` - A model tier for tasks that benefit from more advanced capabilities.
|
|
150
|
+
* At v5.2, this tier uses the `gpt-5.6-sol` model.
|
|
151
|
+
* - `fast` - A model tier for tasks such as classification and summarization, where
|
|
152
|
+
* faster responses are preferred.
|
|
153
|
+
* At v5.2, this tier uses the `gpt-5.6-luna` model.
|
|
149
154
|
*
|
|
150
|
-
* The
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
* when new models are released.
|
|
156
|
-
*
|
|
157
|
-
* Note that the same prompt will not necessarily produce the same results across different
|
|
158
|
-
* models. As models are updated, you will need to re-evaluate the prompts you send to the LLM, including
|
|
159
|
-
* agent descriptions and tool node descriptions to
|
|
160
|
-
* ensure they still return the expected responses. You should adjust your implementation as needed.
|
|
155
|
+
* The models available for each tier may change as models are released and retired by
|
|
156
|
+
* the model provider and may not align with the semantic versioning rules of the JS SDK.
|
|
157
|
+
* The same prompt may produce different results when a tier's model changes.
|
|
158
|
+
* Re-evaluate and adjust prompts, agent descriptions, and tool descriptions
|
|
159
|
+
* when updating the ArcGIS Maps SDK for JavaScript or when model updates occur.
|
|
161
160
|
*/
|
|
162
161
|
modelTier?: ChatModelTier;
|
|
163
162
|
/**
|
|
164
|
-
*
|
|
165
|
-
*
|
|
163
|
+
* This option is ignored. The model provider's default temperature is always used.
|
|
164
|
+
*
|
|
165
|
+
* @deprecated This option is no longer supported and will be removed in a future release.
|
|
166
166
|
*/
|
|
167
167
|
temperature?: number;
|
|
168
168
|
/**
|
|
@@ -172,6 +172,8 @@ export type ArcgisPromptOptions = {
|
|
|
172
172
|
* and produce more accurate and relevant responses.
|
|
173
173
|
*/
|
|
174
174
|
messages?: ChatHistory;
|
|
175
|
+
/** Optional runnable configuration used to derive runtime values (for example, conversation id and abort signal). */
|
|
176
|
+
config?: RunnableConfig;
|
|
175
177
|
/**
|
|
176
178
|
* Input variables for the prompt. This can include any relevant variables related to the context
|
|
177
179
|
* provided to the agent. This may be necessary for determining tool parameters or for providing additional
|
|
@@ -248,8 +250,7 @@ export interface TraceEventData {
|
|
|
248
250
|
* Sends a prompt to an LLM and returns a plain text response. This function should be used when you expect
|
|
249
251
|
* a simple text response from the model without the need for structured parsing or tool invocation.
|
|
250
252
|
*
|
|
251
|
-
* @param options - Options for the prompt, including the prompt text, model tier,
|
|
252
|
-
* temperature, chat history, and input variables.
|
|
253
|
+
* @param options - Options for the prompt, including the prompt text, model tier, chat history, and input variables.
|
|
253
254
|
* @returns The model response.
|
|
254
255
|
* @since 5.0
|
|
255
256
|
* @see [Custom agents guide](https://developers.arcgis.com/javascript/latest/agentic-apps/ai-custom-agents/)
|
|
@@ -319,7 +320,7 @@ export function cosineSimilarity(vectorA: number[], vectorB: number[]): number;
|
|
|
319
320
|
/**
|
|
320
321
|
* The suggestions emitted by the agent to the user interface.
|
|
321
322
|
*
|
|
322
|
-
* @
|
|
323
|
+
* @since 5.1
|
|
323
324
|
*/
|
|
324
325
|
export type UXSuggestion = {
|
|
325
326
|
/** The type of suggestion being made. */
|
|
@@ -331,33 +332,44 @@ export type UXSuggestion = {
|
|
|
331
332
|
/**
|
|
332
333
|
* Execution status returned by an agent run.
|
|
333
334
|
*
|
|
334
|
-
* @
|
|
335
|
+
* @since 5.1
|
|
335
336
|
*/
|
|
336
337
|
export type AgentStatus = "failed" | "success" | "unknown";
|
|
337
338
|
|
|
338
339
|
/**
|
|
339
340
|
* Summary of a previously executed agent step.
|
|
340
341
|
*
|
|
341
|
-
* @
|
|
342
|
+
* @since 5.1
|
|
342
343
|
*/
|
|
343
344
|
export interface PriorStep {
|
|
345
|
+
/** The agent that handled the step. */
|
|
344
346
|
agentId: string;
|
|
347
|
+
/** The task assigned to the agent for this step. */
|
|
345
348
|
assignedTask: string;
|
|
349
|
+
/** A brief summary of the step's execution. */
|
|
346
350
|
summary: string;
|
|
351
|
+
/** The execution status of the step. */
|
|
347
352
|
status: AgentStatus;
|
|
348
353
|
}
|
|
349
354
|
|
|
350
355
|
/**
|
|
351
356
|
* Runtime execution context available to agent graph nodes and tools.
|
|
352
357
|
*
|
|
353
|
-
* @
|
|
358
|
+
* @since 5.1
|
|
354
359
|
*/
|
|
355
360
|
export interface AgentExecutionContext<TState extends Record<string, unknown> = Record<string, unknown>> {
|
|
361
|
+
/** The user's original request. */
|
|
356
362
|
userRequest: string;
|
|
363
|
+
/** The task assigned to the agent. */
|
|
357
364
|
assignedTask: string;
|
|
365
|
+
/** The message history for the run */
|
|
358
366
|
messages: ChatHistory;
|
|
367
|
+
/** Previous steps */
|
|
359
368
|
priorSteps: PriorStep[];
|
|
369
|
+
/** Shared state available to the agent. */
|
|
360
370
|
sharedState: SharedState<TState>;
|
|
371
|
+
/** The 50 most recent resources created by agents in the conversation. */
|
|
372
|
+
sharedResources: readonly SharedResource[];
|
|
361
373
|
}
|
|
362
374
|
|
|
363
375
|
/** @internal */
|
|
@@ -427,6 +439,9 @@ export const createWebmapEmbeddings: (mapView: MapView) => Promise<{
|
|
|
427
439
|
}>;
|
|
428
440
|
}>;
|
|
429
441
|
|
|
442
|
+
/** @internal */
|
|
443
|
+
export type GetContext<TContext extends Record<string, unknown>> = () => Promise<TContext> | TContext;
|
|
444
|
+
|
|
430
445
|
/** @internal */
|
|
431
446
|
export interface AgentWithContext<TContext extends Record<string, unknown> = Record<string, unknown>> {
|
|
432
447
|
agent: AgentRegistration;
|
|
@@ -438,62 +453,117 @@ export interface AgentWithContext<TContext extends Record<string, unknown> = Rec
|
|
|
438
453
|
}
|
|
439
454
|
|
|
440
455
|
/** @internal */
|
|
441
|
-
export
|
|
456
|
+
export type AgentExecutionContextWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>> = AgentExecutionContext<TState>;
|
|
442
457
|
|
|
443
458
|
/** @internal */
|
|
444
|
-
export
|
|
459
|
+
export type AgentBaseState<TState extends Record<string, unknown> = Record<string, unknown>> = {
|
|
460
|
+
agentExecutionContext: BaseChannel<AgentExecutionContextWithSharedState<TState>, unknown, unknown>;
|
|
461
|
+
outputMessage: BaseChannel<string, unknown, unknown>;
|
|
462
|
+
summary: BaseChannel<string, unknown, unknown>;
|
|
463
|
+
status: BaseChannel<AgentStatus | undefined, unknown, unknown>;
|
|
464
|
+
sharedStatePatch: BaseChannel<SharedStatePatch<TState> | undefined, unknown, unknown>;
|
|
465
|
+
sharedResourceAdditions: BaseChannel<readonly SharedResourceInput[] | undefined, unknown, unknown>;
|
|
466
|
+
};
|
|
445
467
|
|
|
446
468
|
/**
|
|
447
|
-
*
|
|
448
|
-
*
|
|
449
|
-
*
|
|
469
|
+
* Creates the standard runtime state for a custom agent graph.
|
|
470
|
+
* Includes common fields used by the assistant flow and channels for shared state and shared resource updates, so you only add your agent-specific state.
|
|
471
|
+
*
|
|
472
|
+
* @since 5.1
|
|
450
473
|
*/
|
|
451
|
-
export function
|
|
452
|
-
|
|
453
|
-
/** @internal */
|
|
454
|
-
export type SharedStatePatch<T extends Record<string, unknown> = Record<string, unknown>> = {
|
|
455
|
-
[K in keyof T]?: SharedStatePatchEntry<T[K]>;
|
|
456
|
-
};
|
|
474
|
+
export function createAgentRuntimeState<TState extends Record<string, unknown> = Record<string, unknown>>(): AgentBaseState<TState>;
|
|
457
475
|
|
|
458
476
|
/**
|
|
459
|
-
*
|
|
460
|
-
*
|
|
461
|
-
* @
|
|
477
|
+
* Use `createAgentRuntimeState` instead.
|
|
478
|
+
*
|
|
479
|
+
* @deprecated Use `createAgentRuntimeState` instead.
|
|
480
|
+
* @since 5.1
|
|
462
481
|
*/
|
|
463
|
-
export function
|
|
464
|
-
|
|
465
|
-
export type ChatModelTier = "advanced" | "default" | "fast";
|
|
466
|
-
|
|
467
|
-
export type GetContext<TContext extends Record<string, unknown>> = () => Promise<TContext> | TContext;
|
|
482
|
+
export function createAgentRuntimeStateWithSharedState<TState extends Record<string, unknown> = Record<string, unknown>>(): AgentBaseState<TState>;
|
|
468
483
|
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
484
|
+
/**
|
|
485
|
+
* Sends an optional UX suggestion from an agent run to the host application.
|
|
486
|
+
* Use this for non-blocking hints (for example, recommended next actions or UI prompts) that the app may choose to display.
|
|
487
|
+
*
|
|
488
|
+
* @param suggestion
|
|
489
|
+
* @param config
|
|
490
|
+
* @since 5.1
|
|
491
|
+
*/
|
|
492
|
+
export function sendUXSuggestion(suggestion: UXSuggestion, config?: RunnableConfig): Promise<void>;
|
|
475
493
|
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
494
|
+
/** @internal */
|
|
495
|
+
export type SharedStateEntry<T = unknown> = {
|
|
496
|
+
value: T;
|
|
497
|
+
meta: {
|
|
498
|
+
updatedByAgentId: string;
|
|
499
|
+
updatedAt: number;
|
|
500
|
+
};
|
|
479
501
|
};
|
|
480
502
|
|
|
481
|
-
/**
|
|
503
|
+
/** @internal */
|
|
482
504
|
export type SharedStatePatchEntry<T = unknown> = {
|
|
483
505
|
value: T;
|
|
484
506
|
};
|
|
485
507
|
|
|
508
|
+
/**
|
|
509
|
+
* Shared state that can be read and updated during agent execution.
|
|
510
|
+
*
|
|
511
|
+
* @since 5.1
|
|
512
|
+
*/
|
|
486
513
|
export type SharedState<T extends Record<string, unknown> = Record<string, unknown>> = {
|
|
487
514
|
[K in keyof T]?: SharedStateEntry<T[K]>;
|
|
488
515
|
};
|
|
489
516
|
|
|
490
|
-
|
|
517
|
+
/**
|
|
518
|
+
* Partial shared state returned by an agent for merging into the current run state.
|
|
519
|
+
*
|
|
520
|
+
* @since 5.1
|
|
521
|
+
*/
|
|
522
|
+
export type SharedStatePatch<T extends Record<string, unknown> = Record<string, unknown>> = {
|
|
523
|
+
[K in keyof T]?: SharedStatePatchEntry<T[K]>;
|
|
524
|
+
};
|
|
491
525
|
|
|
492
|
-
/**
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
526
|
+
/**
|
|
527
|
+
* Kinds of resources an agent can share with subsequent agents.
|
|
528
|
+
*
|
|
529
|
+
* @since 5.2
|
|
530
|
+
*/
|
|
531
|
+
export type SharedResourceKind = "custom" | "extent" | "point" | "polygon" | "polyline";
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Resource available to agents during a conversation.
|
|
535
|
+
*
|
|
536
|
+
* @remarks Descriptions are limited to 256 characters. Payloads must be compatible with the structured clone algorithm.
|
|
537
|
+
* @since 5.2
|
|
538
|
+
*/
|
|
539
|
+
export type SharedResource = Readonly<{
|
|
540
|
+
id: string;
|
|
541
|
+
kind: SharedResourceKind;
|
|
542
|
+
description: string;
|
|
543
|
+
payload: unknown;
|
|
544
|
+
meta: {
|
|
545
|
+
createdByAgentId: string;
|
|
546
|
+
createdAt: number;
|
|
547
|
+
};
|
|
548
|
+
}>;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Resource supplied by an agent before the orchestrator adds identity and metadata.
|
|
552
|
+
*
|
|
553
|
+
* @remarks Description values longer than 256 characters are truncated. Payloads are cloned using the structured clone algorithm.
|
|
554
|
+
* @since 5.2
|
|
555
|
+
*/
|
|
556
|
+
export type SharedResourceInput = Readonly<{
|
|
557
|
+
kind: SharedResourceKind;
|
|
558
|
+
description: string;
|
|
559
|
+
payload: unknown;
|
|
560
|
+
}>;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* @param parameter0
|
|
564
|
+
* @internal
|
|
565
|
+
*/
|
|
566
|
+
export function createChatModel(parameter0?: {
|
|
567
|
+
modelTier?: ChatModelTier;
|
|
568
|
+
config?: RunnableConfig;
|
|
569
|
+
}): Promise<ChatOpenAI>;
|
package/dist/utils/index.js
CHANGED
|
@@ -1,47 +1,49 @@
|
|
|
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
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
3
|
+
import { O as he } from "../chunks/orchestrator.js";
|
|
4
|
+
import { s as h, a as A } from "../chunks/index.js";
|
|
5
|
+
import { g as S, a as v, W as w, f, l as y, d as $, m as b, b as E, s as L, i as P, e as M, h as T, c as R } from "../chunks/generateLayerDescriptions.js";
|
|
6
|
+
import x from "@arcgis/core/layers/FeatureLayer.js";
|
|
7
|
+
import * as D from "@arcgis/core/core/reactiveUtils.js";
|
|
8
|
+
import { a as W, b as k } from "../chunks/baseAgentState.js";
|
|
7
9
|
import { N as F } from "../chunks/navigationGraph.js";
|
|
8
10
|
import { L as C } from "../chunks/layerStylingGraph.js";
|
|
9
11
|
import { D as N } from "../chunks/dataExplorationGraph.js";
|
|
10
12
|
import { H as z } from "../chunks/helpGraph.js";
|
|
11
13
|
import { A as H } from "../chunks/arcgisKnowledgeGraph.js";
|
|
12
14
|
const I = async (e) => {
|
|
13
|
-
const t = e.allLayers.toArray(),
|
|
15
|
+
const t = e.allLayers.toArray(), o = [], s = /* @__PURE__ */ new Map();
|
|
14
16
|
for (const a of t)
|
|
15
|
-
if (a instanceof
|
|
17
|
+
if (a instanceof x) {
|
|
16
18
|
const m = (async () => {
|
|
17
|
-
const
|
|
18
|
-
s.set(a.id, { layerItem:
|
|
19
|
+
const r = await S(a), n = await v(a, r);
|
|
20
|
+
s.set(a.id, { layerItem: n, fieldRegistry: r });
|
|
19
21
|
})();
|
|
20
|
-
|
|
22
|
+
o.push(m);
|
|
21
23
|
}
|
|
22
|
-
return await Promise.all(
|
|
24
|
+
return await Promise.all(o), s;
|
|
23
25
|
}, O = async (e) => {
|
|
24
|
-
await
|
|
25
|
-
const t = await I(e.map), { layers:
|
|
26
|
-
schemaVersion:
|
|
26
|
+
await D.whenOnce(() => e.ready);
|
|
27
|
+
const t = await I(e.map), { layers: o } = await U(t), s = {
|
|
28
|
+
schemaVersion: L,
|
|
27
29
|
modified: Date.now(),
|
|
28
30
|
embeddings: {
|
|
29
|
-
modelProvider:
|
|
30
|
-
model:
|
|
31
|
-
dimensions:
|
|
31
|
+
modelProvider: E,
|
|
32
|
+
model: b,
|
|
33
|
+
dimensions: $,
|
|
32
34
|
templates: {
|
|
33
35
|
layer: y,
|
|
34
36
|
field: f
|
|
35
37
|
}
|
|
36
38
|
},
|
|
37
|
-
layers:
|
|
38
|
-
}, a =
|
|
39
|
+
layers: o
|
|
40
|
+
}, a = w.safeParse(s);
|
|
39
41
|
if (!a.success)
|
|
40
42
|
throw console.error("Schema Mismatch:", a.error.format()), new Error("Webmap embedding generation failed validation.");
|
|
41
43
|
return a.data;
|
|
42
44
|
}, U = async (e) => {
|
|
43
|
-
const t = [],
|
|
44
|
-
for (const [
|
|
45
|
+
const t = [], o = [];
|
|
46
|
+
for (const [r, { fieldRegistry: n, layerItem: i }] of e.entries()) {
|
|
45
47
|
const l = g(y, {
|
|
46
48
|
name: i.name,
|
|
47
49
|
title: i.title,
|
|
@@ -49,14 +51,14 @@ const I = async (e) => {
|
|
|
49
51
|
});
|
|
50
52
|
t.push(l);
|
|
51
53
|
const d = {
|
|
52
|
-
id:
|
|
54
|
+
id: r,
|
|
53
55
|
name: i.name ?? "",
|
|
54
56
|
title: i.title,
|
|
55
57
|
description: i.description,
|
|
56
58
|
vector: [],
|
|
57
59
|
fields: []
|
|
58
60
|
};
|
|
59
|
-
for (const [, c] of
|
|
61
|
+
for (const [, c] of n.entries()) {
|
|
60
62
|
const u = g(f, {
|
|
61
63
|
name: c.name,
|
|
62
64
|
alias: c.alias,
|
|
@@ -69,43 +71,46 @@ const I = async (e) => {
|
|
|
69
71
|
vector: []
|
|
70
72
|
});
|
|
71
73
|
}
|
|
72
|
-
|
|
74
|
+
o.push(d);
|
|
73
75
|
}
|
|
74
76
|
const s = await p(t);
|
|
75
77
|
let a = 0;
|
|
76
|
-
return { layers:
|
|
77
|
-
|
|
78
|
-
}),
|
|
79
|
-
}, g = (e, t) => e.replace(/\{(\w+)\}/gu, (
|
|
78
|
+
return { layers: o.map((r) => (r.vector = s[a++], r.fields.forEach((n) => {
|
|
79
|
+
n.vector = s[a++];
|
|
80
|
+
}), r)) };
|
|
81
|
+
}, g = (e, t) => e.replace(/\{(\w+)\}/gu, (o, s) => t[s] ?? ""), V = (e, t) => {
|
|
80
82
|
if (e.length !== t.length)
|
|
81
83
|
throw new Error("Vectors must be the same length");
|
|
82
|
-
let
|
|
83
|
-
for (let
|
|
84
|
-
const i = e[
|
|
85
|
-
|
|
84
|
+
let o = 0, s = 0, a = 0;
|
|
85
|
+
for (let n = 0; n < e.length; ++n) {
|
|
86
|
+
const i = e[n], l = t[n];
|
|
87
|
+
o += i * l, s += i * i, a += l * l;
|
|
86
88
|
}
|
|
87
89
|
const m = Math.sqrt(s * a);
|
|
88
90
|
if (m === 0)
|
|
89
91
|
return 0;
|
|
90
|
-
const
|
|
91
|
-
return Math.max(-1, Math.min(1,
|
|
92
|
-
},
|
|
92
|
+
const r = o / m;
|
|
93
|
+
return Math.max(-1, Math.min(1, r));
|
|
94
|
+
}, Z = M, ee = P, te = T, ae = h, se = p, oe = V, re = F, ne = C, ie = N, ce = z, me = H, le = O, de = () => W(), ge = () => k(), pe = async (e, t) => await A(e, t), fe = async ({
|
|
95
|
+
modelTier: e = "default",
|
|
96
|
+
config: t
|
|
97
|
+
} = {}) => await R({ modelTier: e, config: t });
|
|
93
98
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
99
|
+
me as ArcgisKnowledgeAgent,
|
|
100
|
+
ie as DataExplorationAgent,
|
|
101
|
+
ce as HelpAgent,
|
|
97
102
|
ne as LayerStylingAgent,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
re as NavigationAgent,
|
|
104
|
+
he as Orchestrator,
|
|
105
|
+
oe as cosineSimilarity,
|
|
106
|
+
de as createAgentRuntimeState,
|
|
107
|
+
ge as createAgentRuntimeStateWithSharedState,
|
|
108
|
+
fe as createChatModel,
|
|
109
|
+
le as createWebmapEmbeddings,
|
|
110
|
+
se as getEmbeddings,
|
|
111
|
+
ee as invokeStructuredPrompt,
|
|
112
|
+
Z as invokeTextPrompt,
|
|
113
|
+
te as invokeToolPrompt,
|
|
114
|
+
ae as sendTraceMessage,
|
|
115
|
+
pe as sendUXSuggestion
|
|
111
116
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/ai-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.100",
|
|
4
4
|
"description": "ArcGIS AI Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -9,6 +9,26 @@
|
|
|
9
9
|
"exports": {
|
|
10
10
|
".": "./dist/index.js",
|
|
11
11
|
"./loader": "./dist/loader.js",
|
|
12
|
+
"./agents/tools/filter/clearFilters/clearFilters.js": "./dist/agents/tools/filter/clearFilters/adapter.js",
|
|
13
|
+
"./agents/tools/filter/resetMap/resetMap.js": "./dist/agents/tools/filter/resetMap/adapter.js",
|
|
14
|
+
"./agents/tools/filter/setFeatureEffect/setFeatureEffect.js": "./dist/agents/tools/filter/setFeatureEffect/adapter.js",
|
|
15
|
+
"./agents/tools/help/listFields/listFields.js": "./dist/agents/tools/help/listFields/adapter.js",
|
|
16
|
+
"./agents/tools/navigation/goToAddress/goToAddress.js": "./dist/agents/tools/navigation/goToAddress/adapter.js",
|
|
17
|
+
"./agents/tools/navigation/goToBookmark/goToBookmark.js": "./dist/agents/tools/navigation/goToBookmark/adapter.js",
|
|
18
|
+
"./agents/tools/navigation/goToFeatures/goToFeatures.js": "./dist/agents/tools/navigation/goToFeatures/adapter.js",
|
|
19
|
+
"./agents/tools/navigation/goToFullExtent/goToFullExtent.js": "./dist/agents/tools/navigation/goToFullExtent/adapter.js",
|
|
20
|
+
"./agents/tools/navigation/goToHomeExtent/goToHomeExtent.js": "./dist/agents/tools/navigation/goToHomeExtent/adapter.js",
|
|
21
|
+
"./agents/tools/navigation/goToLayer/goToLayer.js": "./dist/agents/tools/navigation/goToLayer/adapter.js",
|
|
22
|
+
"./agents/tools/navigation/goToScale/goToScale.js": "./dist/agents/tools/navigation/goToScale/adapter.js",
|
|
23
|
+
"./agents/tools/navigation/goToViewpoint/goToViewpoint.js": "./dist/agents/tools/navigation/goToViewpoint/adapter.js",
|
|
24
|
+
"./agents/tools/navigation/goToZoom/goToZoom.js": "./dist/agents/tools/navigation/goToZoom/adapter.js",
|
|
25
|
+
"./agents/tools/query/getAttribute/getAttribute.js": "./dist/agents/tools/query/getAttribute/adapter.js",
|
|
26
|
+
"./agents/tools/query/getStatistics/getStatistics.js": "./dist/agents/tools/query/getStatistics/adapter.js",
|
|
27
|
+
"./agents/tools/query/getTopFeatures/getTopFeatures.js": "./dist/agents/tools/query/getTopFeatures/adapter.js",
|
|
28
|
+
"./agents/tools/query/queryFeatures/queryFeatures.js": "./dist/agents/tools/query/queryFeatures/adapter.js",
|
|
29
|
+
"./agents/tools/search/findRelevantFields/findRelevantFields.js": "./dist/agents/tools/search/findRelevantFields/adapter.js",
|
|
30
|
+
"./agents/tools/search/findRelevantLayers/findRelevantLayers.js": "./dist/agents/tools/search/findRelevantLayers/adapter.js",
|
|
31
|
+
"./agent-utils/index.js": "./dist/agent-utils/index.js",
|
|
12
32
|
"./agent-utils/BaseAgent.js": "./dist/agent-utils/BaseAgent.js",
|
|
13
33
|
"./agent-utils/FunctionAgent.js": "./dist/agent-utils/FunctionAgent.js",
|
|
14
34
|
"./agent-utils/LLMAgent.js": "./dist/agent-utils/LLMAgent.js",
|
|
@@ -38,22 +58,22 @@
|
|
|
38
58
|
],
|
|
39
59
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
40
60
|
"dependencies": {
|
|
61
|
+
"@arcgis/lumina": "5.2.0-next.100",
|
|
62
|
+
"@arcgis/toolkit": "5.2.0-next.100",
|
|
41
63
|
"@esri/arcgis-html-sanitizer": "~4.1.0",
|
|
42
|
-
"@langchain/core": "^1.
|
|
43
|
-
"@langchain/langgraph": "^1.
|
|
44
|
-
"@langchain/openai": "^1.
|
|
45
|
-
"langchain": "^1.
|
|
64
|
+
"@langchain/core": "^1.2.8",
|
|
65
|
+
"@langchain/langgraph": "^1.4.10",
|
|
66
|
+
"@langchain/openai": "^1.5.8",
|
|
67
|
+
"langchain": "^1.5.9",
|
|
46
68
|
"lit": "^3.3.0",
|
|
47
|
-
"marked": "~18.0.
|
|
69
|
+
"marked": "~18.0.11",
|
|
48
70
|
"tslib": "^2.8.1",
|
|
49
|
-
"zod": "^4.3
|
|
50
|
-
"@arcgis/lumina": "5.2.0-next.1",
|
|
51
|
-
"@arcgis/toolkit": "5.2.0-next.1"
|
|
71
|
+
"zod": "^4.4.3"
|
|
52
72
|
},
|
|
53
73
|
"peerDependencies": {
|
|
54
|
-
"@arcgis/core": "
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
74
|
+
"@arcgis/core": "5.2.0-next.100",
|
|
75
|
+
"@arcgis/map-components": "~5.2.0-next.100",
|
|
76
|
+
"@esri/calcite-components": "^5.2.0-next.65"
|
|
57
77
|
},
|
|
58
78
|
"css.customData": [
|
|
59
79
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/2AXF774U.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{g as s,h as e,v as i,y as t}from"./OH64RMOR.js";import"./YIMNOUTF.js";var o=s`:host{display:contents}.icon{padding:var(--calcite-spacing-sm);border-radius:var(--calcite-spacing-xl);background:var(--calcite-color-brand);color:var(--calcite-color-foreground-1)}.loading-container{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);padding:0 var(--calcite-spacing-sm)}.loading{display:flex;align-items:center;gap:var(--calcite-spacing-sm)}.text{font-style:italic;word-wrap:break-word;word-break:break-all;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical}.skeleton-block{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);width:100%}.skeleton-text{display:block;height:.95em;border-radius:var(--calcite-border-radius);background:linear-gradient(90deg,color-mix(in srgb,var(--calcite-color-foreground-2) 65%,transparent),color-mix(in srgb,var(--calcite-color-foreground-3) 85%,transparent),color-mix(in srgb,var(--calcite-color-foreground-2) 65%,transparent));background-size:200% 100%;animation:assistant-message-loading-shimmer 1.2s ease-in-out infinite;width:85%}.skeleton-text:last-child{width:70%}@keyframes assistant-message-loading-shimmer{0%{background-position:-150% 0}to{background-position:150% 0}}@media(prefers-reduced-motion){.skeleton-text{animation:none}}`,a=class extends i{constructor(){super(...arguments),this.loading=!1,this.loadingMessage=""}static{this.properties={loading:5,loadingMessage:1}}static{this.styles=o}render(){return this.loading?e`<arcgis-assistant-message footer-disabled><slot name=icon slot=icon><calcite-icon class="icon" icon=effects scale=s></calcite-icon></slot><slot name=content slot=content><div class="loading-container"><div class="loading"><calcite-loader label=loading inline></calcite-loader><div class="text">${this.loadingMessage}</div></div><div class="skeleton-block"><span class="skeleton-text"></span><span class="skeleton-text"></span></div></div></slot></arcgis-assistant-message>`:null}};t("arcgis-assistant-message-loading",a);export{a as ArcgisAssistantMessageLoading};
|