@arcgis/ai-components 5.2.0-next.112 → 5.2.0-next.114
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 +78 -53
- package/dist/agent-utils/types.d.ts +3 -0
- package/dist/agents/tools/filter/setFeatureEffect/adapter.js +17 -17
- package/dist/agents/tools/query/getStatistics/adapter.js +5 -5
- package/dist/agents/tools/query/getTopFeatures/adapter.js +3 -3
- package/dist/agents/tools/query/queryFeatures/adapter.js +1 -1
- package/dist/cdn/{EYY367WR.js → 2642ADON.js} +1 -1
- package/dist/cdn/{TWU3QXAS.js → 4PKMJMND.js} +1 -1
- package/dist/cdn/{IH26MIYY.js → 4XTSGMV7.js} +1 -1
- package/dist/cdn/{DG27JEYG.js → 64IWQ7A4.js} +1 -1
- package/dist/cdn/{HMNBUGH2.js → AKOLZ4JN.js} +1 -1
- package/dist/cdn/{4AQBRGO2.js → AXY6RA5N.js} +1 -1
- package/dist/cdn/{HHP5YLUI.js → C2RSZ3VK.js} +1 -1
- package/dist/cdn/{SZRJTQ54.js → CA3RNGPN.js} +1 -1
- package/dist/cdn/CLRFKSAT.js +2 -0
- package/dist/cdn/EJ7QJLUE.js +2 -0
- package/dist/cdn/{AVZ5Y6BK.js → ES54NWOB.js} +1 -1
- package/dist/cdn/{EDXTPEEU.js → FYIZOGHC.js} +1 -1
- package/dist/cdn/{TO2NY7EA.js → FZTNWDOU.js} +1 -1
- package/dist/cdn/{EVMIYZWD.js → H4BVWDNV.js} +1 -1
- package/dist/cdn/{JICNSK6Y.js → H5DD7DRB.js} +1 -1
- package/dist/cdn/{5A355PGH.js → HHQTKKYE.js} +1 -1
- package/dist/cdn/{7KSFIRXB.js → HXEAVHLM.js} +1 -1
- package/dist/cdn/IMRIVNHX.js +2 -0
- package/dist/cdn/{HMIDFTEI.js → J3D2JL4H.js} +1 -1
- package/dist/cdn/{AHCXG7XF.js → JNOH4PD5.js} +1 -1
- package/dist/cdn/{POZYDAU2.js → JO7U7E24.js} +1 -1
- package/dist/cdn/KA3S22NQ.js +2 -0
- package/dist/cdn/{ENM3L4AC.js → L3K457Y6.js} +1 -1
- package/dist/cdn/{TYATJUNF.js → LUYP76B7.js} +1 -1
- package/dist/cdn/{BL273EGZ.js → OT5ECP4V.js} +2 -0
- package/dist/cdn/{POL6HKCG.js → PMILRLSD.js} +1 -1
- package/dist/cdn/{VNLSYVPE.js → Q5WITJ3L.js} +1 -1
- package/dist/cdn/{BBPD2AS7.js → QXOOEBIR.js} +1 -1
- package/dist/cdn/{SITY6L4S.js → RGOCE3QN.js} +1 -1
- package/dist/cdn/{33SFAZQG.js → RMLCWLJC.js} +1 -1
- package/dist/cdn/{2MWUBKWI.js → TAMMDFVT.js} +1 -1
- package/dist/cdn/{33PB7ALY.js → TAWMLPK2.js} +1 -1
- package/dist/cdn/TGYRNH5D.js +2 -0
- package/dist/cdn/{LAVFUDUG.js → U7SYNCYR.js} +1 -1
- package/dist/cdn/{H6P3WP5D.js → UT6JA4TK.js} +1 -1
- package/dist/cdn/{RXF2NUOL.js → VF4BIBQT.js} +1 -1
- package/dist/cdn/{QNXI3WOF.js → XOULSLM7.js} +2 -2
- package/dist/cdn/Y27GVWWU.js +2 -0
- package/dist/cdn/{7EHOFQ2P.js → Y5O6VNSQ.js} +1 -1
- package/dist/cdn/{DWH23NJN.js → YR7EYQ4X.js} +1 -1
- package/dist/cdn/{DE26DAW5.js → YYDZAPJP.js} +1 -1
- package/dist/cdn/{C7JPWFZE.js → ZGQ27DU2.js} +1 -1
- package/dist/cdn/agent-utils/index.js +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/SKILL.js +1 -1
- package/dist/chunks/SKILL2.js +1 -1
- package/dist/chunks/dataExplorationAgent.js +3 -3
- package/dist/chunks/intent_prompt.js +2 -0
- package/dist/chunks/resolveGeometryFilter.js +149 -0
- package/dist/chunks/state.js +50 -39
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/4IU63OWQ.js +0 -2
- package/dist/cdn/JQYLMTDP.js +0 -2
- package/dist/cdn/OMF6ITSG.js +0 -2
- package/dist/cdn/SHI76XUV.js +0 -2
- package/dist/cdn/UHICISBZ.js +0 -2
- package/dist/cdn/ZFOG3KXV.js +0 -2
- package/dist/chunks/resolvePointGeometryFilter.js +0 -92
|
@@ -2,36 +2,36 @@
|
|
|
2
2
|
import "@arcgis/core/identity/IdentityManager.js";
|
|
3
3
|
import "@arcgis/core/portal/Portal.js";
|
|
4
4
|
import "@arcgis/core/request.js";
|
|
5
|
-
import { isGraphInterrupt as
|
|
5
|
+
import { isGraphInterrupt as w } from "@langchain/langgraph/web";
|
|
6
6
|
import "@arcgis/toolkit/string";
|
|
7
7
|
import "../chunks/generateLayerDescriptions.js";
|
|
8
|
-
import "@langchain/core/messages";
|
|
8
|
+
import { ToolMessage as y } from "@langchain/core/messages";
|
|
9
9
|
import "@langchain/core/callbacks/dispatch/web";
|
|
10
10
|
import "@langchain/core/callbacks/base";
|
|
11
11
|
import { c } from "../chunks/aiFactory.js";
|
|
12
|
-
import { watch as
|
|
12
|
+
import { watch as v } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
13
|
import "@arcgis/core/layers/FeatureLayer.js";
|
|
14
14
|
import { ChatPromptTemplate as u } from "@langchain/core/prompts";
|
|
15
|
-
import { property as
|
|
16
|
-
import { createAgent as
|
|
17
|
-
import { BaseAgent as
|
|
18
|
-
import { convertToLangChainMiddlewares as
|
|
19
|
-
import { c as
|
|
20
|
-
import { c as
|
|
21
|
-
import { c as
|
|
22
|
-
var
|
|
23
|
-
for (var o =
|
|
24
|
-
(
|
|
25
|
-
return
|
|
15
|
+
import { property as p, subclass as S } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
16
|
+
import { createAgent as d, providerStrategy as T } from "langchain";
|
|
17
|
+
import { BaseAgent as _ } from "./BaseAgent.js";
|
|
18
|
+
import { convertToLangChainMiddlewares as h } from "./middlewares/middleware.js";
|
|
19
|
+
import { c as A } from "../chunks/graph.js";
|
|
20
|
+
import { c as M } from "../chunks/state.js";
|
|
21
|
+
import { c as l, h as x } from "../chunks/utils.js";
|
|
22
|
+
var b = Object.defineProperty, P = Object.getOwnPropertyDescriptor, m = (t, s, r, e) => {
|
|
23
|
+
for (var o = e > 1 ? void 0 : e ? P(s, r) : s, i = t.length - 1, n; i >= 0; i--)
|
|
24
|
+
(n = t[i]) && (o = (e ? n(s, r, o) : n(o)) || o);
|
|
25
|
+
return e && o && b(s, r, o), o;
|
|
26
26
|
};
|
|
27
|
-
let
|
|
27
|
+
let a = class extends _ {
|
|
28
28
|
//#region Lifecycle
|
|
29
29
|
constructor(t) {
|
|
30
30
|
super(t), this.modelTier = "default";
|
|
31
31
|
}
|
|
32
32
|
initialize() {
|
|
33
33
|
this.addHandles(
|
|
34
|
-
|
|
34
|
+
v(
|
|
35
35
|
() => [
|
|
36
36
|
this.description,
|
|
37
37
|
this.inputSchema,
|
|
@@ -54,16 +54,16 @@ let i = class extends S {
|
|
|
54
54
|
return [this.inputSchema, this.outputSchema].filter(Boolean);
|
|
55
55
|
}
|
|
56
56
|
generate() {
|
|
57
|
-
const t = this.prompt ? u.fromTemplate(this.prompt).inputVariables : [],
|
|
57
|
+
const t = this.prompt ? u.fromTemplate(this.prompt).inputVariables : [], s = M(
|
|
58
58
|
this.getSchemas(),
|
|
59
59
|
t
|
|
60
60
|
);
|
|
61
|
-
this._set("workspace",
|
|
62
|
-
const r = this.id,
|
|
61
|
+
this._set("workspace", s);
|
|
62
|
+
const r = this.id, e = { [r]: this._invoke.bind(this) }, o = [{ from: r, decide: () => {
|
|
63
63
|
} }];
|
|
64
64
|
this._set(
|
|
65
65
|
"createGraph",
|
|
66
|
-
() =>
|
|
66
|
+
() => A(e, o, s, {
|
|
67
67
|
agent: this,
|
|
68
68
|
entryNode: r,
|
|
69
69
|
middlewares: this.middlewares
|
|
@@ -72,43 +72,50 @@ let i = class extends S {
|
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region Private Methods
|
|
75
|
-
async _invoke(t,
|
|
75
|
+
async _invoke(t, s) {
|
|
76
76
|
try {
|
|
77
|
-
return this.outputSchema ? await this._invokeStructured(t,
|
|
77
|
+
return this.outputSchema ? await this._invokeStructured(t, s) : await this._invokeUnstructured(t, s);
|
|
78
78
|
} catch (r) {
|
|
79
|
-
if (
|
|
79
|
+
if (w(r))
|
|
80
80
|
throw r;
|
|
81
|
-
const
|
|
82
|
-
return
|
|
81
|
+
const e = r instanceof Error ? r.message : String(r);
|
|
82
|
+
return l({ outputMessage: e }, "failed", e);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
async _invokeStructured(t,
|
|
85
|
+
async _invokeStructured(t, s) {
|
|
86
86
|
if (!this.outputSchema)
|
|
87
87
|
throw new Error("Output schema is required for structured invocation.");
|
|
88
|
-
const
|
|
88
|
+
const e = await d({
|
|
89
89
|
model: await c({ modelTier: this.modelTier }),
|
|
90
90
|
systemPrompt: await this._getPromptWithInputVariables(t),
|
|
91
91
|
tools: this._getTools(),
|
|
92
92
|
checkpointer: !0,
|
|
93
|
-
middleware:
|
|
94
|
-
responseFormat:
|
|
95
|
-
}).invoke({ messages: t.agentExecutionContext.messages },
|
|
96
|
-
if (!("structuredResponse" in
|
|
93
|
+
middleware: h(this.middlewares),
|
|
94
|
+
responseFormat: T(this.outputSchema)
|
|
95
|
+
}).invoke({ messages: t.agentExecutionContext.messages }, s);
|
|
96
|
+
if (!("structuredResponse" in e) || e.structuredResponse === void 0)
|
|
97
97
|
throw new Error("LLMAgent did not receive structured output from createAgent.");
|
|
98
|
-
return
|
|
98
|
+
return {
|
|
99
|
+
...x(e.structuredResponse, this.outputSchema, e.messages),
|
|
100
|
+
sharedResourceAdditions: g(e.messages)
|
|
101
|
+
};
|
|
99
102
|
}
|
|
100
|
-
async _invokeUnstructured(t,
|
|
101
|
-
const o = (await
|
|
103
|
+
async _invokeUnstructured(t, s) {
|
|
104
|
+
const o = (await d({
|
|
102
105
|
model: await c({ modelTier: this.modelTier }),
|
|
103
106
|
systemPrompt: await this._getPromptWithInputVariables(t),
|
|
104
107
|
tools: this._getTools(),
|
|
105
108
|
checkpointer: !0,
|
|
106
|
-
middleware:
|
|
107
|
-
}).invoke({ messages: t.agentExecutionContext.messages },
|
|
108
|
-
return
|
|
109
|
-
{
|
|
109
|
+
middleware: h(this.middlewares)
|
|
110
|
+
}).invoke({ messages: t.agentExecutionContext.messages }, s)).messages, n = o.at(-1)?.text ?? "", f = n.trim() || "LLMAgent completed.";
|
|
111
|
+
return l(
|
|
112
|
+
{
|
|
113
|
+
agentExecutionContext: { ...t.agentExecutionContext, messages: o },
|
|
114
|
+
outputMessage: n,
|
|
115
|
+
sharedResourceAdditions: g(o)
|
|
116
|
+
},
|
|
110
117
|
"success",
|
|
111
|
-
|
|
118
|
+
f
|
|
112
119
|
);
|
|
113
120
|
}
|
|
114
121
|
async _getPromptWithInputVariables(t) {
|
|
@@ -120,23 +127,41 @@ let i = class extends S {
|
|
|
120
127
|
//#endregion
|
|
121
128
|
};
|
|
122
129
|
m([
|
|
123
|
-
|
|
124
|
-
],
|
|
130
|
+
p()
|
|
131
|
+
], a.prototype, "prompt", 2);
|
|
125
132
|
m([
|
|
126
|
-
|
|
127
|
-
],
|
|
133
|
+
p()
|
|
134
|
+
], a.prototype, "tools", 2);
|
|
128
135
|
m([
|
|
129
|
-
|
|
130
|
-
],
|
|
136
|
+
p()
|
|
137
|
+
], a.prototype, "inputSchema", 2);
|
|
131
138
|
m([
|
|
132
|
-
|
|
133
|
-
],
|
|
139
|
+
p()
|
|
140
|
+
], a.prototype, "outputSchema", 2);
|
|
134
141
|
m([
|
|
135
|
-
|
|
136
|
-
],
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
],
|
|
142
|
+
p()
|
|
143
|
+
], a.prototype, "modelTier", 2);
|
|
144
|
+
a = m([
|
|
145
|
+
S("LLMAgent")
|
|
146
|
+
], a);
|
|
147
|
+
function g(t) {
|
|
148
|
+
const s = [];
|
|
149
|
+
for (const r of t)
|
|
150
|
+
if (y.isInstance(r) && r.status !== "error") {
|
|
151
|
+
const e = r.artifact;
|
|
152
|
+
if (typeof e == "object" && e !== null && "sharedResourceAdditions" in e) {
|
|
153
|
+
const o = e.sharedResourceAdditions;
|
|
154
|
+
if (Array.isArray(o))
|
|
155
|
+
for (const i of o)
|
|
156
|
+
s.push({
|
|
157
|
+
kind: i.kind,
|
|
158
|
+
description: i.description,
|
|
159
|
+
payload: i.payload
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return s;
|
|
164
|
+
}
|
|
140
165
|
export {
|
|
141
|
-
|
|
166
|
+
a as LLMAgent
|
|
142
167
|
};
|
|
@@ -2,6 +2,7 @@ import type z from "zod";
|
|
|
2
2
|
import type { BaseChannel, BinaryOperatorAggregate } from "@langchain/langgraph/channels";
|
|
3
3
|
import type { AnnotationRoot, StateDefinitionInit, StateGraph } from "@langchain/langgraph/web";
|
|
4
4
|
import type { AgentExecutionContext, AgentRegistration, AgentStatus } from "../utils/index.js";
|
|
5
|
+
import type { SharedResourceInput } from "../orchestrator/types/types.js";
|
|
5
6
|
|
|
6
7
|
export type AgentData = Record<string, unknown>;
|
|
7
8
|
|
|
@@ -48,6 +49,7 @@ export type AgentRuntimeState = {
|
|
|
48
49
|
summary: string;
|
|
49
50
|
/** The status field represents the current status of the agent execution, which can be used to indicate success, failure, or other relevant states. */
|
|
50
51
|
status?: AgentStatus;
|
|
52
|
+
sharedResourceAdditions?: readonly SharedResourceInput[];
|
|
51
53
|
};
|
|
52
54
|
|
|
53
55
|
export type AgentGraphState<TState extends AgentData = EmptyAgentData> = AgentRuntimeState
|
|
@@ -140,6 +142,7 @@ export type AgentStateAnnotation<TState extends AgentData> = AnnotationRoot<{
|
|
|
140
142
|
outputMessage: BaseChannel<string, unknown, unknown>;
|
|
141
143
|
summary: BaseChannel<string, unknown, unknown>;
|
|
142
144
|
status: BaseChannel<AgentStatus | undefined, unknown, unknown>;
|
|
145
|
+
sharedResourceAdditions: BaseChannel<readonly SharedResourceInput[] | undefined, unknown, unknown>;
|
|
143
146
|
}>;
|
|
144
147
|
|
|
145
148
|
/**
|
|
@@ -3,25 +3,25 @@ import e from "zod";
|
|
|
3
3
|
import { tool as h } from "@langchain/core/tools";
|
|
4
4
|
import m from "@arcgis/core/layers/support/FeatureEffect.js";
|
|
5
5
|
import b from "@arcgis/core/layers/support/FeatureFilter.js";
|
|
6
|
-
import { g as y, s as w, r as I } from "../../../../chunks/
|
|
6
|
+
import { g as y, s as w, r as I } from "../../../../chunks/resolveGeometryFilter.js";
|
|
7
7
|
import { f as g } from "../../../../chunks/fetchAgentContext.js";
|
|
8
8
|
import { distanceUnitsSchema as d } from "../../shared/types.js";
|
|
9
9
|
const v = async (t, i, u, n, r, c) => {
|
|
10
|
-
const s = t.map?.allLayers.find((
|
|
10
|
+
const s = t.map?.allLayers.find((o) => o.id === i);
|
|
11
11
|
if (!s)
|
|
12
12
|
return { success: !1, error: `Layer '${i}' not found.` };
|
|
13
|
-
const
|
|
14
|
-
|
|
13
|
+
const a = s.createQuery();
|
|
14
|
+
a.where = u ?? "1=1", n && (a.geometry = n, a.spatialRelationship = "intersects", r && (a.distance = r), c && (a.units = c));
|
|
15
15
|
try {
|
|
16
|
-
const { extent:
|
|
17
|
-
return !
|
|
16
|
+
const { extent: o, count: l } = await s.queryExtent(a);
|
|
17
|
+
return !o || l === 0 ? {
|
|
18
18
|
success: !1,
|
|
19
|
-
error: `No features found for filter (where: ${
|
|
20
|
-
} : (await t.goTo(
|
|
21
|
-
} catch (
|
|
19
|
+
error: `No features found for filter (where: ${a.where}${n ? ", spatial filter used" : ""})`
|
|
20
|
+
} : (await t.goTo(o), { success: !0 });
|
|
21
|
+
} catch (o) {
|
|
22
22
|
return {
|
|
23
23
|
success: !1,
|
|
24
|
-
error:
|
|
24
|
+
error: o instanceof Error ? o.message : String(o)
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
}, x = async (t, i, u, n, r, c) => {
|
|
@@ -30,17 +30,17 @@ const v = async (t, i, u, n, r, c) => {
|
|
|
30
30
|
);
|
|
31
31
|
if (!s)
|
|
32
32
|
return `Could not find target layer with ID: ${t.layerId}`;
|
|
33
|
-
let
|
|
33
|
+
let a;
|
|
34
34
|
if (r) {
|
|
35
35
|
const f = await y(r, i);
|
|
36
36
|
if ("error" in f)
|
|
37
37
|
return f.error;
|
|
38
|
-
|
|
38
|
+
a = f.geometry;
|
|
39
39
|
}
|
|
40
40
|
if (s.featureEffect = null, s.featureEffect = new m({
|
|
41
41
|
filter: new b({
|
|
42
42
|
...t.objectIds?.length ? { objectIds: t.objectIds } : { where: t.where },
|
|
43
|
-
geometry:
|
|
43
|
+
geometry: a,
|
|
44
44
|
spatialRelationship: "intersects",
|
|
45
45
|
distance: r?.distance,
|
|
46
46
|
units: r?.units
|
|
@@ -49,11 +49,11 @@ const v = async (t, i, u, n, r, c) => {
|
|
|
49
49
|
excludedEffect: n
|
|
50
50
|
}), s.visible = !0, c)
|
|
51
51
|
return `Applied feature effects to "${s.title ?? t.layerId}" within current map extent.`;
|
|
52
|
-
const
|
|
52
|
+
const o = t.objectIds?.length ? `${s.objectIdField} IN (${t.objectIds.join(",")})` : t.where, l = await v(
|
|
53
53
|
i,
|
|
54
54
|
t.layerId,
|
|
55
|
-
a,
|
|
56
55
|
o,
|
|
56
|
+
a,
|
|
57
57
|
r?.distance,
|
|
58
58
|
r?.units
|
|
59
59
|
), p = s.title ?? t.layerId;
|
|
@@ -65,7 +65,7 @@ const v = async (t, i, u, n, r, c) => {
|
|
|
65
65
|
includedEffect: n = "drop-shadow(2px, 2px, 2px, gray)",
|
|
66
66
|
excludedEffect: r = "grayscale(100%) opacity(60%) blur(2px)"
|
|
67
67
|
}, c) => {
|
|
68
|
-
const { mapView: s } = g(c, ["mapView"]),
|
|
68
|
+
const { mapView: s } = g(c, ["mapView"]), a = I(
|
|
69
69
|
i,
|
|
70
70
|
c.state?.agentExecutionContext?.sharedResources
|
|
71
71
|
);
|
|
@@ -74,7 +74,7 @@ const v = async (t, i, u, n, r, c) => {
|
|
|
74
74
|
s,
|
|
75
75
|
n,
|
|
76
76
|
r,
|
|
77
|
-
|
|
77
|
+
a,
|
|
78
78
|
u
|
|
79
79
|
);
|
|
80
80
|
}, E = e.object({
|
|
@@ -5,7 +5,7 @@ import E from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
|
5
5
|
import R from "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
6
6
|
import V from "@arcgis/core/layers/support/FeatureFilter.js";
|
|
7
7
|
import { c as x, m as v } from "../../../../chunks/mergeWhereClauses.js";
|
|
8
|
-
import { g as O, i as S, a as C, s as N, r as G } from "../../../../chunks/
|
|
8
|
+
import { g as O, i as S, a as C, s as N, r as G } from "../../../../chunks/resolveGeometryFilter.js";
|
|
9
9
|
import { f as U } from "../../../../chunks/fetchAgentContext.js";
|
|
10
10
|
import { f as W } from "../../../../chunks/fetchService.js";
|
|
11
11
|
import { distanceUnitsSchema as I } from "../../shared/types.js";
|
|
@@ -116,7 +116,7 @@ const D = t.object({
|
|
|
116
116
|
where: t.string().describe("The SQL-92 where clause representing the features from which to filter."),
|
|
117
117
|
distance: t.number().optional().describe("The buffer distance around the geometry."),
|
|
118
118
|
units: I.optional().describe("The units for the distance buffer.")
|
|
119
|
-
}),
|
|
119
|
+
}), $ = t.object({
|
|
120
120
|
point: t.object({
|
|
121
121
|
x: t.number().describe("X coordinate (longitude) from navigation result"),
|
|
122
122
|
y: t.number().describe("Y coordinate (latitude) from navigation result"),
|
|
@@ -126,12 +126,12 @@ const D = t.object({
|
|
|
126
126
|
}).describe("Point coordinates from a previous navigation/geocoding result"),
|
|
127
127
|
distance: t.number().optional().describe("Optional buffer distance around the point."),
|
|
128
128
|
units: I.optional().describe("The units for the distance buffer.")
|
|
129
|
-
}),
|
|
129
|
+
}), P = t.object({
|
|
130
130
|
targetLayer: t.object({
|
|
131
131
|
layerId: t.string().describe("The layerId of the layer containing the field from which to get a value."),
|
|
132
132
|
where: t.string().describe("The SQL-92 where clause representing the feature from which to get an attribute value.")
|
|
133
133
|
}),
|
|
134
|
-
geometryFilter: t.union([D,
|
|
134
|
+
geometryFilter: t.union([D, $, N]).optional().describe(
|
|
135
135
|
"Geometry filter for spatial queries. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location. Use 'point' for inline coordinates or 'layerId/where' for features from another layer."
|
|
136
136
|
),
|
|
137
137
|
fieldName: t.string().describe("The name of the field for which to get statistics. STRICTLY DO NOT use OBJECTID. Use any other field"),
|
|
@@ -151,7 +151,7 @@ DO NOT USE FOR:
|
|
|
151
151
|
- Simple counts of features matching a condition — use queryFeatures instead
|
|
152
152
|
|
|
153
153
|
Only call this tool when the answer requires computing an aggregate (avg, max, min, sum, median, stddev) over a field's values, not just counting or listing features.`,
|
|
154
|
-
schema:
|
|
154
|
+
schema: P
|
|
155
155
|
});
|
|
156
156
|
export {
|
|
157
157
|
ee as getStatisticsTool
|
|
@@ -5,7 +5,7 @@ import T from "@arcgis/core/rest/support/TopFeaturesQuery.js";
|
|
|
5
5
|
import B from "@arcgis/core/rest/support/TopFilter.js";
|
|
6
6
|
import { m as C, c as v } from "../../../../chunks/mergeWhereClauses.js";
|
|
7
7
|
import { a as I } from "../../../../chunks/formatFeatureAttributes.js";
|
|
8
|
-
import { g as q, s as x, r as G } from "../../../../chunks/
|
|
8
|
+
import { g as q, s as x, r as G } from "../../../../chunks/resolveGeometryFilter.js";
|
|
9
9
|
import { f as N } from "../../../../chunks/fetchAgentContext.js";
|
|
10
10
|
import { distanceUnitsSchema as y } from "../../shared/types.js";
|
|
11
11
|
const k = (s) => s.flatMap((t) => t.split(",")).map((t) => t.trim()).map((t) => t.split(/\s+/u)[0]?.replace(/^"|"$/gu, "")).filter((t) => !!t), R = async (s, t, n, i, l) => {
|
|
@@ -135,11 +135,11 @@ const k = (s) => s.flatMap((t) => t.split(",")).map((t) => t.trim()).map((t) =>
|
|
|
135
135
|
useCurrentExtent: e.boolean().optional().describe(
|
|
136
136
|
"Set to true ONLY when user explicitly asks about features 'in my view', 'on my map', 'I am looking at'. Default is false (queries entire layer)."
|
|
137
137
|
)
|
|
138
|
-
}),
|
|
138
|
+
}), P = S(j, {
|
|
139
139
|
name: "getTopFeatures",
|
|
140
140
|
description: 'Returns top N features ranked by an existing field value. Use for "highest", "lowest", "top N" questions where ranking is based on a field that already exists in the data (e.g., population, value, date, depth). orderByFields must be actual field names with ASC/DESC. Do NOT use aggregate functions like COUNT(), SUM(), AVG() - those require getStatistics.',
|
|
141
141
|
schema: U
|
|
142
142
|
});
|
|
143
143
|
export {
|
|
144
|
-
|
|
144
|
+
P as getTopFeaturesTool
|
|
145
145
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { tool as v } from "@langchain/core/tools";
|
|
3
3
|
import { a as C } from "../../../../chunks/formatFeatureAttributes.js";
|
|
4
|
-
import { g as R, i as F, a as I, s as G, r as O } from "../../../../chunks/
|
|
4
|
+
import { g as R, i as F, a as I, s as G, r as O } from "../../../../chunks/resolveGeometryFilter.js";
|
|
5
5
|
import { c as j, m as x } from "../../../../chunks/mergeWhereClauses.js";
|
|
6
6
|
import t from "zod";
|
|
7
7
|
import { f as N } from "../../../../chunks/fetchAgentContext.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as u,b as g,c as S}from"./P4XZMBU5.js";import a from"./
|
|
2
|
+
import{a as u,b as g,c as S}from"./P4XZMBU5.js";import a from"./LUYP76B7.js";import{d as m,e as f}from"./CLRFKSAT.js";import"./FS7GXTTQ.js";import{P as p}from"./LOQ2PKV5.js";import"./IYLFJCJ2.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([{property:h,subclass:l},{watch:w},d])=>{var v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,o=(t,e,s,r)=>{for(var i=r>1?void 0:r?y(e,s):e,a=t.length-1,c;a>=0;a--)(c=t[a])&&(i=(r?c(e,s,i):c(i))||i);return r&&i&&v(e,s,i),i},n=class extends d{constructor(t){super(t)}initialize(){this.addHandles(w(()=>[this.name,this.description,this.inputSchema,this.outputSchema,this.execute],()=>{this.generate()},{initial:!0,sync:!0}))}getSchemas(){return[this.inputSchema,this.outputSchema].filter(Boolean)}generate(){let t=m(this.getSchemas());this._set("workspace",t);let e=`${this.id}-execute`,s={[e]:this._invokeExecuteNode.bind(this)},r=[{from:e,decide:()=>{}}];this._set("createGraph",()=>f(s,r,t,{agent:this,entryNode:e,middlewares:this.middlewares}))}async _invokeExecuteNode(t,e){try{return this.outputSchema?await this._invokeStructured(t,e):await this._invokeUnstructured(t,e)}catch(s){if(p(s))throw s;let r=s instanceof Error?s.message:String(s);return u({outputMessage:r},"failed",r)}}async _invokeStructured(t,e){if(!this.outputSchema)throw new Error("Output schema is required for structured invocation.");let s=this._validateInputState(t),r=await this.execute(s,e);if(typeof r=="string")throw new Error("Expected execute function to return an object matching the output schema, but received a string.");return g(r,this.outputSchema,t.agentExecutionContext.messages)}async _invokeUnstructured(t,e){let s=this._validateInputState(t),r=await this.execute(s,e),i=typeof r=="string"?r:JSON.stringify(r),a=i.trim()||"FunctionAgent completed.";return u({outputMessage:i},"success",a)}_validateInputState(t){if(!this.inputSchema)return t;let e=this.inputSchema.safeParse(S(t,this.inputSchema));if(!e.success)throw new Error(`FunctionAgent input schema validation failed: ${e.error.message}`);return{...t,...e.data}}};o([h()],n.prototype,"inputSchema",2);o([h()],n.prototype,"outputSchema",2);o([h()],n.prototype,"execute",2);n=o([l("FunctionAgent")],n);return n},"core/accessorSupport/decorators","core/reactiveUtils",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
var a=new Map([["clearFilters",async()=>(await import("./UO5PBOQR.js")).clearFiltersTool],["resetMap",async()=>(await import("./HIAQARIQ.js")).resetMapTool],["setFeatureEffect",async()=>(await import("./
|
|
2
|
+
var a=new Map([["clearFilters",async()=>(await import("./UO5PBOQR.js")).clearFiltersTool],["resetMap",async()=>(await import("./HIAQARIQ.js")).resetMapTool],["setFeatureEffect",async()=>(await import("./FYIZOGHC.js").then(m=>m.default.then(e=>({setFeatureEffectTool:e})))).setFeatureEffectTool],["listLayerFields",async()=>(await import("./HR6GWPKX.js")).listLayerFieldsTool],["goToAddress",async()=>(await import("./2BNQ6A6J.js").then(m=>m.default.then(e=>({goToAddressTool:e})))).goToAddressTool],["goToBookmark",async()=>(await import("./VR3CF3ZY.js")).goToBookmarkTool],["goToFeatures",async()=>(await import("./TVEEQSMF.js")).goToFeaturesTool],["goToFullExtent",async()=>(await import("./KMLJS2VW.js").then(m=>m.default.then(e=>({goToFullExtentTool:e})))).goToFullExtentTool],["goToHomeExtent",async()=>(await import("./KH4V4I3W.js")).goToHomeExtentTool],["goToLayer",async()=>(await import("./DKA6PSYN.js")).goToLayerTool],["goToScale",async()=>(await import("./6OUIUXAJ.js")).goToScaleTool],["goToViewpoint",async()=>(await import("./STHBRTTD.js").then(m=>m.default.then(e=>({goToViewpointTool:e})))).goToViewpointTool],["goToZoom",async()=>(await import("./K7XWGSLN.js")).goToZoomTool],["findRelevantFields",async()=>(await import("./DB2TFPIO.js").then(m=>m.default.then(e=>({findRelevantFieldsTool:e})))).findRelevantFieldsTool],["findRelevantLayers",async()=>(await import("./73TMZQI5.js")).findRelevantLayersTool],["getAttribute",async()=>(await import("./WKZHFSH3.js").then(m=>m.default.then(e=>({getAttributeTool:e})))).getAttributeTool],["getStatistics",async()=>(await import("./VF4BIBQT.js").then(m=>m.default.then(e=>({getStatisticsTool:e})))).getStatisticsTool],["getTopFeatures",async()=>(await import("./RGOCE3QN.js").then(m=>m.default.then(e=>({getTopFeaturesTool:e})))).getTopFeaturesTool],["queryFeatures",async()=>(await import("./FZTNWDOU.js").then(m=>m.default.then(e=>({queryFeaturesTool:e})))).queryFeaturesTool]]);async function e(o){let t=a.get(o);if(!t)throw new Error(`"${o}" tool not found`);return await t()}export{e as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./LUYP76B7.js";import{e as l}from"./CLRFKSAT.js";import"./FS7GXTTQ.js";import"./LOQ2PKV5.js";import"./IYLFJCJ2.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([{property:p,subclass:m},{watch:w},c])=>{var d=Object.defineProperty,f=Object.getOwnPropertyDescriptor,n=(e,r,s,o)=>{for(var t=o>1?void 0:o?f(r,s):r,i=e.length-1,a;i>=0;i--)(a=e[i])&&(t=(o?a(r,s,t):a(t))||t);return o&&t&&d(r,s,t),t},h=class extends c{constructor(e){super(e)}initialize(){this.addHandles(w(()=>[this.name,this.description,this.inputSchema,this.outputSchema,this.workflow],()=>this.generate(),{initial:!0,sync:!0}))}getSchemas(){return[this.inputSchema,...this.workflow.getAgents().flatMap(e=>e.getSchemas()),this.outputSchema].filter(Boolean)}generate(){let{workspace:e,createGraph:r}=this.workflow.generate();if(this._set("workspace",e),!this.middlewares?.length)this._set("createGraph",r);else{let s=this.id,o={[s]:async(i,a)=>await r().compile().invoke(i,a)},t=[{from:s,decide:()=>{}}];this._set("createGraph",()=>l(o,t,e,{agent:this,entryNode:s,middlewares:this.middlewares}))}}};n([p()],h.prototype,"workflow",2);n([p()],h.prototype,"inputSchema",2);n([p()],h.prototype,"outputSchema",2);h=n([m("WorkflowAgent")],h);return h},"core/accessorSupport/decorators","core/reactiveUtils",a)
|