@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,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
2
|
import { property as u, subclass as w } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
3
3
|
import { c as f } from "../../chunks/graph.js";
|
|
4
4
|
import { B as h } from "../../chunks/BaseWorkflow.js";
|
|
@@ -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 { property as A, subclass as I } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
3
3
|
import { c as U } from "../../chunks/graph.js";
|
|
4
4
|
import { a as W } from "../../chunks/state.js";
|
|
@@ -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 { property as h, subclass as g } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
3
3
|
import { B as v, g as l } from "../../chunks/BaseWorkflow.js";
|
|
4
4
|
var w = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, f = (e) => {
|
|
@@ -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 { property as p, subclass as f } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
3
3
|
import { B as c, g as i, a as m } from "../../chunks/BaseWorkflow.js";
|
|
4
4
|
var d = Object.defineProperty, w = Object.getOwnPropertyDescriptor, u = (e, o, r, t) => {
|
|
@@ -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 { property as u, subclass as _ } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
3
3
|
import { B as y, g as v } from "../../chunks/BaseWorkflow.js";
|
|
4
4
|
var A = Object.defineProperty, N = Object.getOwnPropertyDescriptor, g = (e) => {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { AgentCreateGraph, AgentCustomState, AgentData, AgentStateAnnotation, ZodObjectSchema } from "../agent-utils/types.js";
|
|
2
|
+
import type { AgenticWorkflowJson } from "./jsonTypes.js";
|
|
3
|
+
import type { GraphNodeResultsState } from "./types.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Loads and compiles an ArcGIS Agentic Workflow definition into an executable graph.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export class AgenticWorkflowRuntime<TInput extends AgentData = AgentData, TOutput extends AgentData = AgentData> {
|
|
11
|
+
/** @param sourceJSON */
|
|
12
|
+
static fromJSON<TInput extends AgentData = AgentData, TOutput extends AgentData = AgentData>(sourceJSON: AgenticWorkflowJson): AgenticWorkflowRuntime<TInput, TOutput>;
|
|
13
|
+
generate(): AgenticWorkflowGenerateResult<TInput, TOutput>;
|
|
14
|
+
getSchemas(): ZodObjectSchema<object>[];
|
|
15
|
+
load(): Promise<this>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type AgenticWorkflowGenerateResult<TInput extends AgentData, TOutput extends AgentData> = {
|
|
19
|
+
createGraph: AgentCreateGraph<AgenticWorkflowState<TInput, TOutput>>;
|
|
20
|
+
workspace: AgentStateAnnotation<AgenticWorkflowState<TInput, TOutput>>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type AgenticWorkflowState<TInput extends AgentData, TOutput extends AgentData> = GraphNodeResultsState
|
|
24
|
+
& Omit<AgentCustomState<TInput, TOutput>, "nodes">;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type Accessor from "@arcgis/core/core/Accessor.js";
|
|
2
|
+
import type { AgenticWorkflowEdgeJson } from "./jsonTypes.js";
|
|
3
|
+
|
|
4
|
+
/** @internal */
|
|
5
|
+
export class Edge extends Accessor {
|
|
6
|
+
/** @param json */
|
|
7
|
+
static fromJSON(json: AgenticWorkflowEdgeJson): Edge;
|
|
8
|
+
constructor(properties?: EdgeConstructProperties);
|
|
9
|
+
accessor id: string;
|
|
10
|
+
accessor sourceAnchorId: string;
|
|
11
|
+
accessor sourceNodeId: string;
|
|
12
|
+
accessor targetAnchorId: string | undefined;
|
|
13
|
+
accessor targetNodeId: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type EdgeConstructProperties = Pick<Edge, "id" | "sourceAnchorId" | "sourceNodeId" | "targetAnchorId" | "targetNodeId">;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type PortalItem from "@arcgis/core/portal/PortalItem.js";
|
|
2
|
+
import type { BaseAgent } from "../agent-utils/BaseAgent.js";
|
|
3
|
+
import type { AgentData, ZodObjectSchema } from "../agent-utils/types.js";
|
|
4
|
+
import type { AgenticWorkflowJson } from "./jsonTypes.js";
|
|
5
|
+
import type { AgenticWorkflowState } from "./AgenticWorkflowRuntime.js";
|
|
6
|
+
|
|
7
|
+
/** @internal */
|
|
8
|
+
export class WebAgent<TInput extends AgentData = AgentData, TOutput extends AgentData = AgentData> extends BaseAgent<WebAgentState<TInput, TOutput>> {
|
|
9
|
+
constructor(properties?: WebAgentConstructProperties<TInput, TOutput>);
|
|
10
|
+
/**
|
|
11
|
+
* The portal item associated with this web agent
|
|
12
|
+
*
|
|
13
|
+
* @required
|
|
14
|
+
*/
|
|
15
|
+
accessor portalItem: PortalItem | undefined;
|
|
16
|
+
accessor sourceJSON: AgenticWorkflowJson | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Rebuilds internal workspace and createGraph wiring. This is automatically called during initialization and whenever
|
|
19
|
+
* the name or description properties change, but can also be called manually if needed to refresh the agent's graph definition.
|
|
20
|
+
*
|
|
21
|
+
* The agent implementation is responsible for defining the createGraph function and workspace structure in this method, which are then used during execution.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
generate(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Returns all schemas required by this agent implementation.
|
|
28
|
+
*
|
|
29
|
+
* @returns An array of Zod object schemas that define the structure of the agent's expected input and output data.
|
|
30
|
+
* These schemas are used for validation and type inference during graph execution.
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
getSchemas(): ZodObjectSchema<object>[];
|
|
34
|
+
load(): Promise<this>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type WebAgentState<TInput extends AgentData, TOutput extends AgentData> = AgenticWorkflowState<TInput, TOutput>;
|
|
38
|
+
|
|
39
|
+
export type WebAgentConstructProperties<TInput extends AgentData, TOutput extends AgentData> = Partial<Pick<WebAgent<TInput, TOutput>, "portalItem" | "sourceJSON">>;
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
export type AgenticWorkflowJson = AgenticWorkflowJsonObject
|
|
2
|
+
& {
|
|
3
|
+
readonly description?: string;
|
|
4
|
+
readonly graph: AgenticWorkflowGraphJson;
|
|
5
|
+
readonly variables: AgenticWorkflowVariableJson[];
|
|
6
|
+
readonly version: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type AgenticWorkflowEdgeJson = AgenticWorkflowJsonObject
|
|
10
|
+
& {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly source_anchor_id: AgenticWorkflowSourceAnchorIdJson;
|
|
13
|
+
readonly source_node_id: AgenticWorkflowNodeIdJson;
|
|
14
|
+
readonly target_anchor_id?: AgenticWorkflowNodeIdJson;
|
|
15
|
+
readonly target_node_id: AgenticWorkflowNodeIdJson;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type AgenticWorkflowNodeTypeJson = "agent_node" | "end_message_node" | "guardrails_node" | "hitl_node" | "loop_node" | "start_node";
|
|
19
|
+
|
|
20
|
+
export type AgenticWorkflowBaseNodeJson<TType extends AgenticWorkflowNodeTypeJson> = AgenticWorkflowJsonObject
|
|
21
|
+
& {
|
|
22
|
+
readonly id: AgenticWorkflowNodeIdJson;
|
|
23
|
+
readonly label: string;
|
|
24
|
+
readonly type: TType;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type AgenticWorkflowStartNodeJson = AgenticWorkflowBaseNodeJson<"start_node">;
|
|
28
|
+
|
|
29
|
+
export type AgenticWorkflowEndMessageNodeJson = AgenticWorkflowBaseNodeJson<"end_message_node">
|
|
30
|
+
& {
|
|
31
|
+
readonly message: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type AgenticWorkflowAgentNodeJson = AgenticWorkflowBaseNodeJson<"agent_node">
|
|
35
|
+
& {
|
|
36
|
+
readonly prompt?: AgenticWorkflowPromptJson;
|
|
37
|
+
readonly structured_output?: AgenticWorkflowStructuredJsonSchemaJson;
|
|
38
|
+
readonly tools?: AgenticWorkflowToolJson[];
|
|
39
|
+
readonly llm_model?: AgenticWorkflowLLMModelJson;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type AgenticWorkflowArcgisToolJson = AgenticWorkflowJsonObject
|
|
43
|
+
& {
|
|
44
|
+
readonly type: "arcgis_tool";
|
|
45
|
+
readonly name: string;
|
|
46
|
+
readonly require_approval: AgenticWorkflowApprovalRequirementJson;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type AgenticWorkflowJsonObject = { readonly [key: string]: AgenticWorkflowJsonValue | undefined; };
|
|
50
|
+
|
|
51
|
+
export type AgenticWorkflowJsonValue = AgenticWorkflowJsonObject | AgenticWorkflowJsonPrimitive | AgenticWorkflowJsonValue[] | undefined;
|
|
52
|
+
|
|
53
|
+
export type AgenticWorkflowVariableJson = AgenticWorkflowJsonObject
|
|
54
|
+
& {
|
|
55
|
+
readonly data_type?: "array" | "boolean" | "number" | "object" | "string";
|
|
56
|
+
readonly description?: string;
|
|
57
|
+
readonly key: string;
|
|
58
|
+
readonly persisted: boolean;
|
|
59
|
+
readonly private: boolean;
|
|
60
|
+
readonly type: "value";
|
|
61
|
+
readonly value: AgenticWorkflowJsonValue;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type AgenticWorkflowGraphJson = AgenticWorkflowJsonObject
|
|
65
|
+
& {
|
|
66
|
+
readonly edges: AgenticWorkflowEdgeJson[];
|
|
67
|
+
readonly nodes: AgenticWorkflowNodeJson[];
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export type AgenticWorkflowNodeIdJson = `${string}_node_${number}`;
|
|
71
|
+
|
|
72
|
+
export type AgenticWorkflowSourceAnchorIdJson = `source_anchor_${string}`;
|
|
73
|
+
|
|
74
|
+
export type AgenticWorkflowNodeJson = AgenticWorkflowAgentNodeJson | AgenticWorkflowEndMessageNodeJson | AgenticWorkflowGuardrailsNodeJson | AgenticWorkflowHumanInTheLoopNodeJson | AgenticWorkflowLoopNodeJson | AgenticWorkflowStartNodeJson;
|
|
75
|
+
|
|
76
|
+
export type AgenticWorkflowLLMModelJson = {
|
|
77
|
+
readonly model_tier: "advanced" | "default" | "fast";
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export type AgenticWorkflowGuardrailsNodeJson = AgenticWorkflowBaseNodeJson<"guardrails_node">
|
|
81
|
+
& {
|
|
82
|
+
readonly conditions: AgenticWorkflowConditionJson[];
|
|
83
|
+
readonly confidence_threshold: number;
|
|
84
|
+
readonly prompt?: AgenticWorkflowPromptJson;
|
|
85
|
+
readonly llm_model?: AgenticWorkflowLLMModelJson;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export type AgenticWorkflowHumanInTheLoopNodeJson = AgenticWorkflowBaseNodeJson<"hitl_node">
|
|
89
|
+
& {
|
|
90
|
+
readonly conditions?: AgenticWorkflowConditionJson[];
|
|
91
|
+
readonly enable_feedback: boolean;
|
|
92
|
+
readonly human_input_description: string;
|
|
93
|
+
readonly human_input_description_type?: "dynamic" | "fixed";
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export type AgenticWorkflowLoopNodeJson = AgenticWorkflowBaseNodeJson<"loop_node">
|
|
97
|
+
& {
|
|
98
|
+
readonly loop_back_node_id: AgenticWorkflowNodeIdJson;
|
|
99
|
+
readonly max_loop_count: number;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export type AgenticWorkflowConditionJson = AgenticWorkflowJsonObject
|
|
103
|
+
& {
|
|
104
|
+
readonly preset?: "process" | "reject";
|
|
105
|
+
readonly source_anchor_id: AgenticWorkflowSourceAnchorIdJson;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export type AgenticWorkflowPromptJson = AgenticWorkflowJsonObject
|
|
109
|
+
& {
|
|
110
|
+
readonly content?: string;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export type AgenticWorkflowStructuredJsonSchemaJson = AgenticWorkflowJsonObject
|
|
114
|
+
& {
|
|
115
|
+
readonly properties: Record<string, AgenticWorkflowStructuredJsonPropertyJson>;
|
|
116
|
+
readonly required?: string[];
|
|
117
|
+
readonly type: "object";
|
|
118
|
+
readonly additionalProperties: boolean;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export type AgenticWorkflowStructuredJsonPropertyJson = AgenticWorkflowJsonObject
|
|
122
|
+
& {
|
|
123
|
+
readonly description?: string;
|
|
124
|
+
readonly enum?: string[];
|
|
125
|
+
readonly items?: AgenticWorkflowStructuredJsonPropertyJson;
|
|
126
|
+
readonly properties?: Record<string, AgenticWorkflowStructuredJsonPropertyJson>;
|
|
127
|
+
readonly required?: string[];
|
|
128
|
+
readonly type: "array" | "boolean" | "number" | "object" | "string";
|
|
129
|
+
readonly additionalProperties?: boolean;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export type AgenticWorkflowToolJson = AgenticWorkflowArcgisToolJson | AgenticWorkflowMcpToolJson;
|
|
133
|
+
|
|
134
|
+
export type AgenticWorkflowMcpToolJson = AgenticWorkflowJsonObject
|
|
135
|
+
& {
|
|
136
|
+
readonly allowed_tools?: string[];
|
|
137
|
+
readonly args?: string[];
|
|
138
|
+
readonly auth?: AgenticWorkflowMcpToolAuthAPIKeyJson | AgenticWorkflowMcpToolAuthBearerJson | AgenticWorkflowMcpToolAuthOAuth2Json;
|
|
139
|
+
readonly command?: string;
|
|
140
|
+
readonly env?: Record<string, string>;
|
|
141
|
+
readonly label?: string;
|
|
142
|
+
readonly override_params?: AgenticWorkflowUpdateVariableJson[];
|
|
143
|
+
readonly require_approval: AgenticWorkflowApprovalRequirementJson;
|
|
144
|
+
readonly return_direct?: boolean;
|
|
145
|
+
readonly server_description?: string;
|
|
146
|
+
readonly server_label?: string;
|
|
147
|
+
readonly server_url?: string;
|
|
148
|
+
readonly type: "mcp";
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export type AgenticWorkflowApprovalRequirementJson = "always" | "never";
|
|
152
|
+
|
|
153
|
+
export type AgenticWorkflowUpdateVariableJson = AgenticWorkflowJsonObject
|
|
154
|
+
& {
|
|
155
|
+
readonly key: string;
|
|
156
|
+
readonly value: AgenticWorkflowExpressionValueJson;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export type AgenticWorkflowExpressionValueJson = AgenticWorkflowJsonObject
|
|
160
|
+
& {
|
|
161
|
+
readonly return_type?: "array" | "boolean" | "number" | "object" | "string" | "unknown";
|
|
162
|
+
readonly type: "constant" | "variable";
|
|
163
|
+
readonly value: boolean | number | string;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export type AgenticWorkflowMcpToolAuthBearerJson = {
|
|
167
|
+
mode: string;
|
|
168
|
+
header_name?: string;
|
|
169
|
+
scheme?: string;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export type AgenticWorkflowMcpToolAuthAPIKeyJson = {
|
|
173
|
+
mode: string;
|
|
174
|
+
header_name?: string;
|
|
175
|
+
prefix?: string;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
export type AgenticWorkflowMcpToolAuthOAuth2Json = {
|
|
179
|
+
mode: string;
|
|
180
|
+
discovery?: string;
|
|
181
|
+
client_id?: string;
|
|
182
|
+
authorization_url?: string;
|
|
183
|
+
token_url?: string;
|
|
184
|
+
refresh_url?: string;
|
|
185
|
+
redirect_url?: string;
|
|
186
|
+
scope?: string;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
export type AgenticWorkflowJsonPrimitive = boolean | number | string | null;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { BaseNode } from "./BaseNode.js";
|
|
2
|
+
import type { AgenticWorkflowAgentNodeJson } from "../jsonTypes.js";
|
|
3
|
+
import type { AgentData, ZodObjectSchema } from "../../agent-utils/types.js";
|
|
4
|
+
import type { RuntimeNode, NodeCompilation, NodeCompilationContext } from "../types.js";
|
|
5
|
+
import type { ArcgisTool } from "./tools/ArcgisTool.js";
|
|
6
|
+
|
|
7
|
+
/** @internal */
|
|
8
|
+
export class AgentNode extends BaseNode {
|
|
9
|
+
/** @param json */
|
|
10
|
+
static fromJSON(json: AgenticWorkflowAgentNodeJson): AgentNode;
|
|
11
|
+
constructor(properties?: AgentNodeConstructProperties);
|
|
12
|
+
accessor modelTier: "advanced" | "default" | "fast" | undefined;
|
|
13
|
+
accessor outputSchema: ZodObjectSchema<AgentData> | undefined;
|
|
14
|
+
accessor prompt: string | undefined;
|
|
15
|
+
accessor tools: ArcgisTool[] | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The type of this node, which identifies it as an agent node within the workflow.
|
|
18
|
+
*
|
|
19
|
+
* @default "agent-node"
|
|
20
|
+
* @required
|
|
21
|
+
*/
|
|
22
|
+
accessor type: "agent-node";
|
|
23
|
+
/** @param context */
|
|
24
|
+
compile<TCustomState extends AgentData>(context: NodeCompilationContext): NodeCompilation<TCustomState>;
|
|
25
|
+
createRuntimeNode<TCustomState extends AgentData>(): RuntimeNode<TCustomState>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type AgentNodeConstructProperties = Pick<AgentNode, "id" | "label" | "modelTier" | "prompt" | "type">;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type Accessor from "@arcgis/core/core/Accessor.js";
|
|
2
|
+
import type { AgenticWorkflowBaseNodeJson, AgenticWorkflowNodeTypeJson } from "../jsonTypes.js";
|
|
3
|
+
import type { AgentData } from "../../agent-utils/types.js";
|
|
4
|
+
import type { NodeCompilation, NodeCompilationContext, RuntimeNode } from "../types.js";
|
|
5
|
+
|
|
6
|
+
/** @internal */
|
|
7
|
+
export abstract class BaseNode extends Accessor {
|
|
8
|
+
/** @param _json */
|
|
9
|
+
static fromJSON(_json: AgenticWorkflowBaseNodeJson<AgenticWorkflowNodeTypeJson>): BaseNode;
|
|
10
|
+
constructor(properties?: BaseNodeConstructProperties);
|
|
11
|
+
/**
|
|
12
|
+
* The unique identifier for this node.
|
|
13
|
+
*
|
|
14
|
+
* @required
|
|
15
|
+
*/
|
|
16
|
+
accessor id: string;
|
|
17
|
+
/**
|
|
18
|
+
* The label for this node, which is used for display purposes.
|
|
19
|
+
*
|
|
20
|
+
* @required
|
|
21
|
+
*/
|
|
22
|
+
accessor label: string;
|
|
23
|
+
/**
|
|
24
|
+
* The type of this node, which can be used to categorize or differentiate nodes within the agent's workflow.
|
|
25
|
+
*
|
|
26
|
+
* @required
|
|
27
|
+
*/
|
|
28
|
+
accessor type: string;
|
|
29
|
+
/** @param context */
|
|
30
|
+
compile<TCustomState extends AgentData>(context: NodeCompilationContext): NodeCompilation<TCustomState>;
|
|
31
|
+
abstract createRuntimeNode<TCustomState extends AgentData>(): RuntimeNode<TCustomState>;
|
|
32
|
+
load(): Promise<this>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type BaseNodeConstructProperties = Pick<BaseNode, "id" | "label" | "type">;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { BaseNode } from "./BaseNode.js";
|
|
2
|
+
import type { AgenticWorkflowEndMessageNodeJson } from "../jsonTypes.js";
|
|
3
|
+
import type { AgentData } from "../../agent-utils/types.js";
|
|
4
|
+
import type { NodeCompilation, NodeCompilationContext, RuntimeNode } from "../types.js";
|
|
5
|
+
|
|
6
|
+
/** @internal */
|
|
7
|
+
export class EndMessageNode extends BaseNode {
|
|
8
|
+
/** @param json */
|
|
9
|
+
static fromJSON(json: AgenticWorkflowEndMessageNodeJson): EndMessageNode;
|
|
10
|
+
constructor(properties?: EndMessageNodeConstructProperties);
|
|
11
|
+
/** The message associated with this end message node, which is displayed when the node is reached in the workflow. */
|
|
12
|
+
accessor message: string;
|
|
13
|
+
/**
|
|
14
|
+
* The type of this node, which identifies it as an end message node within the workflow.
|
|
15
|
+
*
|
|
16
|
+
* @default "end-message-node"
|
|
17
|
+
* @required
|
|
18
|
+
*/
|
|
19
|
+
accessor type: "end-message-node";
|
|
20
|
+
/** @param _context */
|
|
21
|
+
compile<TCustomState extends AgentData>(_context: NodeCompilationContext): NodeCompilation<TCustomState>;
|
|
22
|
+
createRuntimeNode<TCustomState extends AgentData>(): RuntimeNode<TCustomState>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type EndMessageNodeConstructProperties = Pick<EndMessageNode, "id" | "label" | "type">;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { BaseNode } from "./BaseNode.js";
|
|
2
|
+
import type { AgenticWorkflowStartNodeJson } from "../jsonTypes.js";
|
|
3
|
+
import type { RuntimeNode } from "../types.js";
|
|
4
|
+
import type { AgentData } from "../../agent-utils/types.js";
|
|
5
|
+
|
|
6
|
+
/** @internal */
|
|
7
|
+
export class StartNode extends BaseNode {
|
|
8
|
+
/** @param json */
|
|
9
|
+
static fromJSON(json: AgenticWorkflowStartNodeJson): StartNode;
|
|
10
|
+
constructor(properties?: StartNodeConstructProperties);
|
|
11
|
+
/**
|
|
12
|
+
* The type of this node, which can be used to categorize or differentiate nodes within the agent's workflow.
|
|
13
|
+
*
|
|
14
|
+
* @default "start-node"
|
|
15
|
+
* @required
|
|
16
|
+
*/
|
|
17
|
+
accessor type: "start-node";
|
|
18
|
+
createRuntimeNode<TCustomState extends AgentData>(): RuntimeNode<TCustomState>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type StartNodeConstructProperties = Pick<StartNode, "id" | "label" | "type">;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type Accessor from "@arcgis/core/core/Accessor.js";
|
|
2
|
+
import type { AgenticWorkflowArcgisToolJson } from "../../jsonTypes.js";
|
|
3
|
+
import type { StructuredToolInterface } from "@langchain/core/tools";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Portal configuration for ArcGIS tools.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export class ArcgisTool extends Accessor {
|
|
11
|
+
/** @param json */
|
|
12
|
+
static fromJSON(json: AgenticWorkflowArcgisToolJson): ArcgisTool;
|
|
13
|
+
constructor(properties?: ArcgisToolConstructProperties);
|
|
14
|
+
accessor name: string | undefined;
|
|
15
|
+
accessor requireApproval: "always" | "never" | undefined;
|
|
16
|
+
/** @default "arcgis-tool" */
|
|
17
|
+
accessor type: "arcgis-tool";
|
|
18
|
+
createRuntimeTools(): Promise<StructuredToolInterface[]>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type ArcgisToolConstructProperties = Pick<ArcgisTool, "name" | "requireApproval">;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AgentData, AgentGraphState, AgentRuntimeState, GraphEdge, GraphNodes, ZodObjectSchema } from "../agent-utils/types.js";
|
|
2
|
+
import type { Edge } from "./Edge.js";
|
|
3
|
+
|
|
4
|
+
export type GraphNodeResultsState = {
|
|
5
|
+
nodes: GraphNodeResults;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type RuntimeNode<TCustomState extends AgentData> = GraphNodes<AgentGraphState<GraphNodeResultsState & Omit<TCustomState, "nodes">>, AgentNodeGraphUpdate>[string];
|
|
9
|
+
|
|
10
|
+
export type NodeCompilationContext = {
|
|
11
|
+
outgoingEdges: Edge[];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type NodeCompilation<TCustomState extends AgentData> = {
|
|
15
|
+
runtimeNode?: RuntimeNode<TCustomState>;
|
|
16
|
+
edges: GraphEdge<WebAgentRuntimeState<TCustomState>>[];
|
|
17
|
+
schemas?: ZodObjectSchema<object>[];
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type GraphNodeResults = Record<string, GraphNodeResult>;
|
|
21
|
+
|
|
22
|
+
export type AgentNodeGraphUpdate = Partial<AgentRuntimeState & GraphNodeResultsState>
|
|
23
|
+
& Record<string, unknown>;
|
|
24
|
+
|
|
25
|
+
export type WebAgentRuntimeState<TCustomState extends AgentData> = AgentGraphState<GraphNodeResultsState & Omit<TCustomState, "nodes">>;
|
|
26
|
+
|
|
27
|
+
export type GraphNodeResult<TOutput extends AgentData = AgentData> = {
|
|
28
|
+
output: Omit<TOutput, keyof AgentRuntimeState | "output"> | string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { createChatModel } from "../../../orchestrator/providers/arcgis/aiFactory.js";
|
|
2
|
+
import type { AgentRegistration } from "../../../orchestrator/registry/agentRegistry.js";
|
|
3
|
+
import type { SkillLoader } from "./loadAgentSkills.js";
|
|
4
|
+
import type { ToolLoaders, RuntimeContextLoaderOptions } from "./types.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Creates an agent registration that loads and runs bundled skills.
|
|
8
|
+
*
|
|
9
|
+
* @param parameter0
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export function createSkillAgent(parameter0: SkillAgentOptions): AgentRegistration;
|
|
13
|
+
|
|
14
|
+
export type SkillAgentOptions = {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
skillLoaders: readonly [SkillLoader, ...SkillLoader[]];
|
|
19
|
+
toolLoaders?: ToolLoaders;
|
|
20
|
+
modelTier?: ModelTier;
|
|
21
|
+
systemPrompt: string;
|
|
22
|
+
runtimeContextLoader?: RuntimeContextLoader;
|
|
23
|
+
instructions?: string;
|
|
24
|
+
fallbackMessage?: string;
|
|
25
|
+
failureMessage?: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type ModelTier = NonNullable<Parameters<typeof createChatModel>[0]>["modelTier"];
|
|
29
|
+
|
|
30
|
+
/** @param options */
|
|
31
|
+
export type RuntimeContextLoader = (options: RuntimeContextLoaderOptions) => Promise<string> | string;
|