@arcgis/ai-components 5.1.0-next.99 → 5.2.0-next.0
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/README.md +2 -2
- package/dist/agent-utils/BaseAgent.d.ts +90 -0
- package/dist/agent-utils/BaseAgent.js +87 -0
- package/dist/agent-utils/FunctionAgent.d.ts +64 -0
- package/dist/agent-utils/FunctionAgent.js +98 -0
- package/dist/agent-utils/LLMAgent.d.ts +65 -0
- package/dist/agent-utils/LLMAgent.js +139 -0
- package/dist/agent-utils/WorkflowAgent.d.ts +44 -0
- package/dist/agent-utils/WorkflowAgent.js +70 -0
- package/dist/agent-utils/middlewares/humanInTheLoop.d.ts +152 -0
- package/dist/agent-utils/middlewares/humanInTheLoop.js +94 -0
- package/dist/agent-utils/middlewares/middleware.d.ts +25 -0
- package/dist/agent-utils/middlewares/middleware.js +44 -0
- package/dist/agent-utils/middlewares/trace.d.ts +25 -0
- package/dist/agent-utils/middlewares/trace.js +50 -0
- package/dist/agent-utils/middlewares/types.d.ts +123 -0
- package/dist/agent-utils/middlewares/types.js +2 -0
- package/dist/agent-utils/tools/FunctionTool.d.ts +127 -0
- package/dist/agent-utils/tools/FunctionTool.js +80 -0
- package/dist/agent-utils/types.d.ts +152 -0
- package/dist/agent-utils/workflows/BaseWorkflow.d.ts +87 -0
- package/dist/agent-utils/workflows/ConditionalWorkflow.d.ts +72 -0
- package/dist/agent-utils/workflows/ConditionalWorkflow.js +61 -0
- package/dist/agent-utils/workflows/LoopWorkflow.d.ts +58 -0
- package/dist/agent-utils/workflows/LoopWorkflow.js +56 -0
- package/dist/agent-utils/workflows/ParallelWorkflow.d.ts +68 -0
- package/dist/agent-utils/workflows/ParallelWorkflow.js +129 -0
- package/dist/agent-utils/workflows/RouterWorkflow.d.ts +63 -0
- package/dist/agent-utils/workflows/RouterWorkflow.js +75 -0
- package/dist/agent-utils/workflows/SequentialWorkflow.d.ts +56 -0
- package/dist/agent-utils/workflows/SequentialWorkflow.js +69 -0
- package/dist/agent-utils/workflows/SwitchWorkflow.d.ts +74 -0
- package/dist/agent-utils/workflows/SwitchWorkflow.js +84 -0
- package/dist/assets/embeddings.worker-k9_Ou679.js +1 -0
- package/dist/cdn/{24MYCR6F.js → 23EQTPO3.js} +2 -2
- package/dist/cdn/{Z3DVGFEE.js → 2AXF774U.js} +2 -2
- package/dist/cdn/{UK6CP7BR.js → 3PKJWIC3.js} +2 -2
- package/dist/cdn/462JBSEV.js +422 -0
- package/dist/cdn/5QAHYX7Y.js +5 -0
- package/dist/cdn/{YVTKUITE.js → 5ZZGKP7N.js} +2 -2
- package/dist/cdn/{VHOF6SUZ.js → 6MAINSY5.js} +4 -3
- package/dist/cdn/6R6AY3D3.js +42 -0
- package/dist/cdn/{DMLSCJAM.js → 6YMR4QSD.js} +2 -2
- package/dist/cdn/{LXFCO34K.js → 7BCR6TUO.js} +2 -2
- package/dist/cdn/{EUNEQNYC.js → 7GH7VSB2.js} +1 -1
- package/dist/cdn/{YNJYG2RG.js → 7PLV4QH6.js} +2 -2
- package/dist/cdn/{JDL3HFFX.js → 7RCQFLPP.js} +2 -2
- package/dist/cdn/AMP6IALT.js +2 -0
- package/dist/cdn/{Y3AUHNRX.js → AO7BQHKC.js} +2 -2
- package/dist/cdn/{K6LVZHWM.js → AXDZBBNL.js} +2 -2
- package/dist/cdn/{WBRZZ4FB.js → DDLZOMUY.js} +2 -2
- package/dist/cdn/DHOVCT6R.js +2 -0
- package/dist/cdn/EF453FJ2.js +3 -0
- package/dist/cdn/{ESTSYVJP.js → F2AHA4GB.js} +2 -2
- package/dist/cdn/FB5DRKEB.js +14 -0
- package/dist/cdn/FX5JFRDL.js +2 -0
- package/dist/cdn/{CFT5BBC6.js → FX7UOGHP.js} +2 -2
- package/dist/cdn/{5PT7ZFXF.js → GM3QP65I.js} +2 -2
- package/dist/cdn/H7422XUG.js +2 -0
- package/dist/cdn/HB5A5R2E.js +2 -0
- package/dist/cdn/{LSGRWCAO.js → KMQ3SP4I.js} +2 -2
- package/dist/cdn/{7EXACS27.js → LBVX2JYG.js} +2 -2
- package/dist/cdn/{MZJGADGH.js → LQ6R5YRN.js} +2 -2
- package/dist/cdn/METXWS7V.js +166 -0
- package/dist/cdn/{3QC3BRZP.js → MH5RPXHM.js} +2 -2
- package/dist/cdn/N2VQD46V.js +106 -0
- package/dist/cdn/{54ATSQPS.js → NAUXSHIE.js} +18 -18
- package/dist/cdn/{SFREIREB.js → NE7E52YR.js} +2 -2
- package/dist/cdn/{2YEKZADB.js → NVI3I46B.js} +2 -2
- package/dist/cdn/{YGW7TUNX.js → OAVEHGB6.js} +1 -1
- package/dist/cdn/{DSEMD4M2.js → OH64RMOR.js} +3 -3
- package/dist/cdn/{PTGKT5P6.js → P6OPJQMC.js} +2 -2
- package/dist/cdn/QDO2AO53.js +36 -0
- package/dist/cdn/{TRDKA5Y6.js → QR54T33D.js} +2 -2
- package/dist/cdn/{457RLS3H.js → RVOAPUBN.js} +2 -2
- package/dist/cdn/{5JBT3YNY.js → SXDLXCIM.js} +2 -2
- package/dist/cdn/SZOVY2QU.js +2 -0
- package/dist/cdn/U3QQW6VA.js +16 -0
- package/dist/cdn/{G4SVCCJH.js → USMDJUFS.js} +2 -2
- package/dist/cdn/{Q5D5LJS5.js → V2P4AIGG.js} +2 -2
- package/dist/cdn/Y333DGV6.js +2 -0
- package/dist/cdn/Y67XAMT4.js +22 -0
- package/dist/cdn/{CFDTXKJ6.js → YIMNOUTF.js} +1 -1
- package/dist/cdn/ZS2TZ6BF.js +31 -0
- package/dist/cdn/{W5CHGOOR.js → ZTBA5PM7.js} +2 -2
- 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-message-feedback/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/assistant-message-feedback/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/assistant-message-footer/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/assistant-message-read-aloud/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/assistant-suggested-prompts/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/BaseWorkflow.js +107 -0
- package/dist/chunks/adapter.js +2964 -0
- package/dist/chunks/arcgisKnowledgeGraph.js +174 -0
- package/dist/chunks/arcgis_knowledge_current_lc_context.js +8 -0
- package/dist/chunks/arcgis_knowledge_current_map_context.js +8 -0
- package/dist/chunks/arcgis_knowledge_lucene_generation_prompt.js +101 -0
- package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +48 -0
- package/dist/chunks/arcgis_knowledge_tool_prompt.js +34 -0
- package/dist/chunks/converterUtils.js +1 -1
- package/dist/chunks/dataExplorationGraph.js +289 -0
- package/dist/chunks/data_explore_filter_prompt.js +125 -0
- package/dist/chunks/data_explore_query_prompt.js +131 -0
- package/dist/chunks/embeddings.worker.js +25 -0
- package/dist/chunks/field_descriptions_prompt.js +112 -0
- package/dist/chunks/generateLayerDescriptions.js +413 -0
- package/dist/chunks/graph.js +86 -0
- package/dist/chunks/helpGraph.js +123 -0
- package/dist/chunks/help_prompt.js +57 -0
- package/dist/chunks/intent_prompt.js +124 -0
- package/dist/chunks/layerStylingGraph.js +189 -0
- package/dist/chunks/layer_descriptions_prompt.js +59 -0
- package/dist/chunks/layer_styling_prompt.js +72 -0
- package/dist/chunks/navigationGraph.js +266 -0
- package/dist/chunks/navigation_intent_prompt.js +46 -0
- package/dist/chunks/navigation_tool_prompt.js +39 -0
- package/dist/chunks/orchestrator.js +528 -0
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/slottableRequestUtils.js +1 -1
- package/dist/chunks/state.js +71 -0
- package/dist/chunks/summarize_query_response_prompt.js +77 -0
- package/dist/chunks/toolCallResponse.js +29 -0
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utils.js +47 -29
- package/dist/chunks/utils2.js +42 -7
- package/dist/chunks/utils3.js +16 -0
- package/dist/components/arcgis-assistant/customElement.d.ts +60 -8
- package/dist/components/arcgis-assistant/customElement.js +32 -24
- package/dist/components/arcgis-assistant/types.d.ts +1 -1
- package/dist/components/arcgis-assistant-agent/customElement.d.ts +1 -1
- package/dist/components/arcgis-assistant-agent/customElement.js +2 -2
- package/dist/components/arcgis-assistant-chat/customElement.js +1 -1
- package/dist/components/arcgis-assistant-chat-entry/customElement.js +1 -1
- package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +25 -9
- package/dist/components/arcgis-assistant-help-agent/customElement.js +28 -9
- package/dist/components/arcgis-assistant-interrupt/customElement.js +8 -12
- package/dist/components/arcgis-assistant-knowledge-agent/customElement.d.ts +158 -0
- package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +68 -0
- package/dist/components/arcgis-assistant-knowledge-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-knowledge-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +28 -9
- package/dist/components/arcgis-assistant-message/customElement.js +1 -1
- package/dist/components/arcgis-assistant-message-block/customElement.d.ts +1 -1
- package/dist/components/arcgis-assistant-message-block/customElement.js +1 -1
- package/dist/components/arcgis-assistant-message-feedback/customElement.js +1 -1
- package/dist/components/arcgis-assistant-message-footer/customElement.js +1 -1
- package/dist/components/arcgis-assistant-message-loading/customElement.js +1 -1
- package/dist/components/arcgis-assistant-message-log/customElement.js +1 -1
- package/dist/components/arcgis-assistant-message-read-aloud/customElement.js +24 -28
- package/dist/components/arcgis-assistant-message-text/customElement.js +1 -1
- package/dist/components/arcgis-assistant-navigation-agent/customElement.js +26 -8
- package/dist/components/arcgis-assistant-speech-input/customElement.js +1 -1
- package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +1 -1
- package/dist/components/arcgis-assistant-user-message/customElement.js +1 -1
- 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/index.js +1 -1
- package/dist/loader.js +2 -1
- package/dist/types/lumina.d.ts +6 -1
- package/dist/types/preact.d.ts +7 -1
- package/dist/types/react.d.ts +8 -1
- package/dist/types/stencil.d.ts +6 -1
- package/dist/utils/index.d.ts +203 -9
- package/dist/utils/index.js +109 -11
- package/package.json +26 -11
- package/dist/cdn/4QVKWA2Z.js +0 -24
- package/dist/cdn/5L7OZ37N.js +0 -2
- package/dist/cdn/6ALN3KMA.js +0 -269
- package/dist/cdn/ARCP5UZY.js +0 -2
- package/dist/cdn/B4DEC7PH.js +0 -2
- package/dist/cdn/D7WNBUVK.js +0 -106
- package/dist/cdn/GER6EQYH.js +0 -2
- package/dist/cdn/KVH3PDVW.js +0 -2
- package/dist/cdn/O62HTIOD.js +0 -2
- package/dist/cdn/R5FWFRWW.js +0 -2
- package/dist/cdn/SZBOIYZZ.js +0 -2
- package/dist/cdn/WNDUCHXU.js +0 -2
- package/dist/cdn/YW52XJMM.js +0 -396
- package/dist/cdn/ZLO73NU6.js +0 -2
- package/dist/cdn/ZPNJGIAF.js +0 -2
|
@@ -1,11 +1,27 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as t } from "../../chunks/runtime.js";
|
|
3
|
-
import { LitElement as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
3
|
+
import { LitElement as i } from "@arcgis/lumina";
|
|
4
|
+
import "@langchain/langgraph/web";
|
|
5
|
+
import "../../chunks/adapter.js";
|
|
6
|
+
import "@arcgis/core/identity/IdentityManager.js";
|
|
7
|
+
import "@arcgis/core/portal/Portal.js";
|
|
8
|
+
import "../../chunks/generateLayerDescriptions.js";
|
|
9
|
+
import "@langchain/core/messages";
|
|
10
|
+
import "@langchain/core/callbacks/dispatch/web";
|
|
11
|
+
import "@langchain/openai";
|
|
12
|
+
import "@arcgis/core/core/reactiveUtils.js";
|
|
13
|
+
import "@arcgis/core/layers/FeatureLayer.js";
|
|
14
|
+
import "@arcgis/core/request.js";
|
|
15
|
+
import "@langchain/core/prompts";
|
|
16
|
+
import "@langchain/langgraph/prebuilt";
|
|
17
|
+
import "zod";
|
|
18
|
+
import { D as r } from "../../chunks/dataExplorationGraph.js";
|
|
19
|
+
import "@arcgis/core/views/LinkChartView.js";
|
|
20
|
+
import "@arcgis/core/rest/knowledgeGraphService.js";
|
|
21
|
+
import { r as a, a as o } from "../../chunks/utils2.js";
|
|
22
|
+
class s extends i {
|
|
7
23
|
constructor() {
|
|
8
|
-
super(...arguments), this.agent =
|
|
24
|
+
super(...arguments), this.agent = r;
|
|
9
25
|
}
|
|
10
26
|
static {
|
|
11
27
|
this.properties = { referenceElement: 1 };
|
|
@@ -17,10 +33,10 @@ class r extends a {
|
|
|
17
33
|
return { mapView: this.#t };
|
|
18
34
|
}
|
|
19
35
|
load() {
|
|
20
|
-
this.#t =
|
|
36
|
+
this.#t = a(this, "arcgis-assistant-data-exploration-agent"), o(this);
|
|
21
37
|
}
|
|
22
38
|
}
|
|
23
|
-
t("arcgis-assistant-data-exploration-agent",
|
|
39
|
+
t("arcgis-assistant-data-exploration-agent", s);
|
|
24
40
|
export {
|
|
25
|
-
|
|
41
|
+
s as ArcgisAssistantDataExplorationAgent
|
|
26
42
|
};
|
|
@@ -1,11 +1,30 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as t } from "../../chunks/runtime.js";
|
|
3
|
-
import { LitElement as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
3
|
+
import { LitElement as i } from "@arcgis/lumina";
|
|
4
|
+
import "@langchain/langgraph/web";
|
|
5
|
+
import "../../chunks/adapter.js";
|
|
6
|
+
import "@arcgis/core/identity/IdentityManager.js";
|
|
7
|
+
import "@arcgis/core/portal/Portal.js";
|
|
8
|
+
import "../../chunks/generateLayerDescriptions.js";
|
|
9
|
+
import "@langchain/core/messages";
|
|
10
|
+
import "@langchain/core/callbacks/dispatch/web";
|
|
11
|
+
import "@langchain/openai";
|
|
12
|
+
import "@arcgis/core/core/reactiveUtils.js";
|
|
13
|
+
import "@arcgis/core/layers/FeatureLayer.js";
|
|
14
|
+
import "@arcgis/core/request.js";
|
|
15
|
+
import "@langchain/core/prompts";
|
|
16
|
+
import "@langchain/langgraph/prebuilt";
|
|
17
|
+
import "zod";
|
|
18
|
+
import "@arcgis/core/intl.js";
|
|
19
|
+
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
20
|
+
import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
21
|
+
import { H as r } from "../../chunks/helpGraph.js";
|
|
22
|
+
import "@arcgis/core/views/LinkChartView.js";
|
|
23
|
+
import "@arcgis/core/rest/knowledgeGraphService.js";
|
|
24
|
+
import { r as e, a as s } from "../../chunks/utils2.js";
|
|
25
|
+
class o extends i {
|
|
7
26
|
constructor() {
|
|
8
|
-
super(...arguments), this.agent =
|
|
27
|
+
super(...arguments), this.agent = r;
|
|
9
28
|
}
|
|
10
29
|
static {
|
|
11
30
|
this.properties = { referenceElement: 1 };
|
|
@@ -17,10 +36,10 @@ class a extends e {
|
|
|
17
36
|
return { mapView: this.#t };
|
|
18
37
|
}
|
|
19
38
|
load() {
|
|
20
|
-
this.#t =
|
|
39
|
+
this.#t = e(this, "arcgis-assistant-help-agent"), s(this);
|
|
21
40
|
}
|
|
22
41
|
}
|
|
23
|
-
t("arcgis-assistant-help-agent",
|
|
42
|
+
t("arcgis-assistant-help-agent", o);
|
|
24
43
|
export {
|
|
25
|
-
|
|
44
|
+
o as ArcgisAssistantHelpAgent
|
|
26
45
|
};
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as a } from "../../chunks/runtime.js";
|
|
3
|
-
import {
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { u as
|
|
6
|
-
|
|
7
|
-
class o extends l {
|
|
3
|
+
import { html as e } from "lit";
|
|
4
|
+
import { LitElement as c, createEvent as s } from "@arcgis/lumina";
|
|
5
|
+
import { u as l } from "../../chunks/useT9n.js";
|
|
6
|
+
class n extends c {
|
|
8
7
|
constructor() {
|
|
9
|
-
super(...arguments), this.#t = [], this._messages =
|
|
8
|
+
super(...arguments), this.#t = [], this._messages = l({ blocking: !0 }), this.arcgisCancel = s(), this.arcgisSubmit = s();
|
|
10
9
|
}
|
|
11
10
|
static {
|
|
12
11
|
this.properties = { type: 1, message: 1, options: 0 };
|
|
13
12
|
}
|
|
14
|
-
static {
|
|
15
|
-
this.styles = r;
|
|
16
|
-
}
|
|
17
13
|
#t;
|
|
18
14
|
_renderInterruptOptions() {
|
|
19
15
|
switch (this.type) {
|
|
@@ -31,7 +27,7 @@ class o extends l {
|
|
|
31
27
|
return e`<calcite-panel .description=${this.message}>${this._renderInterruptOptions()}<calcite-button slot=footer-end appearance=outline @click=${() => this.arcgisCancel.emit()}>${this._messages.cancelButtonLabel}</calcite-button><calcite-button slot=footer-end appearance=solid @click=${() => this.arcgisSubmit.emit(this.type === "boolean-choice" ? !0 : this.#t)}>${this._messages.submitButtonLabel}</calcite-button></calcite-panel>`;
|
|
32
28
|
}
|
|
33
29
|
}
|
|
34
|
-
a("arcgis-assistant-interrupt",
|
|
30
|
+
a("arcgis-assistant-interrupt", n);
|
|
35
31
|
export {
|
|
36
|
-
|
|
32
|
+
n as ArcgisAssistantInterrupt
|
|
37
33
|
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type MapView from "@arcgis/core/views/MapView.js";
|
|
3
|
+
import type LinkChartView from "@arcgis/core/views/LinkChartView.js";
|
|
4
|
+
import type KnowledgeGraph from "@arcgis/core/rest/knowledgeGraph/KnowledgeGraph.js";
|
|
5
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
|
+
import type { ArcgisLinkChart as ArcgisLinkChart } from "@arcgis/map-components/components/arcgis-link-chart";
|
|
7
|
+
import type { ArcgisMap as ArcgisMap } from "@arcgis/map-components/components/arcgis-map";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The Knowledge Agent enables the end user to explore knowledge graph data in a [link chart](https://developers.arcgis.com/javascript/latest/references/core/WebLinkChart/), a
|
|
11
|
+
* [knowledge graph service](https://developers.arcgis.com/javascript/latest/references/core/rest/knowledgeGraphService/), or a [knowledge graph layer](https://developers.arcgis.com/javascript/latest/references/core/layers/KnowledgeGraphLayer/) in a map via natural language queries. It also provides additional capabilities when used with a knowledge graph layer or link chart. See the list of capabilities below for more details.
|
|
12
|
+
*
|
|
13
|
+
* The knowledge agent is designed to answer questions about data in the knowledge graph provided by the knowledge graph layer on map,
|
|
14
|
+
* a link chart or a knowledge graph service url, and does not have access to external data sources or the user's location.
|
|
15
|
+
*
|
|
16
|
+
* It cannot create visualizations in the form of charts, layer renderers, new maps, or other visual outputs.
|
|
17
|
+
* When provided a link chart as context, it can create new link charts based on queries generated from user prompts.
|
|
18
|
+
*
|
|
19
|
+
* This agent can add to the knowledge graph data on a map or link chart if a user prompt generates a query that returns entities
|
|
20
|
+
* or relationships from the graph and asks for the returned results to be added to the view.
|
|
21
|
+
* It can also change the layout of a link chart or toggle visibility of non-spatial data on a link chart.
|
|
22
|
+
* However, it cannot change the symbology of
|
|
23
|
+
* features or create new layers or export results of a query to a file or external source.
|
|
24
|
+
*
|
|
25
|
+
* This is an unrendered component that must be added as a child of the `arcgis-assistant` component in either HTML or JavaScript.
|
|
26
|
+
*
|
|
27
|
+
* Link Chart context example:
|
|
28
|
+
* ```html
|
|
29
|
+
* <arcgis-link-chart id="my-link-chart"></arcgis-link-chart>
|
|
30
|
+
* <arcgis-assistant>
|
|
31
|
+
* <arcgis-assistant-knowledge-agent reference-element="my-link-chart"></arcgis-assistant-knowledge-agent>
|
|
32
|
+
* </arcgis-assistant>
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* Map context example:
|
|
36
|
+
* Note: the map must contain one knowledge graph layer.
|
|
37
|
+
* ```html
|
|
38
|
+
* <arcgis-map id="my-map"></arcgis-map>
|
|
39
|
+
* <arcgis-assistant>
|
|
40
|
+
* <arcgis-assistant-knowledge-agent reference-element="my-map"></arcgis-assistant-knowledge-agent>
|
|
41
|
+
* </arcgis-assistant>
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* Knowledge Graph Service context example:
|
|
45
|
+
* ```html
|
|
46
|
+
* <arcgis-assistant>
|
|
47
|
+
* <arcgis-assistant-knowledge-agent
|
|
48
|
+
* service-url="https://example.com/server/rest/services/Hosted/myKnowledgeGraph/KnowledgeGraphServer"
|
|
49
|
+
* >
|
|
50
|
+
* </arcgis-assistant-knowledge-agent>
|
|
51
|
+
* </arcgis-assistant>
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* Once added to the assistant, the agent is loaded and ready to receive user messages directed to their knowledge graph related layers or data.
|
|
55
|
+
*
|
|
56
|
+
* ### Capabilities
|
|
57
|
+
*
|
|
58
|
+
* The knowledge agent provides the following capabilities related to a knowledge graph or associated knowledge graph layer or link chart layer:
|
|
59
|
+
*
|
|
60
|
+
* - **Query** - Ask about the entities and relationships in my graph. This includes questions about connections between entities and
|
|
61
|
+
* patterns in the graph, as well as questions about the structure of the graph such as the types of entities and relationships and the
|
|
62
|
+
* number of each type.
|
|
63
|
+
* Returns the results of the query in text form, and can optionally add returned
|
|
64
|
+
* entities or relationships to the map or link chart view if the user prompt requests it.
|
|
65
|
+
* - **Search** - Search for specific entities or relationships in the knowledge graph, or the closest matches based on their properties.
|
|
66
|
+
* Returns the results of the search in text form, and can optionally add returned entities or relationships to the map or link chart
|
|
67
|
+
* view if the user prompt requests it.
|
|
68
|
+
* - **Generate Cypher Query** - Generates and returns a cypher query based on a natural language question and the current knowledge
|
|
69
|
+
* graph data model,
|
|
70
|
+
* which can be run against the knowledge graph service.
|
|
71
|
+
*
|
|
72
|
+
* Additional capabilities with a map view with a knowledge graph layer or a link chart view
|
|
73
|
+
*
|
|
74
|
+
* - **Add entities and relationships** - Add entities or relationships the the knowledge graph or link chart layer based on results returned from searches or queries generated from user prompts.
|
|
75
|
+
*
|
|
76
|
+
* Additional capabilities with a link chart view only
|
|
77
|
+
*
|
|
78
|
+
* - **Change link chart layout** - Change the layout of the link chart between different modes such as force directed, radial, or hierarchical.
|
|
79
|
+
* - **Toggle non-spatial visibility** - Show or hide non-spatial entities and relationships on the link chart.
|
|
80
|
+
* - **Create link chart from query** - Recreate the link chart with new entities and relationships based on a query generated from the
|
|
81
|
+
* user prompt.
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* ### Example questions
|
|
85
|
+
*
|
|
86
|
+
* The following are example questions a user can ask within the bounds of the knowledge agent:
|
|
87
|
+
*
|
|
88
|
+
* - "What entities are in this graph, and what is the count of each entity type?"
|
|
89
|
+
* - "Who are the top 5 entities most connected to Company X?"
|
|
90
|
+
* - "Find all employees with the last name Smith."
|
|
91
|
+
* - "What is the most influential company in this graph?"
|
|
92
|
+
* - "Generate a cypher query to find all employees of Company X that joined the company after 2022 who worked for a competitor before joining Company X."
|
|
93
|
+
* - "Add all connections between Company X and Company Y to the link chart"
|
|
94
|
+
* - "Change the layout to hierarchical"
|
|
95
|
+
* - "Hide non spatial data on the link chart"
|
|
96
|
+
* - "Create a new link chart with all employees from Company X that joined the company after 2015 and are located in California"
|
|
97
|
+
*
|
|
98
|
+
* > Due to the non-deterministic nature of generative AI, there may be inaccuracies or unexpected behavior when using the
|
|
99
|
+
* out-of-the-box agents.
|
|
100
|
+
*
|
|
101
|
+
* @since 5.1
|
|
102
|
+
* @beta
|
|
103
|
+
* @see [arcgis-assistant](https://developers.arcgis.com/javascript/latest/references/ai-components/components/arcgis-assistant/)
|
|
104
|
+
* @see [Intro to building agentic mapping applications](https://developers.arcgis.com/javascript/latest/agentic-apps/ai-introduction/)
|
|
105
|
+
* @see [AI Assistant component sample](https://developers.arcgis.com/javascript/latest/sample-code/ai-assistant/)
|
|
106
|
+
*/
|
|
107
|
+
export abstract class ArcgisAssistantKnowledgeAgent extends LitElement {
|
|
108
|
+
/**
|
|
109
|
+
* Required and optional context for the knowledge agent. The knowledge agent requires either a link chart view,
|
|
110
|
+
* a map view with at least one knowledge graph layer, or KnowledgeGraph instance in order to function.
|
|
111
|
+
*
|
|
112
|
+
* Depending on the context provided, different capabilities will be available.
|
|
113
|
+
*/
|
|
114
|
+
accessor context: ArcgisKnowledgeContext | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* The reference element to the map that provides context for the navigation agent. Currently,
|
|
117
|
+
* this is only scoped to `arcgis-map` elements. This shows the navigation agent which map on which to
|
|
118
|
+
* perform navigation actions. This is required for the navigation agent to function properly.
|
|
119
|
+
*
|
|
120
|
+
* Setting this property is not necessary if you set the reference element on the parent
|
|
121
|
+
* `arcgis-assistant` component.
|
|
122
|
+
*
|
|
123
|
+
* @see [arcgis-assistant.referenceElement](https://developers.arcgis.com/javascript/latest/references/ai-components/components/arcgis-assistant/#referenceElement)
|
|
124
|
+
* @example
|
|
125
|
+
* ```html
|
|
126
|
+
* <arcgis-link-chart id="my-link-chart"></arcgis-link-chart>
|
|
127
|
+
* <arcgis-assistant>
|
|
128
|
+
* <arcgis-assistant-knowledge-agent reference-element="my-link-chart"></arcgis-assistant-knowledge-agent>
|
|
129
|
+
* </arcgis-assistant>
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
accessor referenceElement: ArcgisLinkChart | ArcgisMap | string | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* The URL of a Knowledge Graph Service. This can be set to use the agent without a map or link chart view.
|
|
135
|
+
*
|
|
136
|
+
* If a map or link chart view reference element are provided, this property will be ignored.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```html
|
|
140
|
+
* <arcgis-assistant>
|
|
141
|
+
* <arcgis-assistant-knowledge-agent service-url="https://example.esri.com/server/rest/services/Hosted/KGS_Service_Name/KnowledgeGraphServer"></arcgis-assistant-knowledge-agent>
|
|
142
|
+
* </arcgis-assistant>
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
accessor serviceUrl: null | undefined | string;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Context required by the Knowledge Link Chart agent.
|
|
150
|
+
* Supplied by the application via an agent `getContext()` provider.
|
|
151
|
+
*/
|
|
152
|
+
export type ArcgisKnowledgeContext = {
|
|
153
|
+
knowledgeGraph: KnowledgeGraph;
|
|
154
|
+
view?: never;
|
|
155
|
+
} | {
|
|
156
|
+
view: LinkChartView | MapView;
|
|
157
|
+
knowledgeGraph?: never;
|
|
158
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { c as r } from "../../chunks/runtime.js";
|
|
3
|
+
import { LitElement as i } from "@arcgis/lumina";
|
|
4
|
+
import "@langchain/langgraph/web";
|
|
5
|
+
import "../../chunks/adapter.js";
|
|
6
|
+
import "@arcgis/core/identity/IdentityManager.js";
|
|
7
|
+
import "@arcgis/core/portal/Portal.js";
|
|
8
|
+
import "../../chunks/generateLayerDescriptions.js";
|
|
9
|
+
import "@langchain/core/messages";
|
|
10
|
+
import "@langchain/core/callbacks/dispatch/web";
|
|
11
|
+
import "@langchain/openai";
|
|
12
|
+
import "@arcgis/core/core/reactiveUtils.js";
|
|
13
|
+
import "@arcgis/core/layers/FeatureLayer.js";
|
|
14
|
+
import "@arcgis/core/request.js";
|
|
15
|
+
import "@langchain/core/prompts";
|
|
16
|
+
import "@langchain/langgraph/prebuilt";
|
|
17
|
+
import "zod";
|
|
18
|
+
import "@arcgis/core/intl.js";
|
|
19
|
+
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
20
|
+
import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
21
|
+
import { A as o } from "../../chunks/arcgisKnowledgeGraph.js";
|
|
22
|
+
import { b as s, a as n } from "../../chunks/utils2.js";
|
|
23
|
+
import { fetchKnowledgeGraph as a } from "@arcgis/core/rest/knowledgeGraphService.js";
|
|
24
|
+
class c extends i {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments), this.agent = o;
|
|
27
|
+
}
|
|
28
|
+
static {
|
|
29
|
+
this.properties = { referenceElement: 1, serviceUrl: 3, context: 0 };
|
|
30
|
+
}
|
|
31
|
+
#e;
|
|
32
|
+
#r;
|
|
33
|
+
#t;
|
|
34
|
+
get serviceUrl() {
|
|
35
|
+
return this.#r;
|
|
36
|
+
}
|
|
37
|
+
set serviceUrl(t) {
|
|
38
|
+
this.#r = t;
|
|
39
|
+
}
|
|
40
|
+
async getContext() {
|
|
41
|
+
const t = this.context ? { ...this.context, knowledgeGraph: void 0, view: void 0 } : {};
|
|
42
|
+
if (this.#e)
|
|
43
|
+
return {
|
|
44
|
+
...t,
|
|
45
|
+
view: this.#e
|
|
46
|
+
};
|
|
47
|
+
if (this.#t)
|
|
48
|
+
try {
|
|
49
|
+
const e = await this.#t;
|
|
50
|
+
return { ...t, knowledgeGraph: e };
|
|
51
|
+
} catch (e) {
|
|
52
|
+
console.error("Failed to load knowledge graph via service URL:", e);
|
|
53
|
+
}
|
|
54
|
+
if (!this.context?.knowledgeGraph && !this.context?.view)
|
|
55
|
+
throw new Error("arcgis-assistant-knowledge-agent requires either a knowledgeGraph or view in context, and neither were provided");
|
|
56
|
+
return this.context;
|
|
57
|
+
}
|
|
58
|
+
willUpdate(t) {
|
|
59
|
+
t.has("serviceUrl") && this.serviceUrl ? this.#t = a(this.serviceUrl) : this.#t = void 0;
|
|
60
|
+
}
|
|
61
|
+
load() {
|
|
62
|
+
this.#e = s(this) ?? void 0, n(this);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
r("arcgis-assistant-knowledge-agent", c);
|
|
66
|
+
export {
|
|
67
|
+
c as ArcgisAssistantKnowledgeAgent
|
|
68
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -1,11 +1,30 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as t } from "../../chunks/runtime.js";
|
|
3
|
-
import { LitElement as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
3
|
+
import { LitElement as i } from "@arcgis/lumina";
|
|
4
|
+
import "@langchain/langgraph/web";
|
|
5
|
+
import "../../chunks/adapter.js";
|
|
6
|
+
import "@arcgis/core/identity/IdentityManager.js";
|
|
7
|
+
import "@arcgis/core/portal/Portal.js";
|
|
8
|
+
import "../../chunks/generateLayerDescriptions.js";
|
|
9
|
+
import "@langchain/core/messages";
|
|
10
|
+
import "@langchain/core/callbacks/dispatch/web";
|
|
11
|
+
import "@langchain/openai";
|
|
12
|
+
import "@arcgis/core/core/reactiveUtils.js";
|
|
13
|
+
import "@arcgis/core/layers/FeatureLayer.js";
|
|
14
|
+
import "@arcgis/core/request.js";
|
|
15
|
+
import "@langchain/core/prompts";
|
|
16
|
+
import "@langchain/langgraph/prebuilt";
|
|
17
|
+
import "zod";
|
|
18
|
+
import "@arcgis/core/intl.js";
|
|
19
|
+
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
20
|
+
import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
21
|
+
import { L as r } from "../../chunks/layerStylingGraph.js";
|
|
22
|
+
import "@arcgis/core/views/LinkChartView.js";
|
|
23
|
+
import "@arcgis/core/rest/knowledgeGraphService.js";
|
|
24
|
+
import { r as s, a as e } from "../../chunks/utils2.js";
|
|
25
|
+
class o extends i {
|
|
7
26
|
constructor() {
|
|
8
|
-
super(...arguments), this.agent =
|
|
27
|
+
super(...arguments), this.agent = r;
|
|
9
28
|
}
|
|
10
29
|
static {
|
|
11
30
|
this.properties = { referenceElement: 1 };
|
|
@@ -17,10 +36,10 @@ class a extends s {
|
|
|
17
36
|
return { mapView: this.#t };
|
|
18
37
|
}
|
|
19
38
|
load() {
|
|
20
|
-
this.#t =
|
|
39
|
+
this.#t = s(this, "arcgis-assistant-layer-styling-agent"), e(this);
|
|
21
40
|
}
|
|
22
41
|
}
|
|
23
|
-
t("arcgis-assistant-layer-styling-agent",
|
|
42
|
+
t("arcgis-assistant-layer-styling-agent", o);
|
|
24
43
|
export {
|
|
25
|
-
|
|
44
|
+
o as ArcgisAssistantLayerStylingAgent
|
|
26
45
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as d } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as m, html as a } from "lit";
|
|
4
4
|
import { LitElement as g, nothing as i } from "@arcgis/lumina";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { UXSuggestion } from "
|
|
3
|
+
import type { UXSuggestion } from "../../utils/index.js";
|
|
4
4
|
|
|
5
5
|
/** A primitive for rendering a default assistant output block. */
|
|
6
6
|
export abstract class ArcgisAssistantMessageBlock extends LitElement {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as o } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as i, html as p } from "lit";
|
|
4
4
|
import { LitElement as n } from "@arcgis/lumina";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as s } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as i, html as e } from "lit";
|
|
4
4
|
import { LitElement as a, createEvent as c } from "@arcgis/lumina";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as s } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as a, html as e } from "lit";
|
|
4
4
|
import { watch as o } from "@arcgis/core/core/reactiveUtils.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as a } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as e, html as s } from "lit";
|
|
4
4
|
import { LitElement as i } from "@arcgis/lumina";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as i } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as o, html as a } from "lit";
|
|
4
4
|
import { LitElement as e } from "@arcgis/lumina";
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
2
|
-
import { c
|
|
3
|
-
import {
|
|
4
|
-
import { watch as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import { property as
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
for (var r = i > 1 ? void 0 : i ? S(s, n) : s, t = e.length - 1, a; t >= 0; t--)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
|
+
import { html as p } from "lit";
|
|
4
|
+
import { watch as h } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import { LitElement as m } from "@arcgis/lumina";
|
|
6
|
+
import { u as _ } from "../../chunks/useT9n.js";
|
|
7
|
+
import g from "@arcgis/core/core/Accessor.js";
|
|
8
|
+
import { property as u, subclass as f } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
9
|
+
var y = Object.defineProperty, A = Object.getOwnPropertyDescriptor, d = (e, s, n, i) => {
|
|
10
|
+
for (var r = i > 1 ? void 0 : i ? A(s, n) : s, t = e.length - 1, a; t >= 0; t--)
|
|
12
11
|
(a = e[t]) && (r = (i ? a(s, n, r) : a(r)) || r);
|
|
13
|
-
return i && r &&
|
|
12
|
+
return i && r && y(s, n, r), r;
|
|
14
13
|
};
|
|
15
14
|
function l() {
|
|
16
15
|
return typeof window > "u" ? null : window;
|
|
17
16
|
}
|
|
18
|
-
let o = class extends
|
|
17
|
+
let o = class extends g {
|
|
19
18
|
constructor() {
|
|
20
19
|
super(...arguments), this._utterance = null, this.state = "idle", this.supported = o.isSupported();
|
|
21
20
|
}
|
|
@@ -62,28 +61,25 @@ let o = class extends f {
|
|
|
62
61
|
this._utterance && (this._utterance.onend = null, this._utterance.onerror = null), this._utterance = null, this._set("state", "idle");
|
|
63
62
|
}
|
|
64
63
|
};
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
d([
|
|
65
|
+
u({ readOnly: !0 })
|
|
67
66
|
], o.prototype, "state", 2);
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
d([
|
|
68
|
+
u({ readOnly: !0 })
|
|
70
69
|
], o.prototype, "supported", 2);
|
|
71
|
-
o =
|
|
72
|
-
|
|
70
|
+
o = d([
|
|
71
|
+
f("ReadAloudController")
|
|
73
72
|
], o);
|
|
74
|
-
class
|
|
73
|
+
class C extends m {
|
|
75
74
|
constructor() {
|
|
76
|
-
super(...arguments), this._messages =
|
|
75
|
+
super(...arguments), this._messages = _({ blocking: !0 }), this._readAloudController = new o(), this.readAloudEnabled = !1;
|
|
77
76
|
}
|
|
78
77
|
static {
|
|
79
78
|
this.properties = { readAloudEnabled: 5, message: 0 };
|
|
80
79
|
}
|
|
81
|
-
static {
|
|
82
|
-
this.styles = A;
|
|
83
|
-
}
|
|
84
80
|
loaded() {
|
|
85
81
|
this.manager.onLifecycle(() => [
|
|
86
|
-
|
|
82
|
+
h(() => this._readAloudController.state, () => this.requestUpdate(), { initial: !0 }),
|
|
87
83
|
{
|
|
88
84
|
remove: () => {
|
|
89
85
|
this._readAloudController.stop();
|
|
@@ -95,10 +91,10 @@ class w extends _ {
|
|
|
95
91
|
this._readAloudController.toggle(this.message?.content ?? "");
|
|
96
92
|
}
|
|
97
93
|
render() {
|
|
98
|
-
return this.readAloudEnabled && !this.message?.error && this.message?.content?.trim() && this._readAloudController.supported ?
|
|
94
|
+
return this.readAloudEnabled && !this.message?.error && this.message?.content?.trim() && this._readAloudController.supported ? p`<calcite-action id=action-read-aloud .icon=${this._readAloudController.state === "playing" ? "sound-off" : "sound"} scale=s .active=${this._readAloudController.state === "playing"} @click=${() => this._toggleReadAloud()} text></calcite-action><calcite-tooltip reference-element=action-read-aloud overlay-positioning=fixed placement=bottom><span>${this._readAloudController.state === "playing" ? this._messages.stopReadingButtonLabel : this._messages.readAloudButtonLabel}</span></calcite-tooltip>` : null;
|
|
99
95
|
}
|
|
100
96
|
}
|
|
101
|
-
|
|
97
|
+
c("arcgis-assistant-message-read-aloud", C);
|
|
102
98
|
export {
|
|
103
|
-
|
|
99
|
+
C as ArcgisAssistantMessageReadAloud
|
|
104
100
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as t } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as e, html as c } from "lit";
|
|
4
4
|
import { LitElement as a } from "@arcgis/lumina";
|
|
@@ -1,11 +1,29 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as t } from "../../chunks/runtime.js";
|
|
3
3
|
import { LitElement as i } from "@arcgis/lumina";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
4
|
+
import { N as r } from "../../chunks/navigationGraph.js";
|
|
5
|
+
import "@langchain/langgraph/web";
|
|
6
|
+
import "../../chunks/adapter.js";
|
|
7
|
+
import "@arcgis/core/identity/IdentityManager.js";
|
|
8
|
+
import "@arcgis/core/portal/Portal.js";
|
|
9
|
+
import "../../chunks/generateLayerDescriptions.js";
|
|
10
|
+
import "@langchain/core/messages";
|
|
11
|
+
import "@langchain/core/callbacks/dispatch/web";
|
|
12
|
+
import "@langchain/openai";
|
|
13
|
+
import "@arcgis/core/core/reactiveUtils.js";
|
|
14
|
+
import "@arcgis/core/layers/FeatureLayer.js";
|
|
15
|
+
import "@arcgis/core/request.js";
|
|
16
|
+
import "@langchain/core/prompts";
|
|
17
|
+
import "@arcgis/core/intl.js";
|
|
18
|
+
import "@langchain/langgraph/prebuilt";
|
|
19
|
+
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
20
|
+
import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
21
|
+
import "@arcgis/core/views/LinkChartView.js";
|
|
22
|
+
import "@arcgis/core/rest/knowledgeGraphService.js";
|
|
23
|
+
import { r as o, a as s } from "../../chunks/utils2.js";
|
|
24
|
+
class a extends i {
|
|
7
25
|
constructor() {
|
|
8
|
-
super(...arguments), this.agent =
|
|
26
|
+
super(...arguments), this.agent = r;
|
|
9
27
|
}
|
|
10
28
|
static {
|
|
11
29
|
this.properties = { referenceElement: 1 };
|
|
@@ -17,10 +35,10 @@ class n extends i {
|
|
|
17
35
|
return { mapView: this.#t };
|
|
18
36
|
}
|
|
19
37
|
load() {
|
|
20
|
-
this.#t =
|
|
38
|
+
this.#t = o(this, "arcgis-assistant-navigation-agent"), s(this);
|
|
21
39
|
}
|
|
22
40
|
}
|
|
23
|
-
t("arcgis-assistant-navigation-agent",
|
|
41
|
+
t("arcgis-assistant-navigation-agent", a);
|
|
24
42
|
export {
|
|
25
|
-
|
|
43
|
+
a as ArcgisAssistantNavigationAgent
|
|
26
44
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as S } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as R, html as y } from "lit";
|
|
4
4
|
import { when as C, watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as e } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as i, html as s } from "lit";
|
|
4
4
|
import { LitElement as r, createEvent as l } from "@arcgis/lumina";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as t } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as e, html as s } from "lit";
|
|
4
4
|
import { LitElement as a } from "@arcgis/lumina";
|