@arcgis/ai-components 5.2.0-next.11 → 5.2.0-next.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +4 -2
- package/README.md +2 -2
- package/dist/agent-utils/BaseAgent.js +1 -1
- package/dist/agent-utils/FunctionAgent.js +1 -1
- package/dist/agent-utils/LLMAgent.d.ts +5 -2
- package/dist/agent-utils/LLMAgent.js +7 -4
- package/dist/agent-utils/WorkflowAgent.js +15 -16
- package/dist/agent-utils/index.d.ts +78 -0
- package/dist/agent-utils/index.js +117 -98
- package/dist/agent-utils/middlewares/humanInTheLoop.js +1 -1
- package/dist/agent-utils/middlewares/middleware.js +1 -1
- package/dist/agent-utils/middlewares/trace.d.ts +2 -0
- package/dist/agent-utils/middlewares/trace.js +1 -1
- package/dist/agent-utils/middlewares/types.js +1 -1
- package/dist/agent-utils/tools/FunctionTool.js +1 -1
- package/dist/agent-utils/types.d.ts +13 -13
- package/dist/agent-utils/workflows/ConditionalWorkflow.js +1 -1
- package/dist/agent-utils/workflows/LoopWorkflow.js +1 -1
- package/dist/agent-utils/workflows/ParallelWorkflow.js +1 -1
- package/dist/agent-utils/workflows/RouterWorkflow.js +1 -1
- package/dist/agent-utils/workflows/SequentialWorkflow.js +1 -1
- package/dist/agent-utils/workflows/SwitchWorkflow.js +1 -1
- package/dist/agentic-workflow/AgenticWorkflowRuntime.d.ts +24 -0
- package/dist/agentic-workflow/Edge.d.ts +16 -0
- package/dist/agentic-workflow/WebAgent.d.ts +39 -0
- package/dist/agentic-workflow/jsonTypes.d.ts +189 -0
- package/dist/agentic-workflow/nodes/AgentNode.d.ts +28 -0
- package/dist/agentic-workflow/nodes/BaseNode.d.ts +35 -0
- package/dist/agentic-workflow/nodes/EndMessageNode.d.ts +25 -0
- package/dist/agentic-workflow/nodes/StartNode.d.ts +21 -0
- package/dist/agentic-workflow/nodes/tools/ArcgisTool.d.ts +21 -0
- package/dist/agentic-workflow/types.d.ts +29 -0
- package/dist/agents/runtime/skill/createSkillAgent.d.ts +31 -0
- package/dist/agents/runtime/skill/createSkillAgent.js +260 -0
- package/dist/agents/runtime/skill/loadAgentSkills.d.ts +16 -0
- package/dist/agents/runtime/skill/types.d.ts +28 -0
- package/dist/agents/runtime/skill/types.js +2 -0
- package/dist/agents/tools/filter/clearFilters/adapter.d.ts +8 -0
- package/dist/agents/tools/filter/clearFilters/adapter.js +22 -0
- package/dist/agents/tools/filter/resetMap/adapter.d.ts +8 -0
- package/dist/agents/tools/filter/resetMap/adapter.js +22 -0
- package/dist/agents/tools/filter/setFeatureEffect/adapter.d.ts +8 -0
- package/dist/agents/tools/filter/setFeatureEffect/adapter.js +122 -0
- package/dist/agents/tools/help/listFields/adapter.d.ts +11 -0
- package/dist/agents/tools/help/listFields/adapter.js +30 -0
- package/dist/agents/tools/navigation/goToAddress/adapter.d.ts +10 -0
- package/dist/agents/tools/navigation/goToAddress/adapter.js +60 -0
- package/dist/agents/tools/navigation/goToBookmark/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToBookmark/adapter.js +30 -0
- package/dist/agents/tools/navigation/goToFeatures/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToFeatures/adapter.js +50 -0
- package/dist/agents/tools/navigation/goToFullExtent/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToFullExtent/adapter.js +27 -0
- package/dist/agents/tools/navigation/goToHomeExtent/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToHomeExtent/adapter.js +24 -0
- package/dist/agents/tools/navigation/goToLayer/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToLayer/adapter.js +26 -0
- package/dist/agents/tools/navigation/goToScale/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToScale/adapter.js +21 -0
- package/dist/agents/tools/navigation/goToViewpoint/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToViewpoint/adapter.js +42 -0
- package/dist/agents/tools/navigation/goToZoom/adapter.d.ts +8 -0
- package/dist/agents/tools/navigation/goToZoom/adapter.js +21 -0
- package/dist/agents/tools/query/getAttribute/adapter.d.ts +8 -0
- package/dist/agents/tools/query/getAttribute/adapter.js +40 -0
- package/dist/agents/tools/query/getStatistics/adapter.d.ts +8 -0
- package/dist/agents/tools/query/getStatistics/adapter.js +158 -0
- package/dist/agents/tools/query/getTopFeatures/adapter.d.ts +8 -0
- package/dist/agents/tools/query/getTopFeatures/adapter.js +145 -0
- package/dist/agents/tools/query/queryFeatures/adapter.d.ts +8 -0
- package/dist/agents/tools/query/queryFeatures/adapter.js +131 -0
- package/dist/agents/tools/search/findRelevantFields/adapter.d.ts +8 -0
- package/dist/agents/tools/search/findRelevantFields/adapter.js +57 -0
- package/dist/agents/tools/search/findRelevantLayers/adapter.d.ts +8 -0
- package/dist/agents/tools/search/findRelevantLayers/adapter.js +38 -0
- package/dist/agents/tools/shared/resolveToolArtifact.d.ts +22 -0
- package/dist/agents/tools/shared/resolveToolArtifact.js +20 -0
- package/dist/agents/tools/shared/types.d.ts +22 -0
- package/dist/agents/tools/shared/types.js +6 -0
- package/dist/cdn/24EIZVUM.js +2 -0
- package/dist/cdn/25MBI4PD.js +2 -0
- package/dist/cdn/275FFTBE.js +2 -0
- package/dist/cdn/27CK3JHY.js +2 -0
- package/dist/cdn/2F4TPWZQ.js +2 -0
- package/dist/cdn/2LVYAXHG.js +44 -0
- package/dist/cdn/2UJPYWWZ.js +3 -0
- package/dist/cdn/2WXXSZP5.js +2 -0
- package/dist/cdn/{Q7TL5Q5N.js → 3KNLFIM3.js} +2 -2
- package/dist/cdn/3PPXAIRE.js +14 -0
- package/dist/cdn/45BDE3MG.js +2 -0
- package/dist/cdn/477I66FH.js +56 -0
- package/dist/cdn/4CFCV47G.js +2 -0
- package/dist/cdn/4IWDBEMN.js +34 -0
- package/dist/cdn/4OI4QEV7.js +6 -0
- package/dist/cdn/{DXVU45KM.js → 4VBOTWC3.js} +2 -2
- package/dist/cdn/4YOG5F3W.js +2 -0
- package/dist/cdn/53KIFJFA.js +4 -0
- package/dist/cdn/5X23DDDZ.js +2 -0
- package/dist/cdn/65LCK3GG.js +3 -0
- package/dist/cdn/6KWGSXIN.js +2 -0
- package/dist/cdn/7DOYUO7L.js +71 -0
- package/dist/cdn/{WAIFKDR3.js → 7UBTNDV6.js} +2 -2
- package/dist/cdn/7Y43R7QJ.js +2 -0
- package/dist/cdn/A6LBMS7A.js +2 -0
- package/dist/cdn/AP3KPOHN.js +2 -0
- package/dist/cdn/AUCKEB52.js +2 -0
- package/dist/cdn/B3HXSEBN.js +2 -0
- package/dist/cdn/BBEGLIZC.js +2 -0
- package/dist/cdn/BJMGT6GV.js +19 -0
- package/dist/cdn/BTOBEN7Q.js +2 -0
- package/dist/cdn/BTTCBEPW.js +2 -0
- package/dist/cdn/BVUCNXC5.js +2 -0
- package/dist/cdn/CAOMMQSY.js +66 -0
- package/dist/cdn/CKUUYQLO.js +2 -0
- package/dist/cdn/{ZEYIBYSF.js → CSE6BHOJ.js} +2 -2
- package/dist/cdn/CX2HJ67C.js +2 -0
- package/dist/cdn/EGRRZTF6.js +2 -0
- package/dist/cdn/EK3PM4L5.js +2 -0
- package/dist/cdn/EXMEB4X2.js +2 -0
- package/dist/cdn/EYGZJKVD.js +2 -0
- package/dist/cdn/{24QNMEFG.js → FDRAKF5D.js} +2 -2
- package/dist/cdn/FHBRXZLV.js +2 -0
- package/dist/cdn/{5CV7R5IS.js → FK2CVSXW.js} +6 -6
- package/dist/cdn/FLUI6GCU.js +2 -0
- package/dist/cdn/{ZTBA5PM7.js → FPH52WOH.js} +2 -2
- package/dist/cdn/FRYS2PZJ.js +2 -0
- package/dist/cdn/FSLQCZRN.js +2 -0
- package/dist/cdn/{LQ6R5YRN.js → FTTLFIBV.js} +2 -2
- package/dist/cdn/FV6FHLYW.js +2 -0
- package/dist/cdn/G24MNC7D.js +6 -0
- package/dist/cdn/{F6QHMKF5.js → GW3IVAAZ.js} +2 -2
- package/dist/cdn/HI3XKFHD.js +2 -0
- package/dist/cdn/HKIA5PWU.js +2 -0
- package/dist/cdn/{6ZW7Z36F.js → HMMYCSOK.js} +4 -4
- package/dist/cdn/HNTSDY3J.js +2 -0
- package/dist/cdn/HV7MVIQV.js +2 -0
- package/dist/cdn/I3SUE2TR.js +2 -0
- package/dist/cdn/I72ST4JR.js +134 -0
- package/dist/cdn/{T537PKP4.js → IHUWQOMK.js} +2 -2
- package/dist/cdn/JMXXRRKQ.js +22 -0
- package/dist/cdn/JUNMTIB3.js +2 -0
- package/dist/cdn/{6YMR4QSD.js → JYNHWJUZ.js} +2 -2
- package/dist/cdn/KAX4A7SF.js +2 -0
- package/dist/cdn/KBSXHSBX.js +2 -0
- package/dist/cdn/KKCLHXHG.js +2 -0
- package/dist/cdn/L2HLFWCV.js +72 -0
- package/dist/cdn/{7RCQFLPP.js → L3BTURBA.js} +2 -2
- package/dist/cdn/LBTGOMCT.js +2 -0
- package/dist/cdn/LIRT72WY.js +2 -0
- package/dist/cdn/LL324IL6.js +2 -0
- package/dist/cdn/LLY5A2E2.js +2 -0
- package/dist/cdn/LXIKAXUT.js +2 -0
- package/dist/cdn/M2U456J5.js +181 -0
- package/dist/cdn/M3KKORBG.js +2 -0
- package/dist/cdn/M5B6X46F.js +2 -0
- package/dist/cdn/{X2ZDYHCG.js → MZUDIQQH.js} +11 -6
- package/dist/cdn/NBDOPGSN.js +2 -0
- package/dist/cdn/NGR5NVZE.js +2 -0
- package/dist/cdn/{5ZZGKP7N.js → NNPA3NLK.js} +2 -2
- package/dist/cdn/NV7CL4S3.js +2 -0
- package/dist/cdn/{5W7S2RS4.js → OALQBAZR.js} +2 -2
- package/dist/cdn/OF3TAARW.js +2 -0
- package/dist/cdn/{AZGGTNA3.js → OXC2WP7W.js} +2 -2
- package/dist/cdn/PJPP6LOS.js +3 -0
- package/dist/cdn/PUZ6RAFQ.js +2 -0
- package/dist/cdn/QAX6UF4L.js +99 -0
- package/dist/cdn/{NE7E52YR.js → QTEPFTAU.js} +10 -4
- package/dist/cdn/ROS22KOA.js +2 -0
- package/dist/cdn/RSM7MEVT.js +9 -0
- package/dist/cdn/SBNNJ5WA.js +2 -0
- package/dist/cdn/SDX46GZY.js +2 -0
- package/dist/cdn/SI22EJLC.js +2 -0
- package/dist/cdn/SJMAKF4P.js +2 -0
- package/dist/cdn/SNG3WODY.js +2 -0
- package/dist/cdn/STOGCXJH.js +2 -0
- package/dist/cdn/SUC2MIGE.js +2 -0
- package/dist/cdn/SXYKNDOF.js +2 -0
- package/dist/cdn/SZ2L5556.js +2 -0
- package/dist/cdn/T6W6F4TF.js +2 -0
- package/dist/cdn/TB2GJALS.js +2 -0
- package/dist/cdn/TFAJNKBC.js +2 -0
- package/dist/cdn/TLPZELG3.js +2 -0
- package/dist/cdn/TXZQZR3I.js +2 -0
- package/dist/cdn/UAZPINUQ.js +2 -0
- package/dist/cdn/UGIHS7OA.js +2 -0
- package/dist/cdn/{FX7UOGHP.js → V266DJ5V.js} +2 -2
- package/dist/cdn/V4PJMCJZ.js +2 -0
- package/dist/cdn/{P7DG5T3Z.js → V52GSTOC.js} +2 -2
- package/dist/cdn/VGLBH473.js +2 -0
- package/dist/cdn/VK6CCPTG.js +2 -0
- package/dist/cdn/{ZS2TZ6BF.js → VLPELJUS.js} +2 -2
- package/dist/cdn/VT5EWFH7.js +2 -0
- package/dist/cdn/{7CYGX4F4.js → VXLKTQ36.js} +2 -2
- package/dist/cdn/W54XYT2A.js +2 -0
- package/dist/cdn/X42ACC66.js +5 -0
- package/dist/cdn/XNUWVZN7.js +2 -0
- package/dist/cdn/XOTPSCNF.js +2 -0
- package/dist/cdn/XRVGYRXL.js +14 -0
- package/dist/cdn/XV7RMYLR.js +2 -0
- package/dist/cdn/XVJFPZTW.js +2 -0
- package/dist/cdn/XZF7Y6B2.js +2 -0
- package/dist/cdn/{UPEEHMSY.js → Y4TYL2AL.js} +2 -2
- package/dist/cdn/Y4ZOB6UH.js +2 -0
- package/dist/cdn/Y6CV2NZR.js +2 -0
- package/dist/cdn/YIXASZUW.js +2 -0
- package/dist/cdn/YOW3YKWR.js +11 -0
- package/dist/cdn/{23EQTPO3.js → ZA7ZU2F7.js} +2 -2
- package/dist/cdn/ZJWR4W2S.js +208 -0
- package/dist/cdn/ZWIKFBOU.js +2 -0
- package/dist/cdn/ZY3JQCZQ.js +179 -0
- package/dist/cdn/agent-utils/index.js +2 -2
- package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +2 -2
- package/dist/cdn/agent-utils/middlewares/middleware.js +2 -2
- package/dist/cdn/agent-utils/middlewares/trace.js +2 -2
- package/dist/cdn/assets/assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/assistant-message/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/assistant-message-loading/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/BaseWorkflow.js +1 -1
- package/dist/chunks/SKILL.js +5 -0
- package/dist/chunks/SKILL2.js +5 -0
- package/dist/chunks/SKILL3.js +22 -0
- package/dist/chunks/SKILL4.js +5 -0
- package/dist/chunks/adapter.js +1127 -2011
- package/dist/chunks/aiFactory.js +94 -0
- package/dist/chunks/arcgisKnowledgeGraph.js +97 -77
- package/dist/chunks/arcgisToolRegistry.js +88 -0
- package/dist/chunks/arcgis_knowledge_current_lc_context.js +20 -3
- package/dist/chunks/arcgis_knowledge_current_map_context.js +32 -3
- package/dist/chunks/arcgis_knowledge_cypher_query_prompt.js +102 -0
- package/dist/chunks/arcgis_knowledge_lucene_generation_prompt.js +1 -1
- package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +117 -28
- package/dist/chunks/arcgis_knowledge_tool_prompt.js +1 -1
- package/dist/chunks/baseAgentState.js +58 -0
- package/dist/chunks/converterUtils.js +67 -42
- package/dist/chunks/dataExplorationAgent.js +19 -0
- package/dist/chunks/data_explore_filter_prompt.js +1 -1
- package/dist/chunks/data_explore_query_prompt.js +10 -5
- package/dist/chunks/embeddings.worker.js +1 -1
- package/dist/chunks/fetchAgentContext.js +13 -0
- package/dist/chunks/fetchService.js +10 -0
- package/dist/chunks/fieldStatistics.js +79 -0
- package/dist/chunks/field_descriptions_prompt.js +1 -1
- package/dist/chunks/formatFeatureAttributes.js +132 -0
- package/dist/chunks/generateLayerDescriptions.js +190 -311
- package/dist/chunks/graph.js +1 -1
- package/dist/chunks/helpAgent.js +34 -0
- package/dist/chunks/help_prompt.js +35 -18
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/intent_prompt.js +3 -3
- package/dist/chunks/layerStylingGraph.js +102 -84
- package/dist/chunks/layer_descriptions_prompt.js +1 -1
- package/dist/chunks/layer_styling_prompt.js +1 -1
- package/dist/chunks/mergeWhereClauses.js +15 -0
- package/dist/chunks/navigationAgent.js +27 -0
- package/dist/chunks/navigation_intent_prompt.js +9 -3
- package/dist/chunks/navigation_tool_prompt.js +1 -1
- package/dist/chunks/orchestrator.js +446 -235
- package/dist/chunks/requireAgentServices.js +11 -0
- package/dist/chunks/resolvePointGeometryFilter.js +92 -0
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/slottableRequestUtils.js +1 -1
- package/dist/chunks/state.js +22 -28
- package/dist/chunks/summarize_query_response_prompt.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +12 -12
- package/dist/chunks/utils3.js +1 -1
- package/dist/components/arcgis-assistant/customElement.d.ts +102 -1
- package/dist/components/arcgis-assistant/customElement.js +332 -184
- package/dist/components/arcgis-assistant-agent/customElement.d.ts +13 -1
- package/dist/components/arcgis-assistant-agent/customElement.js +533 -11
- package/dist/components/arcgis-assistant-chat/customElement.js +23 -18
- package/dist/components/arcgis-assistant-chat-entry/customElement.js +1 -1
- package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +35 -9
- package/dist/components/arcgis-assistant-help-agent/customElement.js +32 -9
- package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +4 -0
- package/dist/components/arcgis-assistant-interrupt/customElement.js +12 -13
- package/dist/components/arcgis-assistant-interrupt-preview/customElement.js +13 -9
- package/dist/components/arcgis-assistant-knowledge-agent/customElement.d.ts +1 -1
- package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +41 -17
- package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +31 -8
- package/dist/components/arcgis-assistant-message/customElement.d.ts +3 -0
- package/dist/components/arcgis-assistant-message/customElement.js +10 -9
- package/dist/components/arcgis-assistant-message-block/customElement.js +2 -2
- 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.d.ts +3 -0
- package/dist/components/arcgis-assistant-message-loading/customElement.js +12 -11
- package/dist/components/arcgis-assistant-message-log/customElement.js +1 -1
- package/dist/components/arcgis-assistant-message-read-aloud/customElement.js +1 -1
- package/dist/components/arcgis-assistant-message-text/customElement.d.ts +1 -0
- package/dist/components/arcgis-assistant-message-text/customElement.js +13 -13
- package/dist/components/arcgis-assistant-navigation-agent/customElement.js +34 -10
- package/dist/components/arcgis-assistant-speech-input/customElement.js +35 -53
- package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +1 -1
- package/dist/components/arcgis-assistant-user-message/customElement.d.ts +2 -0
- package/dist/components/arcgis-assistant-user-message/customElement.js +16 -11
- 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.js +1 -1
- package/dist/loader.js +7 -7
- package/dist/oauth-callback.html +1 -1
- package/dist/orchestrator/models/types.d.ts +1 -0
- package/dist/orchestrator/orchestrator/orchestratorEvents.d.ts +78 -0
- package/dist/orchestrator/providers/arcgis/aiFactory.d.ts +15 -0
- package/dist/orchestrator/types/types.d.ts +17 -0
- package/dist/types/lumina.d.ts +5 -4
- package/dist/types/preact.d.ts +5 -4
- package/dist/types/react.d.ts +5 -4
- package/dist/types/stencil.d.ts +7 -6
- package/dist/utils/index.d.ts +75 -39
- package/dist/utils/index.js +708 -84
- package/package.json +35 -12
- package/dist/cdn/34SG44C3.js +0 -72
- package/dist/cdn/3JGWGKT6.js +0 -2
- package/dist/cdn/3NBDVZ2I.js +0 -2
- package/dist/cdn/3VOQD2MR.js +0 -2
- package/dist/cdn/434TAA3J.js +0 -2
- package/dist/cdn/53NTYC4I.js +0 -2
- package/dist/cdn/5QAHYX7Y.js +0 -5
- package/dist/cdn/AXDZBBNL.js +0 -45
- package/dist/cdn/B7WJFBOZ.js +0 -2
- package/dist/cdn/BX7FSMUU.js +0 -56
- package/dist/cdn/CHPQM77M.js +0 -181
- package/dist/cdn/DHKUXLU3.js +0 -179
- package/dist/cdn/DQSEBKOX.js +0 -2
- package/dist/cdn/DZ2QWNUA.js +0 -3
- package/dist/cdn/EBISDZ5H.js +0 -2
- package/dist/cdn/ERL2CB2Y.js +0 -14
- package/dist/cdn/F2AHA4GB.js +0 -54
- package/dist/cdn/FUIGPHBH.js +0 -2
- package/dist/cdn/H2CHHGGH.js +0 -2
- package/dist/cdn/HWKDNS4K.js +0 -4
- package/dist/cdn/IMQ4TVHF.js +0 -16
- package/dist/cdn/IOD3GDA7.js +0 -2
- package/dist/cdn/IR7PTESF.js +0 -2
- package/dist/cdn/IRZDTYO2.js +0 -2
- package/dist/cdn/JIWK6QK6.js +0 -2
- package/dist/cdn/JLKGS6Y5.js +0 -36
- package/dist/cdn/K3JCH4XW.js +0 -2
- package/dist/cdn/KHXUWZHB.js +0 -2
- package/dist/cdn/KMQ3SP4I.js +0 -5
- package/dist/cdn/LIFK3QSD.js +0 -2
- package/dist/cdn/NXKKG5TK.js +0 -2
- package/dist/cdn/O3EN27N5.js +0 -2
- package/dist/cdn/O3RFFPU3.js +0 -6
- package/dist/cdn/PBO6FZN6.js +0 -2
- package/dist/cdn/Q3ZW4FYA.js +0 -3
- package/dist/cdn/Q6LRANX6.js +0 -2
- package/dist/cdn/QCSN44H4.js +0 -2
- package/dist/cdn/R56X6ZKR.js +0 -161
- package/dist/cdn/RUURNLTP.js +0 -2
- package/dist/cdn/T43LEBBE.js +0 -47
- package/dist/cdn/TR4GFL7X.js +0 -2
- package/dist/cdn/WNS5ZUF5.js +0 -2
- package/dist/cdn/X4XY5HIE.js +0 -2
- package/dist/cdn/XOH56EQ2.js +0 -2
- package/dist/cdn/XON27U6U.js +0 -2
- package/dist/cdn/YIMNOUTF.js +0 -2
- package/dist/cdn/YLN2BZ5J.js +0 -2
- package/dist/cdn/YUKR4AZW.js +0 -2
- package/dist/cdn/Z2G7MP5L.js +0 -22
- package/dist/chunks/dataExplorationGraph.js +0 -310
- package/dist/chunks/helpGraph.js +0 -126
- package/dist/chunks/navigationGraph.js +0 -270
- package/dist/chunks/toolCallResponse.js +0 -31
|
@@ -1,26 +1,48 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
2
|
import { c as t } from "../../chunks/runtime.js";
|
|
3
3
|
import { LitElement as i } from "@arcgis/lumina";
|
|
4
|
+
import "../../agents/runtime/skill/createSkillAgent.js";
|
|
4
5
|
import "@langchain/langgraph/web";
|
|
5
6
|
import "../../chunks/adapter.js";
|
|
6
7
|
import "@arcgis/core/identity/IdentityManager.js";
|
|
7
8
|
import "@arcgis/core/portal/Portal.js";
|
|
9
|
+
import "@arcgis/core/request.js";
|
|
10
|
+
import "@arcgis/toolkit/string";
|
|
8
11
|
import "../../chunks/generateLayerDescriptions.js";
|
|
9
12
|
import "@langchain/core/messages";
|
|
10
13
|
import "@langchain/core/callbacks/dispatch/web";
|
|
14
|
+
import "@langchain/core/callbacks/base";
|
|
11
15
|
import "@langchain/openai";
|
|
12
16
|
import "@arcgis/core/config.js";
|
|
13
17
|
import "@arcgis/core/core/reactiveUtils.js";
|
|
14
18
|
import "@arcgis/core/layers/FeatureLayer.js";
|
|
15
|
-
import "@arcgis/core/request.js";
|
|
16
19
|
import "@langchain/core/prompts";
|
|
20
|
+
import "../../agents/tools/navigation/goToAddress/adapter.js";
|
|
21
|
+
import "../../agents/tools/navigation/goToBookmark/adapter.js";
|
|
22
|
+
import "../../agents/tools/navigation/goToFeatures/adapter.js";
|
|
23
|
+
import "../../agents/tools/navigation/goToFullExtent/adapter.js";
|
|
24
|
+
import "../../agents/tools/navigation/goToHomeExtent/adapter.js";
|
|
25
|
+
import "../../agents/tools/navigation/goToLayer/adapter.js";
|
|
26
|
+
import "../../agents/tools/navigation/goToScale/adapter.js";
|
|
27
|
+
import "../../agents/tools/navigation/goToViewpoint/adapter.js";
|
|
28
|
+
import "../../agents/tools/navigation/goToZoom/adapter.js";
|
|
17
29
|
import "@langchain/langgraph/prebuilt";
|
|
18
30
|
import "zod";
|
|
19
|
-
import { D as r } from "../../chunks/
|
|
20
|
-
import "
|
|
31
|
+
import { D as r } from "../../chunks/dataExplorationAgent.js";
|
|
32
|
+
import "../../agents/tools/filter/clearFilters/adapter.js";
|
|
33
|
+
import "../../agents/tools/filter/resetMap/adapter.js";
|
|
34
|
+
import "../../agents/tools/filter/setFeatureEffect/adapter.js";
|
|
35
|
+
import "../../agents/tools/query/getAttribute/adapter.js";
|
|
36
|
+
import "../../agents/tools/query/getStatistics/adapter.js";
|
|
37
|
+
import "../../agents/tools/query/getTopFeatures/adapter.js";
|
|
38
|
+
import "../../agents/tools/query/queryFeatures/adapter.js";
|
|
39
|
+
import "@arcgis/core/intl.js";
|
|
40
|
+
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
41
|
+
import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
42
|
+
import "../../agents/tools/help/listFields/adapter.js";
|
|
21
43
|
import "@arcgis/core/rest/knowledgeGraphService.js";
|
|
22
|
-
import { r as
|
|
23
|
-
class
|
|
44
|
+
import { r as o, i as p } from "../../chunks/utils2.js";
|
|
45
|
+
class m extends i {
|
|
24
46
|
constructor() {
|
|
25
47
|
super(...arguments), this.agent = r;
|
|
26
48
|
}
|
|
@@ -28,16 +50,20 @@ class s extends i {
|
|
|
28
50
|
this.properties = { referenceElement: 1 };
|
|
29
51
|
}
|
|
30
52
|
#t;
|
|
53
|
+
#i;
|
|
31
54
|
getContext() {
|
|
32
55
|
if (!this.#t)
|
|
33
56
|
throw new Error("arcgis-assistant-data-exploration-agent requires a mapView");
|
|
34
57
|
return { mapView: this.#t };
|
|
35
58
|
}
|
|
36
59
|
load() {
|
|
37
|
-
this.#t =
|
|
60
|
+
this.#t = o(this, "arcgis-assistant-data-exploration-agent"), this.#i = p(this);
|
|
61
|
+
}
|
|
62
|
+
disconnectedCallback() {
|
|
63
|
+
this.#i?.unregister(this.agent.id), super.disconnectedCallback();
|
|
38
64
|
}
|
|
39
65
|
}
|
|
40
|
-
t("arcgis-assistant-data-exploration-agent",
|
|
66
|
+
t("arcgis-assistant-data-exploration-agent", m);
|
|
41
67
|
export {
|
|
42
|
-
|
|
68
|
+
m as ArcgisAssistantDataExplorationAgent
|
|
43
69
|
};
|
|
@@ -1,29 +1,48 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
2
|
import { c as t } from "../../chunks/runtime.js";
|
|
3
3
|
import { LitElement as i } from "@arcgis/lumina";
|
|
4
|
+
import "../../agents/runtime/skill/createSkillAgent.js";
|
|
4
5
|
import "@langchain/langgraph/web";
|
|
5
6
|
import "../../chunks/adapter.js";
|
|
6
7
|
import "@arcgis/core/identity/IdentityManager.js";
|
|
7
8
|
import "@arcgis/core/portal/Portal.js";
|
|
9
|
+
import "@arcgis/core/request.js";
|
|
10
|
+
import "@arcgis/toolkit/string";
|
|
8
11
|
import "../../chunks/generateLayerDescriptions.js";
|
|
9
12
|
import "@langchain/core/messages";
|
|
10
13
|
import "@langchain/core/callbacks/dispatch/web";
|
|
14
|
+
import "@langchain/core/callbacks/base";
|
|
11
15
|
import "@langchain/openai";
|
|
12
16
|
import "@arcgis/core/config.js";
|
|
13
17
|
import "@arcgis/core/core/reactiveUtils.js";
|
|
14
18
|
import "@arcgis/core/layers/FeatureLayer.js";
|
|
15
|
-
import "@arcgis/core/request.js";
|
|
16
19
|
import "@langchain/core/prompts";
|
|
20
|
+
import "../../agents/tools/navigation/goToAddress/adapter.js";
|
|
21
|
+
import "../../agents/tools/navigation/goToBookmark/adapter.js";
|
|
22
|
+
import "../../agents/tools/navigation/goToFeatures/adapter.js";
|
|
23
|
+
import "../../agents/tools/navigation/goToFullExtent/adapter.js";
|
|
24
|
+
import "../../agents/tools/navigation/goToHomeExtent/adapter.js";
|
|
25
|
+
import "../../agents/tools/navigation/goToLayer/adapter.js";
|
|
26
|
+
import "../../agents/tools/navigation/goToScale/adapter.js";
|
|
27
|
+
import "../../agents/tools/navigation/goToViewpoint/adapter.js";
|
|
28
|
+
import "../../agents/tools/navigation/goToZoom/adapter.js";
|
|
17
29
|
import "@langchain/langgraph/prebuilt";
|
|
18
30
|
import "zod";
|
|
31
|
+
import "../../agents/tools/filter/clearFilters/adapter.js";
|
|
32
|
+
import "../../agents/tools/filter/resetMap/adapter.js";
|
|
33
|
+
import "../../agents/tools/filter/setFeatureEffect/adapter.js";
|
|
34
|
+
import "../../agents/tools/query/getAttribute/adapter.js";
|
|
35
|
+
import "../../agents/tools/query/getStatistics/adapter.js";
|
|
36
|
+
import "../../agents/tools/query/getTopFeatures/adapter.js";
|
|
37
|
+
import "../../agents/tools/query/queryFeatures/adapter.js";
|
|
19
38
|
import "@arcgis/core/intl.js";
|
|
20
39
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
21
40
|
import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
22
|
-
import { H as r } from "../../chunks/
|
|
23
|
-
import "
|
|
41
|
+
import { H as r } from "../../chunks/helpAgent.js";
|
|
42
|
+
import "../../agents/tools/help/listFields/adapter.js";
|
|
24
43
|
import "@arcgis/core/rest/knowledgeGraphService.js";
|
|
25
|
-
import { r as
|
|
26
|
-
class
|
|
44
|
+
import { r as o, i as p } from "../../chunks/utils2.js";
|
|
45
|
+
class m extends i {
|
|
27
46
|
constructor() {
|
|
28
47
|
super(...arguments), this.agent = r;
|
|
29
48
|
}
|
|
@@ -31,16 +50,20 @@ class o extends i {
|
|
|
31
50
|
this.properties = { referenceElement: 1 };
|
|
32
51
|
}
|
|
33
52
|
#t;
|
|
53
|
+
#i;
|
|
34
54
|
getContext() {
|
|
35
55
|
if (!this.#t)
|
|
36
56
|
throw new Error("arcgis-assistant-help-agent requires a mapView");
|
|
37
57
|
return { mapView: this.#t };
|
|
38
58
|
}
|
|
39
59
|
load() {
|
|
40
|
-
this.#t =
|
|
60
|
+
this.#t = o(this, "arcgis-assistant-help-agent"), this.#i = p(this);
|
|
61
|
+
}
|
|
62
|
+
disconnectedCallback() {
|
|
63
|
+
this.#i?.unregister(this.agent.id), super.disconnectedCallback();
|
|
41
64
|
}
|
|
42
65
|
}
|
|
43
|
-
t("arcgis-assistant-help-agent",
|
|
66
|
+
t("arcgis-assistant-help-agent", m);
|
|
44
67
|
export {
|
|
45
|
-
|
|
68
|
+
m as ArcgisAssistantHelpAgent
|
|
46
69
|
};
|
|
@@ -13,11 +13,15 @@ export abstract class ArcgisAssistantInterrupt extends LitElement {
|
|
|
13
13
|
enterTextLabel: string;
|
|
14
14
|
submitButtonLabel: string;
|
|
15
15
|
cancelButtonLabel: string;
|
|
16
|
+
approveButtonLabel: string;
|
|
17
|
+
declineButtonLabel: string;
|
|
16
18
|
} & T9nMeta<{
|
|
17
19
|
optionsLabel: string;
|
|
18
20
|
enterTextLabel: string;
|
|
19
21
|
submitButtonLabel: string;
|
|
20
22
|
cancelButtonLabel: string;
|
|
23
|
+
approveButtonLabel: string;
|
|
24
|
+
declineButtonLabel: string;
|
|
21
25
|
}>;
|
|
22
26
|
accessor message: string | undefined;
|
|
23
27
|
accessor options: string[] | undefined;
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import { c
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as l, createEvent as
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as a, html as e } from "lit";
|
|
4
|
+
import { LitElement as l, createEvent as s } from "@arcgis/lumina";
|
|
5
5
|
import { u as r } from "../../chunks/useT9n.js";
|
|
6
|
-
const n =
|
|
6
|
+
const n = a`:host{padding:var(--calcite-spacing-md);background:var(--calcite-panel-background-color, var(--calcite-color-background))}calcite-panel{border-radius:var(--calcite-dialog-corner-radius, var(--calcite-corner-radius-sm));border:0 solid var(--calcite-color-brand);border-block-start-width:4px;box-shadow:var(--calcite-shadow-md);width:100%;--calcite-panel-border-color: none}.interrupt-content{padding:0 var(--calcite-spacing-md);background:var(--calcite-color-foreground-1)}`;
|
|
7
7
|
class o extends l {
|
|
8
8
|
constructor() {
|
|
9
|
-
super(...arguments), this
|
|
9
|
+
super(...arguments), this._messages = r({ blocking: !0 }), this._selectedOptions = [], this.arcgisCancel = s(), this.arcgisSubmit = s();
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
|
-
this.properties = { type: 1, message: 1, options: 0 };
|
|
12
|
+
this.properties = { _selectedOptions: 16, type: 1, message: 1, options: 0 };
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
15
|
this.styles = n;
|
|
16
16
|
}
|
|
17
|
-
#t;
|
|
18
17
|
_renderInterruptOptions() {
|
|
19
18
|
switch (this.type) {
|
|
20
19
|
case "single-select":
|
|
21
|
-
return e`<calcite-list selection-mode=single-persist .label=${this._messages.optionsLabel} @calciteListChange=${(t) => this
|
|
20
|
+
return e`<calcite-list selection-mode=single-persist .label=${this._messages.optionsLabel} @calciteListChange=${(t) => this._selectedOptions = t.target.selectedItems[0]?.value}>${this.options?.map((t) => e`<calcite-list-item .label=${t} .value=${t}></calcite-list-item>`)}</calcite-list>`;
|
|
22
21
|
case "multi-select":
|
|
23
|
-
return e`<calcite-list selection-mode=multiple .label=${this._messages.optionsLabel} @calciteListChange=${(t) => this
|
|
22
|
+
return e`<calcite-list selection-mode=multiple .label=${this._messages.optionsLabel} @calciteListChange=${(t) => this._selectedOptions = t.target.selectedItems.map((i) => i.value)}>${this.options?.map((t) => e`<calcite-list-item .label=${t} .value=${t}></calcite-list-item>`)}</calcite-list>`;
|
|
24
23
|
case "boolean-choice":
|
|
25
24
|
return null;
|
|
26
25
|
case "text-input":
|
|
27
|
-
return e`<calcite-input .label=${this._messages.enterTextLabel} @calciteInputInput=${(t) => this
|
|
26
|
+
return e`<calcite-input .label=${this._messages.enterTextLabel} @calciteInputInput=${(t) => this._selectedOptions = t.target.value}></calcite-input>`;
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
render() {
|
|
31
|
-
return e`<calcite-panel .description=${this.message}><div class="interrupt-content">${this._renderInterruptOptions()}</div
|
|
30
|
+
return e`<calcite-panel .description=${this.message}><div class="interrupt-content">${this._renderInterruptOptions()}</div>${this.type === "boolean-choice" ? e`<calcite-button slot=footer-end appearance=outline @click=${() => this.arcgisSubmit.emit(!1)}>${this._messages.declineButtonLabel}</calcite-button><calcite-button slot=footer-end appearance=solid @click=${() => this.arcgisSubmit.emit(!0)}>${this._messages.approveButtonLabel}</calcite-button>` : e`<calcite-button slot=footer-end appearance=outline @click=${() => this.arcgisCancel.emit()}>${this._messages.cancelButtonLabel}</calcite-button><calcite-button slot=footer-end appearance=solid .disabled=${!this._selectedOptions.length} @click=${() => this.arcgisSubmit.emit(this._selectedOptions)}>${this._messages.submitButtonLabel}</calcite-button>`}</calcite-panel>`;
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
|
-
|
|
33
|
+
c("arcgis-assistant-interrupt", o);
|
|
35
34
|
export {
|
|
36
35
|
o as ArcgisAssistantInterrupt
|
|
37
36
|
};
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
2
|
import { c as r } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { css as a, html as i } from "lit";
|
|
4
|
+
import { LitElement as l } from "@arcgis/lumina";
|
|
5
|
+
import { u as n } from "../../chunks/useT9n.js";
|
|
6
|
+
const c = a`.interrupt-details{word-wrap:break-word}.interrupt-details ul{margin-block:var(--calcite-spacing-xxs) 0;padding-inline-start:var(--calcite-spacing-xxl)}.interrupt-details li{margin-block:0}.interrupts-container{display:flex;flex-direction:column;gap:var(--calcite-spacing-lg)}`;
|
|
7
|
+
class p extends l {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments), this._messages = n({ blocking: !0 });
|
|
10
|
+
}
|
|
7
11
|
static {
|
|
8
12
|
this.properties = { interrupts: 0 };
|
|
9
13
|
}
|
|
10
14
|
static {
|
|
11
|
-
this.styles =
|
|
15
|
+
this.styles = c;
|
|
12
16
|
}
|
|
13
17
|
render() {
|
|
14
|
-
return this.interrupts?.length ?
|
|
18
|
+
return this.interrupts?.length ? i`<calcite-block expandable expanded .heading=${this._messages.assistantQuestions}><div class="interrupts-container">${this.interrupts?.map(({ interrupt: s, response: t }) => i`<div class="interrupt-details"><div>Q: ${s.message}</div><ul>${Array.isArray(t) ? t.length ? t.map((e) => i`<li>${e}</li>`) : i`<li>${this._messages.questionSkipped}</li>` : i`<li>${t != null ? String(t) : this._messages.questionSkipped}</li>`}</ul></div>`)}</div></calcite-block>` : null;
|
|
15
19
|
}
|
|
16
20
|
}
|
|
17
|
-
r("arcgis-assistant-interrupt-preview",
|
|
21
|
+
r("arcgis-assistant-interrupt-preview", p);
|
|
18
22
|
export {
|
|
19
|
-
|
|
23
|
+
p as ArcgisAssistantInterruptPreview
|
|
20
24
|
};
|
|
@@ -107,7 +107,7 @@ import type { ArcgisMap as ArcgisMap } from "@arcgis/map-components/components/a
|
|
|
107
107
|
export abstract class ArcgisAssistantKnowledgeAgent extends LitElement {
|
|
108
108
|
/**
|
|
109
109
|
* Optional context for the knowledge agent. If the agent does not have a view or kg service url provided via reference element or serviceUrl property
|
|
110
|
-
* a knowledge graph can be provided directly via context to enable Knowledge Service related
|
|
110
|
+
* a knowledge graph can be provided directly via context to enable Knowledge Service related capabilities.
|
|
111
111
|
*
|
|
112
112
|
* Depending on the context provided, different capabilities will be available.
|
|
113
113
|
*/
|
|
@@ -1,37 +1,58 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
2
|
import { c as r } from "../../chunks/runtime.js";
|
|
3
|
-
import { LitElement as
|
|
3
|
+
import { LitElement as e } from "@arcgis/lumina";
|
|
4
|
+
import "../../agents/runtime/skill/createSkillAgent.js";
|
|
4
5
|
import "@langchain/langgraph/web";
|
|
5
6
|
import "../../chunks/adapter.js";
|
|
6
7
|
import "@arcgis/core/identity/IdentityManager.js";
|
|
7
8
|
import "@arcgis/core/portal/Portal.js";
|
|
9
|
+
import "@arcgis/core/request.js";
|
|
10
|
+
import "@arcgis/toolkit/string";
|
|
8
11
|
import "../../chunks/generateLayerDescriptions.js";
|
|
9
12
|
import "@langchain/core/messages";
|
|
10
13
|
import "@langchain/core/callbacks/dispatch/web";
|
|
14
|
+
import "@langchain/core/callbacks/base";
|
|
11
15
|
import "@langchain/openai";
|
|
12
16
|
import "@arcgis/core/config.js";
|
|
13
17
|
import "@arcgis/core/core/reactiveUtils.js";
|
|
14
18
|
import "@arcgis/core/layers/FeatureLayer.js";
|
|
15
|
-
import "@arcgis/core/request.js";
|
|
16
19
|
import "@langchain/core/prompts";
|
|
20
|
+
import "../../agents/tools/navigation/goToAddress/adapter.js";
|
|
21
|
+
import "../../agents/tools/navigation/goToBookmark/adapter.js";
|
|
22
|
+
import "../../agents/tools/navigation/goToFeatures/adapter.js";
|
|
23
|
+
import "../../agents/tools/navigation/goToFullExtent/adapter.js";
|
|
24
|
+
import "../../agents/tools/navigation/goToHomeExtent/adapter.js";
|
|
25
|
+
import "../../agents/tools/navigation/goToLayer/adapter.js";
|
|
26
|
+
import "../../agents/tools/navigation/goToScale/adapter.js";
|
|
27
|
+
import "../../agents/tools/navigation/goToViewpoint/adapter.js";
|
|
28
|
+
import "../../agents/tools/navigation/goToZoom/adapter.js";
|
|
17
29
|
import "@langchain/langgraph/prebuilt";
|
|
18
30
|
import "zod";
|
|
31
|
+
import "../../agents/tools/filter/clearFilters/adapter.js";
|
|
32
|
+
import "../../agents/tools/filter/resetMap/adapter.js";
|
|
33
|
+
import "../../agents/tools/filter/setFeatureEffect/adapter.js";
|
|
34
|
+
import "../../agents/tools/query/getAttribute/adapter.js";
|
|
35
|
+
import "../../agents/tools/query/getStatistics/adapter.js";
|
|
36
|
+
import "../../agents/tools/query/getTopFeatures/adapter.js";
|
|
37
|
+
import "../../agents/tools/query/queryFeatures/adapter.js";
|
|
19
38
|
import "@arcgis/core/intl.js";
|
|
20
39
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
21
40
|
import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
41
|
+
import "../../agents/tools/help/listFields/adapter.js";
|
|
22
42
|
import { A as o } from "../../chunks/arcgisKnowledgeGraph.js";
|
|
23
|
-
import {
|
|
24
|
-
import { fetchKnowledgeGraph as
|
|
25
|
-
class
|
|
43
|
+
import { a as s, i as n } from "../../chunks/utils2.js";
|
|
44
|
+
import { fetchKnowledgeGraph as p } from "@arcgis/core/rest/knowledgeGraphService.js";
|
|
45
|
+
class m extends e {
|
|
26
46
|
constructor() {
|
|
27
47
|
super(...arguments), this.agent = o;
|
|
28
48
|
}
|
|
29
49
|
static {
|
|
30
50
|
this.properties = { referenceElement: 1, serviceUrl: 3, context: 0 };
|
|
31
51
|
}
|
|
32
|
-
#
|
|
52
|
+
#i;
|
|
33
53
|
#r;
|
|
34
54
|
#t;
|
|
55
|
+
#e;
|
|
35
56
|
get serviceUrl() {
|
|
36
57
|
return this.#r;
|
|
37
58
|
}
|
|
@@ -40,30 +61,33 @@ class c extends i {
|
|
|
40
61
|
}
|
|
41
62
|
async getContext() {
|
|
42
63
|
const t = this.context ? { ...this.context, knowledgeGraph: void 0, view: void 0 } : {};
|
|
43
|
-
if (this.#
|
|
64
|
+
if (this.#i)
|
|
44
65
|
return {
|
|
45
66
|
...t,
|
|
46
|
-
view: this.#
|
|
67
|
+
view: this.#i
|
|
47
68
|
};
|
|
48
69
|
if (this.#t)
|
|
49
70
|
try {
|
|
50
|
-
const
|
|
51
|
-
return { ...t, knowledgeGraph:
|
|
52
|
-
} catch (
|
|
53
|
-
console.error("Failed to load knowledge graph via service URL:",
|
|
71
|
+
const i = await this.#t;
|
|
72
|
+
return { ...t, knowledgeGraph: i };
|
|
73
|
+
} catch (i) {
|
|
74
|
+
console.error("Failed to load knowledge graph via service URL:", i);
|
|
54
75
|
}
|
|
55
76
|
if (!this.context?.knowledgeGraph && !this.context?.view)
|
|
56
77
|
throw new Error("arcgis-assistant-knowledge-agent requires either a knowledgeGraph or view in context, and neither were provided");
|
|
57
78
|
return this.context;
|
|
58
79
|
}
|
|
59
80
|
willUpdate(t) {
|
|
60
|
-
t.has("serviceUrl") && this.serviceUrl ? this.#t =
|
|
81
|
+
t.has("serviceUrl") && this.serviceUrl ? this.#t = p(this.serviceUrl) : this.#t = void 0;
|
|
61
82
|
}
|
|
62
83
|
load() {
|
|
63
|
-
this.#
|
|
84
|
+
this.#i = s(this) ?? void 0, this.#e = n(this);
|
|
85
|
+
}
|
|
86
|
+
disconnectedCallback() {
|
|
87
|
+
this.#e?.unregister(this.agent.id), super.disconnectedCallback();
|
|
64
88
|
}
|
|
65
89
|
}
|
|
66
|
-
r("arcgis-assistant-knowledge-agent",
|
|
90
|
+
r("arcgis-assistant-knowledge-agent", m);
|
|
67
91
|
export {
|
|
68
|
-
|
|
92
|
+
m as ArcgisAssistantKnowledgeAgent
|
|
69
93
|
};
|
|
@@ -1,29 +1,48 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
2
|
import { c as t } from "../../chunks/runtime.js";
|
|
3
3
|
import { LitElement as i } from "@arcgis/lumina";
|
|
4
|
+
import "../../agents/runtime/skill/createSkillAgent.js";
|
|
4
5
|
import "@langchain/langgraph/web";
|
|
5
6
|
import "../../chunks/adapter.js";
|
|
6
7
|
import "@arcgis/core/identity/IdentityManager.js";
|
|
7
8
|
import "@arcgis/core/portal/Portal.js";
|
|
9
|
+
import "@arcgis/core/request.js";
|
|
10
|
+
import "@arcgis/toolkit/string";
|
|
8
11
|
import "../../chunks/generateLayerDescriptions.js";
|
|
9
12
|
import "@langchain/core/messages";
|
|
10
13
|
import "@langchain/core/callbacks/dispatch/web";
|
|
14
|
+
import "@langchain/core/callbacks/base";
|
|
11
15
|
import "@langchain/openai";
|
|
12
16
|
import "@arcgis/core/config.js";
|
|
13
17
|
import "@arcgis/core/core/reactiveUtils.js";
|
|
14
18
|
import "@arcgis/core/layers/FeatureLayer.js";
|
|
15
|
-
import "@arcgis/core/request.js";
|
|
16
19
|
import "@langchain/core/prompts";
|
|
20
|
+
import "../../agents/tools/navigation/goToAddress/adapter.js";
|
|
21
|
+
import "../../agents/tools/navigation/goToBookmark/adapter.js";
|
|
22
|
+
import "../../agents/tools/navigation/goToFeatures/adapter.js";
|
|
23
|
+
import "../../agents/tools/navigation/goToFullExtent/adapter.js";
|
|
24
|
+
import "../../agents/tools/navigation/goToHomeExtent/adapter.js";
|
|
25
|
+
import "../../agents/tools/navigation/goToLayer/adapter.js";
|
|
26
|
+
import "../../agents/tools/navigation/goToScale/adapter.js";
|
|
27
|
+
import "../../agents/tools/navigation/goToViewpoint/adapter.js";
|
|
28
|
+
import "../../agents/tools/navigation/goToZoom/adapter.js";
|
|
17
29
|
import "@langchain/langgraph/prebuilt";
|
|
18
30
|
import "zod";
|
|
31
|
+
import "../../agents/tools/filter/clearFilters/adapter.js";
|
|
32
|
+
import "../../agents/tools/filter/resetMap/adapter.js";
|
|
33
|
+
import "../../agents/tools/filter/setFeatureEffect/adapter.js";
|
|
34
|
+
import "../../agents/tools/query/getAttribute/adapter.js";
|
|
35
|
+
import "../../agents/tools/query/getStatistics/adapter.js";
|
|
36
|
+
import "../../agents/tools/query/getTopFeatures/adapter.js";
|
|
37
|
+
import "../../agents/tools/query/queryFeatures/adapter.js";
|
|
19
38
|
import "@arcgis/core/intl.js";
|
|
20
39
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
21
40
|
import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
22
41
|
import { L as r } from "../../chunks/layerStylingGraph.js";
|
|
23
|
-
import "
|
|
42
|
+
import "../../agents/tools/help/listFields/adapter.js";
|
|
24
43
|
import "@arcgis/core/rest/knowledgeGraphService.js";
|
|
25
|
-
import { r as
|
|
26
|
-
class
|
|
44
|
+
import { r as o, i as m } from "../../chunks/utils2.js";
|
|
45
|
+
class s extends i {
|
|
27
46
|
constructor() {
|
|
28
47
|
super(...arguments), this.agent = r;
|
|
29
48
|
}
|
|
@@ -31,16 +50,20 @@ class o extends i {
|
|
|
31
50
|
this.properties = { referenceElement: 1 };
|
|
32
51
|
}
|
|
33
52
|
#t;
|
|
53
|
+
#i;
|
|
34
54
|
getContext() {
|
|
35
55
|
if (!this.#t)
|
|
36
56
|
throw new Error("arcgis-assistant-layer-styling-agent requires a mapView");
|
|
37
57
|
return { mapView: this.#t };
|
|
38
58
|
}
|
|
39
59
|
load() {
|
|
40
|
-
this.#t =
|
|
60
|
+
this.#t = o(this, "arcgis-assistant-layer-styling-agent"), this.#i = m(this);
|
|
61
|
+
}
|
|
62
|
+
disconnectedCallback() {
|
|
63
|
+
this.#i?.unregister(this.agent.id), super.disconnectedCallback();
|
|
41
64
|
}
|
|
42
65
|
}
|
|
43
|
-
t("arcgis-assistant-layer-styling-agent",
|
|
66
|
+
t("arcgis-assistant-layer-styling-agent", s);
|
|
44
67
|
export {
|
|
45
|
-
|
|
68
|
+
s as ArcgisAssistantLayerStylingAgent
|
|
46
69
|
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { AssistantMessage } from "../arcgis-assistant/types.js";
|
|
4
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Renders a single assistant response message shell. Pass one assistant message object and let it host body and footer actions.
|
|
7
8
|
* Offers a reusable assistant-message layout with icon, content, and footer slot regions.
|
|
8
9
|
*/
|
|
9
10
|
export abstract class ArcgisAssistantMessage extends LitElement {
|
|
11
|
+
/** @internal */
|
|
12
|
+
protected _messages: { loadingLabel: string; } & T9nMeta<{ loadingLabel: string; }>;
|
|
10
13
|
/** @default false */
|
|
11
14
|
accessor assistantAvatarEnabled: boolean;
|
|
12
15
|
/** @default false */
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
2
|
import { c as o } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as l, html as e } from "lit";
|
|
4
4
|
import { LitElement as c, nothing as d } from "@arcgis/lumina";
|
|
5
|
-
import {
|
|
5
|
+
import { u as g } from "../../chunks/useT9n.js";
|
|
6
|
+
import { useSlottableRequest as m } from "@arcgis/lumina/controllers";
|
|
6
7
|
import { g as r } from "../../chunks/slottableRequestUtils.js";
|
|
7
|
-
const
|
|
8
|
+
const p = l`:host{display:block;container-type:inline-size}.container{display:flex;flex-direction:column;align-items:flex-start;gap:var(--calcite-spacing-sm);width:100%;text-align:left}.icon{padding:var(--calcite-spacing-sm);border-radius:var(--calcite-spacing-xl);background:var(--calcite-color-brand);color:var(--calcite-color-foreground-1)}.content-container{display:flex;flex:1;flex-direction:column;width:100%;min-width:0;gap:var(--calcite-spacing-md)}.content{display:flex;flex-direction:column;min-width:0;gap:var(--calcite-spacing-sm)}.blocks{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.block-pending{display:flex;justify-content:center;align-items:center;padding:var(--calcite-spacing-sm);background:linear-gradient(90deg,color-mix(in srgb,var(--calcite-color-foreground-2) 65%,transparent),color-mix(in srgb,var(--calcite-color-foreground-3) 85%,transparent),color-mix(in srgb,var(--calcite-color-foreground-2) 65%,transparent));background-size:200% 100%;animation:assistant-message-loading-shimmer 2s ease-in-out infinite;border-radius:var(--calcite-border-radius);min-height:100px}.message-error{font-style:italic}@container (min-width: 480px){.container{max-width:80%}}@keyframes assistant-message-loading-shimmer{0%{background-position:-150% 0}to{background-position:150% 0}}@media(prefers-reduced-motion){.block-pending{animation:none}}`;
|
|
8
9
|
function b({ message: t }) {
|
|
9
10
|
const s = /* @__PURE__ */ new Map();
|
|
10
11
|
return t && t.blocks?.forEach((a, i) => {
|
|
@@ -14,15 +15,15 @@ function b({ message: t }) {
|
|
|
14
15
|
}
|
|
15
16
|
}), s;
|
|
16
17
|
}
|
|
17
|
-
class
|
|
18
|
+
class u extends c {
|
|
18
19
|
constructor() {
|
|
19
|
-
super(...arguments), this.
|
|
20
|
+
super(...arguments), this._messages = g({ blocking: !0 }), this.arcgisSlottableRequest = m(this, ["message"], b), this.feedbackEnabled = !1, this.logEnabled = !1, this.copyEnabled = !1, this.readAloudEnabled = !1, this.footerDisabled = !1, this.assistantAvatarEnabled = !1;
|
|
20
21
|
}
|
|
21
22
|
static {
|
|
22
23
|
this.properties = { _isStreaming: 16, feedbackEnabled: 5, logEnabled: 5, copyEnabled: 5, readAloudEnabled: 5, footerDisabled: 5, message: 0, assistantAvatarEnabled: 5 };
|
|
23
24
|
}
|
|
24
25
|
static {
|
|
25
|
-
this.styles =
|
|
26
|
+
this.styles = p;
|
|
26
27
|
}
|
|
27
28
|
get _isStreaming() {
|
|
28
29
|
return !!this.message?.isStreaming;
|
|
@@ -36,10 +37,10 @@ class p extends c {
|
|
|
36
37
|
return e`<arcgis-assistant-message-footer .message=${this.message} .feedbackEnabled=${this.feedbackEnabled} .logEnabled=${this.logEnabled} .copyEnabled=${this.copyEnabled} .readAloudEnabled=${this.readAloudEnabled}></arcgis-assistant-message-footer>`;
|
|
37
38
|
}
|
|
38
39
|
render() {
|
|
39
|
-
return e`<div class="container">${this.assistantAvatarEnabled ? e`<slot name=icon><calcite-icon icon=effects class="icon" scale=s></calcite-icon></slot>` : null}<div class="content-container"><slot name=content>${this._renderContent()}</slot>${this.message?.error ? e`<div class="message-error">${this.message.error}</div>` : null}${this._isStreaming ? e`<div class="streaming-indicator"><calcite-loader label
|
|
40
|
+
return e`<div class="container">${this.assistantAvatarEnabled ? e`<slot name=icon><calcite-icon icon=effects class="icon" scale=s></calcite-icon></slot>` : null}<div class="content-container"><slot name=content>${this._renderContent()}</slot>${this.message?.error ? e`<div class="message-error">${this.message.error}</div>` : null}${this._isStreaming ? e`<div class="streaming-indicator"><calcite-loader .label=${this._messages.loadingLabel} inline></calcite-loader></div>` : null}${!this.footerDisabled && !this._isStreaming ? e`<slot name=footer>${this._renderFooter()}</slot>` : null}</div></div>`;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
o("arcgis-assistant-message",
|
|
43
|
+
o("arcgis-assistant-message", u);
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
u as ArcgisAssistantMessage
|
|
45
46
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
2
|
import { c as n } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as i, html as r } from "lit";
|
|
4
4
|
import { LitElement as o } from "@arcgis/lumina";
|
|
@@ -21,7 +21,7 @@ class c extends o {
|
|
|
21
21
|
case "suggested-prompts":
|
|
22
22
|
return this._renderSuggestedPrompts(s);
|
|
23
23
|
case "text":
|
|
24
|
-
return r`<arcgis-assistant-message-text .content=${s.data?.content}></arcgis-assistant-message-text>`;
|
|
24
|
+
return r`<arcgis-assistant-message-text .content=${s.data?.content} .parts=${s.data?.parts}></arcgis-assistant-message-text>`;
|
|
25
25
|
default:
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/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/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/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,12 +1,15 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { AssistantMessage } from "../arcgis-assistant/types.js";
|
|
4
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Shows in-progress assistant response UI. Use it to display thinking or loading state while work is running.
|
|
7
8
|
* Offers a default loading message shell with icon/content slot overrides.
|
|
8
9
|
*/
|
|
9
10
|
export abstract class ArcgisAssistantMessageLoading extends LitElement {
|
|
11
|
+
/** @internal */
|
|
12
|
+
protected _messages: { loadingLabel: string; } & T9nMeta<{ loadingLabel: string; }>;
|
|
10
13
|
/** @default false */
|
|
11
14
|
accessor assistantAvatarEnabled: boolean;
|
|
12
15
|
accessor interrupts: AssistantMessage["interrupts"] | undefined;
|