@arcgis/ai-components 5.2.0-next.120 → 5.2.0-next.121

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.
Files changed (133) hide show
  1. package/dist/agent-utils/LLMAgent.js +2 -0
  2. package/dist/agents/runtime/skill/createSkillAgent.js +115 -131
  3. package/dist/cdn/2DYOTV7W.js +4 -0
  4. package/dist/cdn/2WT4JANT.js +2 -0
  5. package/dist/cdn/{2NODROJN.js → 3F5EZZSG.js} +20 -24
  6. package/dist/cdn/4V3Q7XGS.js +2 -0
  7. package/dist/cdn/5GALSAQF.js +3 -0
  8. package/dist/cdn/72KYGCIU.js +2 -0
  9. package/dist/cdn/75OPJOCY.js +2 -0
  10. package/dist/cdn/7D6POJJA.js +2 -0
  11. package/dist/cdn/{SLR75R32.js → 7HVK7G55.js} +1 -1
  12. package/dist/cdn/7L6LPWRH.js +2 -0
  13. package/dist/cdn/7TAIUEMW.js +2 -0
  14. package/dist/cdn/{C2W6MBDB.js → D3E5NSY3.js} +1 -1
  15. package/dist/cdn/ESPC6NTI.js +68 -0
  16. package/dist/cdn/{HTB76P2C.js → EWO73MJA.js} +1 -1
  17. package/dist/cdn/{EIZR3Q5O.js → FGQLS3UX.js} +1 -1
  18. package/dist/cdn/FOZAOJCM.js +2 -0
  19. package/dist/cdn/GZDI2LAT.js +2 -0
  20. package/dist/cdn/H4ERKWFA.js +2 -0
  21. package/dist/cdn/{7W7KWR5O.js → H5AVPDSE.js} +4 -4
  22. package/dist/cdn/{2I2FHPHR.js → HDAMDEYL.js} +6 -6
  23. package/dist/cdn/JE55XX2C.js +2 -0
  24. package/dist/cdn/K36XPG2M.js +2 -0
  25. package/dist/cdn/KDE5MMMR.js +2 -0
  26. package/dist/cdn/{ZGZX7GR5.js → KONQTXBJ.js} +1 -1
  27. package/dist/cdn/{J4YHT55S.js → MCZJD3A4.js} +1 -1
  28. package/dist/cdn/MNZAQM3Q.js +3 -0
  29. package/dist/cdn/NHZRDYLP.js +2 -0
  30. package/dist/cdn/NYFV4A6L.js +3 -0
  31. package/dist/cdn/OGYNTGNM.js +2 -0
  32. package/dist/cdn/PGIXKPTW.js +2 -0
  33. package/dist/cdn/PTEKX5TX.js +2 -0
  34. package/dist/cdn/PUHPFUCU.js +2 -0
  35. package/dist/cdn/{GKWMAWFZ.js → QDOKDRBB.js} +1 -1
  36. package/dist/cdn/TGZBLBEJ.js +2 -0
  37. package/dist/cdn/{K7BUBCK7.js → UBKYXKMW.js} +1 -1
  38. package/dist/cdn/UXECAKJ7.js +2 -0
  39. package/dist/cdn/WXOKGQ4D.js +2 -0
  40. package/dist/cdn/Y364LLPN.js +2 -0
  41. package/dist/cdn/YBSY32EU.js +2 -0
  42. package/dist/cdn/{CF2V3NER.js → ZLLVPKDN.js} +35 -35
  43. package/dist/cdn/agent-utils/index.js +1 -1
  44. package/dist/cdn/assets/agents/t9n/messages.ar.json +1 -0
  45. package/dist/cdn/assets/agents/t9n/messages.bg.json +1 -0
  46. package/dist/cdn/assets/agents/t9n/messages.ca.json +1 -0
  47. package/dist/cdn/assets/agents/t9n/messages.cs.json +1 -0
  48. package/dist/cdn/assets/agents/t9n/messages.da.json +1 -0
  49. package/dist/cdn/assets/agents/t9n/messages.de.json +1 -0
  50. package/dist/cdn/assets/agents/t9n/messages.el.json +1 -0
  51. package/dist/cdn/assets/agents/t9n/messages.es.json +1 -0
  52. package/dist/cdn/assets/agents/t9n/messages.et.json +1 -0
  53. package/dist/cdn/assets/agents/t9n/messages.fi.json +1 -0
  54. package/dist/cdn/assets/agents/t9n/messages.fr.json +1 -0
  55. package/dist/cdn/assets/agents/t9n/messages.he.json +1 -0
  56. package/dist/cdn/assets/agents/t9n/messages.hr.json +1 -0
  57. package/dist/cdn/assets/agents/t9n/messages.hu.json +1 -0
  58. package/dist/cdn/assets/agents/t9n/messages.id.json +1 -0
  59. package/dist/cdn/assets/agents/t9n/messages.it.json +1 -0
  60. package/dist/cdn/assets/agents/t9n/messages.ja.json +1 -0
  61. package/dist/cdn/assets/agents/t9n/messages.ko.json +1 -0
  62. package/dist/cdn/assets/agents/t9n/messages.lt.json +1 -0
  63. package/dist/cdn/assets/agents/t9n/messages.lv.json +1 -0
  64. package/dist/cdn/assets/agents/t9n/messages.nl.json +1 -0
  65. package/dist/cdn/assets/agents/t9n/messages.no.json +1 -0
  66. package/dist/cdn/assets/agents/t9n/messages.pl.json +1 -0
  67. package/dist/cdn/assets/agents/t9n/messages.pt-BR.json +1 -0
  68. package/dist/cdn/assets/agents/t9n/messages.pt-PT.json +1 -0
  69. package/dist/cdn/assets/agents/t9n/messages.ro.json +1 -0
  70. package/dist/cdn/assets/agents/t9n/messages.ru.json +1 -0
  71. package/dist/cdn/assets/agents/t9n/messages.sk.json +1 -0
  72. package/dist/cdn/assets/agents/t9n/messages.sl.json +1 -0
  73. package/dist/cdn/assets/agents/t9n/messages.sr.json +1 -0
  74. package/dist/cdn/assets/agents/t9n/messages.sv.json +1 -0
  75. package/dist/cdn/assets/agents/t9n/messages.th.json +1 -0
  76. package/dist/cdn/assets/agents/t9n/messages.tr.json +1 -0
  77. package/dist/cdn/assets/agents/t9n/messages.uk.json +1 -0
  78. package/dist/cdn/assets/agents/t9n/messages.vi.json +1 -0
  79. package/dist/cdn/assets/agents/t9n/messages.zh-CN.json +1 -0
  80. package/dist/cdn/assets/agents/t9n/messages.zh-TW.json +1 -0
  81. package/dist/cdn/assets/orchestrator/t9n/messages.en.json +1 -0
  82. package/dist/cdn/index.js +1 -1
  83. package/dist/chunks/adapter.js +54 -52
  84. package/dist/chunks/aiFactory.js +59 -41
  85. package/dist/chunks/arcgisKnowledgeGraph.js +4 -2
  86. package/dist/chunks/dataExplorationAgent.js +1 -1
  87. package/dist/chunks/generateLayerDescriptions.js +160 -156
  88. package/dist/chunks/layerStylingGraph.js +2 -0
  89. package/dist/chunks/orchestrator.js +325 -295
  90. package/dist/components/arcgis-assistant/customElement.d.ts +1 -1
  91. package/dist/components/arcgis-assistant/customElement.js +113 -112
  92. package/dist/components/arcgis-assistant-agent/customElement.js +1 -0
  93. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +1 -0
  94. package/dist/components/arcgis-assistant-help-agent/customElement.js +1 -0
  95. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +5 -4
  96. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +1 -0
  97. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +1 -0
  98. package/dist/docs/api.json +1 -1
  99. package/dist/docs/docs.json +1 -1
  100. package/dist/docs/vscode.html-custom-data.json +1 -1
  101. package/dist/docs/web-types.json +1 -1
  102. package/dist/utils/index.js +38 -36
  103. package/package.json +7 -7
  104. package/dist/cdn/5BBXNT75.js +0 -66
  105. package/dist/cdn/5HBAJ57P.js +0 -2
  106. package/dist/cdn/5MK44FNO.js +0 -2
  107. package/dist/cdn/6ECRQVHY.js +0 -2
  108. package/dist/cdn/AUDVUNF3.js +0 -2
  109. package/dist/cdn/BJUX4AYP.js +0 -2
  110. package/dist/cdn/COH3QXWG.js +0 -4
  111. package/dist/cdn/CPQGLQGY.js +0 -2
  112. package/dist/cdn/CT2ZOYNX.js +0 -2
  113. package/dist/cdn/DNV3L5M6.js +0 -2
  114. package/dist/cdn/EDVH3G5A.js +0 -2
  115. package/dist/cdn/HWGAJ4WN.js +0 -2
  116. package/dist/cdn/IHRX74QJ.js +0 -2
  117. package/dist/cdn/LRH2ZPVW.js +0 -2
  118. package/dist/cdn/OTOQL3QM.js +0 -3
  119. package/dist/cdn/R74ZHFA6.js +0 -2
  120. package/dist/cdn/RGVC76RW.js +0 -2
  121. package/dist/cdn/RIN3RP7D.js +0 -3
  122. package/dist/cdn/SWVRA77H.js +0 -2
  123. package/dist/cdn/TLQ75QXG.js +0 -2
  124. package/dist/cdn/TPF5Z277.js +0 -3
  125. package/dist/cdn/UIIVUHXL.js +0 -2
  126. package/dist/cdn/UWZQWGZP.js +0 -2
  127. package/dist/cdn/UXYYH6XF.js +0 -2
  128. package/dist/cdn/XUYARLRP.js +0 -2
  129. package/dist/cdn/XV3DHHYJ.js +0 -2
  130. package/dist/cdn/Y2BCEVV6.js +0 -2
  131. package/dist/cdn/YJ4MZOVC.js +0 -2
  132. package/dist/cdn/YXIPCGGP.js +0 -2
  133. package/dist/cdn/YYFKFPSN.js +0 -2
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"ķ_Failed calling model_____________________ū","callingTool":"ķ_Calling {toolName} with parameters: {toolArgs}________________________ū","failedExecutingTool":"ķ_Failed executing {toolName}____________________________ū","determiningNextSteps":"ķ_Determining next steps_______________________ū","runningAgent":"ķ_Running {agentName}____________________ū"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"IJ_Failed calling model_____________________ä","callingTool":"IJ_Calling {toolName} with parameters: {toolArgs}________________________ä","failedExecutingTool":"IJ_Failed executing {toolName}____________________________ä","determiningNextSteps":"IJ_Determining next steps_______________________ä","runningAgent":"IJ_Running {agentName}____________________ä"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"å_Failed calling model_____________________ø","callingTool":"å_Calling {toolName} with parameters: {toolArgs}________________________ø","failedExecutingTool":"å_Failed executing {toolName}____________________________ø","determiningNextSteps":"å_Determining next steps_______________________ø","runningAgent":"å_Running {agentName}____________________ø"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"ł_Failed calling model_____________________ą","callingTool":"ł_Calling {toolName} with parameters: {toolArgs}________________________ą","failedExecutingTool":"ł_Failed executing {toolName}____________________________ą","determiningNextSteps":"ł_Determining next steps_______________________ą","runningAgent":"ł_Running {agentName}____________________ą"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"ã_Failed calling model_____________________Ç","callingTool":"ã_Calling {toolName} with parameters: {toolArgs}________________________Ç","failedExecutingTool":"ã_Failed executing {toolName}____________________________Ç","determiningNextSteps":"ã_Determining next steps_______________________Ç","runningAgent":"ã_Running {agentName}____________________Ç"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"ã_Failed calling model_____________________Ç","callingTool":"ã_Calling {toolName} with parameters: {toolArgs}________________________Ç","failedExecutingTool":"ã_Failed executing {toolName}____________________________Ç","determiningNextSteps":"ã_Determining next steps_______________________Ç","runningAgent":"ã_Running {agentName}____________________Ç"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"Ă_Failed calling model_____________________ș","callingTool":"Ă_Calling {toolName} with parameters: {toolArgs}________________________ș","failedExecutingTool":"Ă_Failed executing {toolName}____________________________ș","determiningNextSteps":"Ă_Determining next steps_______________________ș","runningAgent":"Ă_Running {agentName}____________________ș"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"Ж_Failed calling model_____________________Я","callingTool":"Ж_Calling {toolName} with parameters: {toolArgs}________________________Я","failedExecutingTool":"Ж_Failed executing {toolName}____________________________Я","determiningNextSteps":"Ж_Determining next steps_______________________Я","runningAgent":"Ж_Running {agentName}____________________Я"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"ĺ_Failed calling model_____________________ľ","callingTool":"ĺ_Calling {toolName} with parameters: {toolArgs}________________________ľ","failedExecutingTool":"ĺ_Failed executing {toolName}____________________________ľ","determiningNextSteps":"ĺ_Determining next steps_______________________ľ","runningAgent":"ĺ_Running {agentName}____________________ľ"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"Š_Failed calling model_____________________č","callingTool":"Š_Calling {toolName} with parameters: {toolArgs}________________________č","failedExecutingTool":"Š_Failed executing {toolName}____________________________č","determiningNextSteps":"Š_Determining next steps_______________________č","runningAgent":"Š_Running {agentName}____________________č"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"Č_Failed calling model_____________________ž","callingTool":"Č_Calling {toolName} with parameters: {toolArgs}________________________ž","failedExecutingTool":"Č_Failed executing {toolName}____________________________ž","determiningNextSteps":"Č_Determining next steps_______________________ž","runningAgent":"Č_Running {agentName}____________________ž"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"Å_Failed calling model_____________________ö","callingTool":"Å_Calling {toolName} with parameters: {toolArgs}________________________ö","failedExecutingTool":"Å_Failed executing {toolName}____________________________ö","determiningNextSteps":"Å_Determining next steps_______________________ö","runningAgent":"Å_Running {agentName}____________________ö"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"ก้_Failed calling model_____________________ษฺ","callingTool":"ก้_Calling {toolName} with parameters: {toolArgs}________________________ษฺ","failedExecutingTool":"ก้_Failed executing {toolName}____________________________ษฺ","determiningNextSteps":"ก้_Determining next steps_______________________ษฺ","runningAgent":"ก้_Running {agentName}____________________ษฺ"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"ı_Failed calling model_____________________İ","callingTool":"ı_Calling {toolName} with parameters: {toolArgs}________________________İ","failedExecutingTool":"ı_Failed executing {toolName}____________________________İ","determiningNextSteps":"ı_Determining next steps_______________________İ","runningAgent":"ı_Running {agentName}____________________İ"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"ґ_Failed calling model_____________________Ї","callingTool":"ґ_Calling {toolName} with parameters: {toolArgs}________________________Ї","failedExecutingTool":"ґ_Failed executing {toolName}____________________________Ї","determiningNextSteps":"ґ_Determining next steps_______________________Ї","runningAgent":"ґ_Running {agentName}____________________Ї"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"Đ_Failed calling model_____________________ớ","callingTool":"Đ_Calling {toolName} with parameters: {toolArgs}________________________ớ","failedExecutingTool":"Đ_Failed executing {toolName}____________________________ớ","determiningNextSteps":"Đ_Determining next steps_______________________ớ","runningAgent":"Đ_Running {agentName}____________________ớ"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"试_Failed calling model_____________________验","callingTool":"试_Calling {toolName} with parameters: {toolArgs}________________________验","failedExecutingTool":"试_Failed executing {toolName}____________________________验","determiningNextSteps":"试_Determining next steps_______________________验","runningAgent":"试_Running {agentName}____________________验"}
@@ -0,0 +1 @@
1
+ {"failedCallingModel":"試_Failed calling model_____________________驗","callingTool":"試_Calling {toolName} with parameters: {toolArgs}________________________驗","failedExecutingTool":"試_Failed executing {toolName}____________________________驗","determiningNextSteps":"試_Determining next steps_______________________驗","runningAgent":"試_Running {agentName}____________________驗"}
@@ -0,0 +1 @@
1
+ {"runCancelled":"Operation cancelled.","routingToAgent":"Asking LLM to route to an agent","noAgentsRegisteredTrace":"No agents registered; skipping intent detection","noAgentsRegisteredMessage":"No agents registered; skipping intent detection.","noMatchingAgentMessage":"I could not find an agent that can handle that request. I have access to the following agents: {agentNames}.\n\nPlease ask a question that can be answered by one of these agents.","noMatchingAgentTrace":"LLM did not identify a clear intent.","agentPicked":"Agent picked: {intent}\nTask Assigned: {assignedTask}\nRequires Follow-Up: {requiresFollowUp}","intentDetectionErrorTrace":"Error during intent detection","intentDetectionError":"Error during intent detection: {error}","availableAgents":"Available agents: {agentIds}","analyzingUserInput":"Analyzing user input","exiting":"Exiting...","runCancelledAgentExecution":"Run cancelled; skipping agent execution","noAgentFoundForIntent":"No agent found for intent: {intent}","executingRegisteredAgent":"Executing registered agent: {agentName}","finishedExecutingRegisteredAgent":"Finished executing registered agent: {agentName}","registeredAgentFailed":"Registered agent failed: {agentName}. {error}","agentExecutionFailed":"Agent execution failed: {error}","noSummaryProvided":"No summary provided.","directAgentAssignmentRequiresDirectRouting":"Direct agent assignment requires direct routing.","directRouteToAgent":"Doing a direct route to agent: {agentId}"}
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{p as s,y as e}from"./COH3QXWG.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";var a=s(e,{"arcgis-assistant":[()=>import("./RIN3RP7D.js"),"_messages:,allowedAgentIds,alwaysUseAgentId,assistantAvatarEnabled,awaitingResponse:,awaitingResponseStep:,commandProvider:,copyEnabled,description,entityProviders:,entryMessage,feedbackEnabled,heading,interrupt:,keepSuggestedPrompts,logEnabled,messages:,orchestrator:,readAloudEnabled,referenceElement,runtimeEventsEnabled,streamingDisabled,suggestedPrompts,userAvatarEnabled,voiceInputEnabled;clearChatHistory,submitMessage;cancelInterrupt,register,submitInterrupt,unregister"],"arcgis-assistant-agent":[()=>import("./AUDVUNF3.js"),"agent:,context:,itemId,workflow:;getContext"],"arcgis-assistant-data-exploration-agent":[()=>import("./CPQGLQGY.js"),"referenceElement;;getContext"],"arcgis-assistant-help-agent":[()=>import("./UWZQWGZP.js"),"referenceElement;;getContext"],"arcgis-assistant-knowledge-agent":[()=>import("./BJUX4AYP.js"),"context:,referenceElement,serviceUrl;getContext"],"arcgis-assistant-layer-styling-agent":[()=>import("./EDVH3G5A.js"),"referenceElement;;getContext"],"arcgis-assistant-navigation-agent":[()=>import("./TLQ75QXG.js"),"referenceElement;;getContext"],"arcgis-assistant-chat":[()=>import("./6ECRQVHY.js"),"interrupt:,loading,messages:"],"arcgis-assistant-chat-entry":[()=>import("./YYFKFPSN.js"),"_messages:,awaitingResponse,commandProvider:,disabled,entityProviders:,entryPlaceholder,inputValue,keyboardShortcutsDisabled,messages:,status,voiceInputEnabled;submitMessage"],"arcgis-assistant-interrupt":[()=>import("./UIIVUHXL.js"),"_messages:,message,options,type"],"arcgis-assistant-interrupt-preview":[()=>import("./DNV3L5M6.js"),"interrupts:"],"arcgis-assistant-message":[()=>import("./LRH2ZPVW.js"),"_messages:,assistantAvatarEnabled,copyEnabled,feedbackEnabled,footerDisabled,logEnabled,message:,readAloudEnabled"],"arcgis-assistant-message-block":[()=>import("./5HBAJ57P.js"),"block:"],"arcgis-assistant-message-feedback":[()=>import("./YJ4MZOVC.js"),"_messages:,feedbackEnabled,message:"],"arcgis-assistant-message-footer":[()=>import("./YXIPCGGP.js"),"_messages:,copyEnabled,feedbackEnabled,logEnabled,message:,readAloudEnabled"],"arcgis-assistant-message-loading":[()=>import("./Y2BCEVV6.js"),"_messages:,assistantAvatarEnabled,interrupts:,loading,loadingMessage"],"arcgis-assistant-message-log":[()=>import("./OTOQL3QM.js"),"log,logEnabled,showLog"],"arcgis-assistant-message-read-aloud":[()=>import("./IHRX74QJ.js"),"_messages:,message:,readAloudEnabled"],"arcgis-assistant-message-text":[()=>import("./RGVC76RW.js"),"content,parts"],"arcgis-assistant-speech-input":[()=>import("./5MK44FNO.js"),"awaitingResponse,inputValue,language,mode;;clearDraftSession"],"arcgis-assistant-suggested-prompts":[()=>import("./CT2ZOYNX.js"),"_messages:,label,prompts:"],"arcgis-assistant-user-message":[()=>import("./XV3DHHYJ.js"),"content,message:,user,userAvatarEnabled"]});a({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-assistant,arcgis-assistant-agent,arcgis-assistant-data-exploration-agent,arcgis-assistant-help-agent,arcgis-assistant-knowledge-agent,arcgis-assistant-layer-styling-agent,arcgis-assistant-navigation-agent,arcgis-assistant-chat,arcgis-assistant-chat-entry,arcgis-assistant-interrupt,arcgis-assistant-message,arcgis-assistant-message-block,arcgis-assistant-message-feedback,arcgis-assistant-message-footer,arcgis-assistant-message-loading,arcgis-assistant-message-log,arcgis-assistant-message-read-aloud,arcgis-assistant-message-text,arcgis-assistant-speech-input,arcgis-assistant-suggested-prompts,arcgis-assistant-user-message){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r,p,j,i=(a.importMap??={}).imports??={})=>{"agent-utils/index,agent-utils/middlewares/middleware,agent-utils/middlewares/humanInTheLoop,agent-utils/middlewares/trace".split(",").map(e=>i[p+e+j]=i[p+e]=import.meta.resolve("./"+e+j));a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,e,"@arcgis/ai-components/",".js")
2
+ import{q as s,z as e}from"./2DYOTV7W.js";import"./UZLQALHY.js";var a=s(e,{"arcgis-assistant":[()=>import("./5GALSAQF.js"),"_messages:,allowedAgentIds,alwaysUseAgentId,assistantAvatarEnabled,awaitingResponse:,awaitingResponseStep:,commandProvider:,copyEnabled,description,entityProviders:,entryMessage,feedbackEnabled,heading,interrupt:,keepSuggestedPrompts,logEnabled,messages:,orchestrator:,readAloudEnabled,referenceElement,runtimeEventsEnabled,streamingDisabled,suggestedPrompts,userAvatarEnabled,voiceInputEnabled;clearChatHistory,submitMessage;cancelInterrupt,register,submitInterrupt,unregister"],"arcgis-assistant-agent":[()=>import("./K36XPG2M.js"),"agent:,context:,itemId,workflow:;getContext"],"arcgis-assistant-data-exploration-agent":[()=>import("./NHZRDYLP.js"),"referenceElement;;getContext"],"arcgis-assistant-help-agent":[()=>import("./7TAIUEMW.js"),"referenceElement;;getContext"],"arcgis-assistant-knowledge-agent":[()=>import("./FOZAOJCM.js"),"context:,referenceElement,serviceUrl;getContext"],"arcgis-assistant-layer-styling-agent":[()=>import("./PGIXKPTW.js"),"referenceElement;;getContext"],"arcgis-assistant-navigation-agent":[()=>import("./YBSY32EU.js"),"referenceElement;;getContext"],"arcgis-assistant-chat":[()=>import("./PUHPFUCU.js"),"interrupt:,loading,messages:"],"arcgis-assistant-chat-entry":[()=>import("./2WT4JANT.js"),"_messages:,awaitingResponse,commandProvider:,disabled,entityProviders:,entryPlaceholder,inputValue,keyboardShortcutsDisabled,messages:,status,voiceInputEnabled;submitMessage"],"arcgis-assistant-interrupt":[()=>import("./UXECAKJ7.js"),"_messages:,message,options,type"],"arcgis-assistant-interrupt-preview":[()=>import("./7D6POJJA.js"),"interrupts:"],"arcgis-assistant-message":[()=>import("./72KYGCIU.js"),"_messages:,assistantAvatarEnabled,copyEnabled,feedbackEnabled,footerDisabled,logEnabled,message:,readAloudEnabled"],"arcgis-assistant-message-block":[()=>import("./TGZBLBEJ.js"),"block:"],"arcgis-assistant-message-feedback":[()=>import("./WXOKGQ4D.js"),"_messages:,feedbackEnabled,message:"],"arcgis-assistant-message-footer":[()=>import("./JE55XX2C.js"),"_messages:,copyEnabled,feedbackEnabled,logEnabled,message:,readAloudEnabled"],"arcgis-assistant-message-loading":[()=>import("./OGYNTGNM.js"),"_messages:,assistantAvatarEnabled,interrupts:,loading,loadingMessage"],"arcgis-assistant-message-log":[()=>import("./NYFV4A6L.js"),"log,logEnabled,showLog"],"arcgis-assistant-message-read-aloud":[()=>import("./Y364LLPN.js"),"_messages:,message:,readAloudEnabled"],"arcgis-assistant-message-text":[()=>import("./4V3Q7XGS.js"),"content,parts"],"arcgis-assistant-speech-input":[()=>import("./7L6LPWRH.js"),"awaitingResponse,inputValue,language,mode;;clearDraftSession"],"arcgis-assistant-suggested-prompts":[()=>import("./GZDI2LAT.js"),"_messages:,label,prompts:"],"arcgis-assistant-user-message":[()=>import("./75OPJOCY.js"),"content,message:,user,userAvatarEnabled"]});a({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-assistant,arcgis-assistant-agent,arcgis-assistant-data-exploration-agent,arcgis-assistant-help-agent,arcgis-assistant-knowledge-agent,arcgis-assistant-layer-styling-agent,arcgis-assistant-navigation-agent,arcgis-assistant-chat,arcgis-assistant-chat-entry,arcgis-assistant-interrupt,arcgis-assistant-message,arcgis-assistant-message-block,arcgis-assistant-message-feedback,arcgis-assistant-message-footer,arcgis-assistant-message-loading,arcgis-assistant-message-log,arcgis-assistant-message-read-aloud,arcgis-assistant-message-text,arcgis-assistant-speech-input,arcgis-assistant-suggested-prompts,arcgis-assistant-user-message){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r,p,j,i=(a.importMap??={}).imports??={})=>{"agent-utils/index,agent-utils/middlewares/middleware,agent-utils/middlewares/humanInTheLoop,agent-utils/middlewares/trace".split(",").map(e=>i[p+e+j]=i[p+e]=import.meta.resolve("./"+e+j));a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,e,"@arcgis/ai-components/",".js")
@@ -7,6 +7,8 @@ import "@arcgis/toolkit/string";
7
7
  import { j as le } from "./generateLayerDescriptions.js";
8
8
  import "@langchain/core/messages";
9
9
  import "@langchain/core/callbacks/dispatch/web";
10
+ import "@arcgis/toolkit/intl";
11
+ import "./runtime.js";
10
12
  import "@langchain/core/callbacks/base";
11
13
  import "@langchain/openai";
12
14
  import "@arcgis/core/config.js";
@@ -47,7 +49,7 @@ import re from "@arcgis/core/rest/knowledgeGraph/GraphQueryStreaming.js";
47
49
  import { fetchKnowledgeGraph as Y, executeQueryStreaming as je, executeSearchStreaming as Fe } from "@arcgis/core/rest/knowledgeGraphService.js";
48
50
  import _e from "@arcgis/core/rest/knowledgeGraph/GraphSearchStreaming.js";
49
51
  import { getBindParametersFromCypherQuery as Qe } from "@arcgis/core/applications/KnowledgeStudio/generalSharedKgUtils.js";
50
- const k = (e, t) => t ?? e, va = y.Root({
52
+ const k = (e, t) => t ?? e, xa = y.Root({
51
53
  ...pe(),
52
54
  // internal to the navigation agent
53
55
  intent: y({
@@ -97,7 +99,7 @@ ${Object.keys(Z).join(`
97
99
  const Ie = (e, t = 300) => {
98
100
  const r = e.replace(/\s+/gu, " ").replace(/[*_`#>\-]/gu, "").trim();
99
101
  return r.length > t ? `${r.slice(0, t)}...` : r;
100
- }, Ra = y.Root({
102
+ }, Ca = y.Root({
101
103
  ...G(),
102
104
  vectorSearchLayerIds: y(),
103
105
  vectorSearchFieldResults: y(),
@@ -107,8 +109,8 @@ const Ie = (e, t = 300) => {
107
109
  reducer: ee,
108
110
  default: () => []
109
111
  })
110
- }), Oe = [ye, ge, fe, we], xa = [me, he, ue], Ke = new de(Oe, { handleToolErrors: !1 });
111
- async function Ca(e, t) {
112
+ }), Oe = [ye, ge, fe, we], $a = [me, he, ue], Ke = new de(Oe, { handleToolErrors: !1 });
113
+ async function Pa(e, t) {
112
114
  const { messages: r } = await Ke.invoke({ messages: e.dataExplorationMessages }, t), a = [], o = [];
113
115
  for (const i of r) {
114
116
  const s = i.content;
@@ -229,7 +231,7 @@ const Je = c.object({
229
231
  fields: c.array(c.string()).describe("The fields to use for the chart renderer (multiple numeric fields)"),
230
232
  colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
231
233
  includeSize: c.boolean().optional().describe("Whether to vary the chart size (chart-size)")
232
- }), $a = g(He, {
234
+ }), Ea = g(He, {
233
235
  name: "chart",
234
236
  description: `Label: Charts
235
237
  Description: Show the values of two or more categories as a proportion of the total using a pie chart.
@@ -312,7 +314,7 @@ const rr = c.object({
312
314
  fields: c.array(c.string()).describe("The field(s) to use for the color-age renderer (temporal/date data)"),
313
315
  colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
314
316
  theme: c.enum(["above-and-below", "above", "below", "centered-on", "extremes", "high-to-low"]).optional().describe("Optional theme for the color ramp")
315
- }), Pa = g(er, {
317
+ }), za = g(er, {
316
318
  name: "color-age",
317
319
  description: `Label: Age (color)
318
320
  Description: Use colors along a continuous color ramp to represent the age of features. Age reflects the length of time from a start date to an end date.
@@ -391,7 +393,7 @@ const ir = c.object({
391
393
  fields: c.array(c.string()).describe("The field(s) to use for the color renderer"),
392
394
  colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
393
395
  theme: c.enum(["above-and-below", "above", "below", "centered-on", "extremes", "high-to-low"]).optional().describe("Optional theme for the color ramp")
394
- }), Ea = g(nr, {
396
+ }), ka = g(nr, {
395
397
  name: "color",
396
398
  description: `Label: Counts and Amounts (color)
397
399
  Description: Vary color along a continuous color ramp to represent numeric or ranked data.
@@ -469,7 +471,7 @@ const dr = c.object({
469
471
  fields: c.array(c.string()).describe("The fields to use for the color-size univariate renderer"),
470
472
  colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
471
473
  theme: c.enum(["above-and-below", "above", "below", "centered-on", "extremes", "high-to-low"]).optional().describe("Optional theme for the color and size ramps")
472
- }), za = g(pr, {
474
+ }), Aa = g(pr, {
473
475
  name: "color-size-univariate",
474
476
  description: `Label: Color and Size (univariate)
475
477
  Description: Vary symbol size and color based on the values of two numeric attributes.
@@ -543,7 +545,7 @@ const gr = c.object({
543
545
  layerId: c.string().describe("The id of the layer to apply the dot density renderer to"),
544
546
  fields: c.array(c.string()).describe("The field(s) to use for the dot density renderer (population or count data)"),
545
547
  colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use")
546
- }), ka = g(yr, {
548
+ }), Na = g(yr, {
547
549
  name: "dot-density",
548
550
  description: `Dot Density
549
551
  Use dot density to visualize the distribution of one attribute or compare the density of multiple attributes. This is only valid for polygon layers.
@@ -618,7 +620,7 @@ const Sr = c.object({
618
620
  layerId: c.string().describe("The id of the layer to apply the heatmap renderer to"),
619
621
  fields: c.array(c.string()).describe("The field(s) to use for the heatmap renderer (typically point density)"),
620
622
  colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use")
621
- }), Aa = g(Tr, {
623
+ }), qa = g(Tr, {
622
624
  name: "heatmap",
623
625
  description: `Label: Heat Map
624
626
  Description: Show areas of high density with colors that appear to glow hotter. This is only valid for point layers.
@@ -693,7 +695,7 @@ const $r = c.object({
693
695
  fields: c.array(c.string()).describe("The fields to use for the predominance renderer (competing categories)"),
694
696
  colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
695
697
  includeSize: c.boolean().optional().describe("Whether to include size visualization (predominance-size)")
696
- }), Na = g(Cr, {
698
+ }), Ma = g(Cr, {
697
699
  name: "predominance",
698
700
  description: `Label: Predominant category
699
701
  Description: Compare attributes that share a common subject and unit of measurement to see which has the highest value.
@@ -774,7 +776,7 @@ const Ar = c.object({
774
776
  layerId: c.string().describe("The id of the layer to apply the relationship renderer to"),
775
777
  fields: c.array(c.string()).describe("The two fields to use for the relationship renderer (bivariate visualization)"),
776
778
  colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use")
777
- }), qa = g(kr, {
779
+ }), Da = g(kr, {
778
780
  name: "relationship",
779
781
  description: `Label: Relationship
780
782
  Description: Overlays two color ramps to represent the relationship between two numeric attributes.
@@ -845,7 +847,7 @@ const Lr = c.object({
845
847
  fields: c.array(c.string()).describe("The field(s) to use for the size-age renderer (temporal data with size)"),
846
848
  colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
847
849
  theme: c.enum(["above-and-below", "above", "below", "centered-on", "extremes", "high-to-low"]).optional().describe("Optional theme for the size ramp")
848
- }), Ma = g(Dr, {
850
+ }), La = g(Dr, {
849
851
  name: "size-age",
850
852
  description: `Label: Age (size)
851
853
  Description: Vary symbol sizes along a continuous ramp to represent the age of features. Age reflects the length of time from a start date to an end date.
@@ -918,7 +920,7 @@ const Qr = c.object({
918
920
  fields: c.array(c.string()).describe("The field(s) to use for the size renderer (numeric data)"),
919
921
  colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
920
922
  theme: c.enum(["above-and-below", "above", "below", "centered-on", "extremes", "high-to-low"]).optional().describe("Optional theme for the size ramp")
921
- }), Da = g(_r, {
923
+ }), Ga = g(_r, {
922
924
  name: "size",
923
925
  description: `Label: Counts and Amounts (size)
924
926
  Description: Vary symbol sizes along a continuous ramp to represent numeric or ranked data.
@@ -1000,7 +1002,7 @@ const Br = c.object({
1000
1002
  fields: c.array(c.string()).describe("The field(s) to use for the type renderer (categorical data)"),
1001
1003
  colorSchemes: c.array(c.string()).optional().describe("Optional color scheme tags to use"),
1002
1004
  theme: c.enum(["above-and-below", "above", "below", "centered-on", "extremes", "high-to-low"]).optional().describe("Optional theme for the color scheme")
1003
- }), La = g(Vr, {
1005
+ }), ja = g(Vr, {
1004
1006
  name: "type",
1005
1007
  description: `Label: Types (unique symbols)
1006
1008
  Description: Represent features as categories with different symbol colors or shapes. Examples include type of tree, road class, or province name.
@@ -1008,13 +1010,13 @@ Keywords: categorical, category, type, unique, discrete, point of interest, regi
1008
1010
  Example: Color each feature based on the region it belongs to
1009
1011
  Fields: This style requires a single field which may be a string, number, or date type. It is usually a string.`,
1010
1012
  schema: Br
1011
- }), Ga = y.Root({
1013
+ }), Fa = y.Root({
1012
1014
  ...G(),
1013
1015
  vectorSearchLayerIds: y(),
1014
1016
  vectorSearchFieldResults: y(),
1015
1017
  layerFieldInfo: y(),
1016
1018
  selectedLayerId: y()
1017
- }), ja = y.Root({
1019
+ }), _a = y.Root({
1018
1020
  ...G(),
1019
1021
  // internal to the help agent
1020
1022
  helpInternalState: y({
@@ -1023,7 +1025,7 @@ Fields: This style requires a single field which may be a string, number, or dat
1023
1025
  toolCallMessage: void 0
1024
1026
  })
1025
1027
  })
1026
- }), Fa = y.Root({
1028
+ }), Qa = y.Root({
1027
1029
  ...G(),
1028
1030
  intent: y({
1029
1031
  reducer: (e, t) => t
@@ -1059,7 +1061,7 @@ function N(e) {
1059
1061
  view: a
1060
1062
  };
1061
1063
  }
1062
- function _a(e) {
1064
+ function Ia(e) {
1063
1065
  const r = e?.configurable?.context;
1064
1066
  if (te(e) === "knowledgeGraph")
1065
1067
  return "knowledgeGraph";
@@ -1710,7 +1712,7 @@ Number of records added: ${h.length}`,
1710
1712
  error: d
1711
1713
  };
1712
1714
  }
1713
- }, Qa = g(dt, {
1715
+ }, Oa = g(dt, {
1714
1716
  name: M,
1715
1717
  description: `Adds records (entities or relationships) to the current link chart visualization from an inquiry into the knowledge graph data. The inquiry will retrieve data from the graph database that will serve as the basis for the records to be added to the link chart. The user should have explicitly requested to add records to the current link chart from their prompt. "add to new link chart" is not a valid prompt for this tool.
1716
1718
 
@@ -1761,7 +1763,7 @@ const _ = "applyLayout", ht = c.object({
1761
1763
  errorMessage: "The applyLayout tool can only be used with a LinkChartView.",
1762
1764
  error: new Error()
1763
1765
  };
1764
- }, Ia = g(mt, {
1766
+ }, Ka = g(mt, {
1765
1767
  name: _,
1766
1768
  description: "Apply a diagram layout to the link chart",
1767
1769
  schema: ht
@@ -1790,7 +1792,7 @@ const Q = "changeNonspatialVisibility", gt = c.object({
1790
1792
  errorMessage: "The changeNonspatialVisibility tool can only be used with a LinkChartView.",
1791
1793
  error: new Error()
1792
1794
  };
1793
- }, Oa = g(ft, {
1795
+ }, Va = g(ft, {
1794
1796
  name: Q,
1795
1797
  description: "Change whether or not nonspatial data is visible in the link chart. The value must be either 'hidden' or 'visible'.",
1796
1798
  schema: gt
@@ -1890,7 +1892,7 @@ Explanation: ${l}`,
1890
1892
  errorMessage: "The createLinkChart tool can only be used with a LinkChartView.",
1891
1893
  error: new Error()
1892
1894
  };
1893
- }, Ka = g(Tt, {
1895
+ }, Ba = g(Tt, {
1894
1896
  name: D,
1895
1897
  description: "Creates a new link chart visualization from an inquiry into the knowledge graph data. The inquiry will retrieve data from the graph database that will serve as the basis for the new link chart. The user should have explicitly requested the creation of a new link chart from their prompt using language like 'create new link chart' or 'add to new link chart'.",
1896
1898
  schema: bt
@@ -1973,7 +1975,7 @@ ${w.length > m ? `Showing top ${m} results:
1973
1975
  queryResults: u
1974
1976
  }
1975
1977
  };
1976
- }, Va = g(vt, {
1978
+ }, Wa = g(vt, {
1977
1979
  name: I,
1978
1980
  description: "Allows users to explore the data in their knowledge graph via cypher query. Generates and executes a cypher query based on the user's inquiry into the knowledge graph, and displays the results in the chat pane without modifying the user's link chart if any. Use this tool when the user is asking an exploratory question about their data as a whole that can be answered via cypher query, for example 'What are the top 5 suppliers by total parts cost?' or 'How many employees do we have in each department?'.",
1979
1981
  schema: St
@@ -2009,7 +2011,7 @@ Explanation: ${s}`,
2009
2011
  error: i
2010
2012
  };
2011
2013
  }
2012
- }, Ba = g(xt, {
2014
+ }, Ua = g(xt, {
2013
2015
  name: O,
2014
2016
  description: "Generates an Open Cypher query based on the user's prompt which represents an inquiry into the data of the knowledge service and its graph database, attempting to filter based on certain conditions and traverse specified relationships. The generated query should be syntactically correct and optimized for performance.",
2015
2017
  schema: Rt
@@ -2108,7 +2110,7 @@ const K = "searchGraphData", Pt = c.object({
2108
2110
  searchResults: o.results
2109
2111
  }
2110
2112
  };
2111
- }, Wa = g(Et, {
2113
+ }, Ha = g(Et, {
2112
2114
  name: K,
2113
2115
  description: `
2114
2116
  Search the knowledge graph using one or more search texts, using lucene search syntax, against indexed string properties defined on their entities and relationships. Use this tool when the user asks a question about their knowledge graph data as a whole, that could be answered via lucene text search of properties stored on graph elements, e.g requiring fuzzy matching. Otherwise if the inquiry is looking for connected records (e.g. paths), data aggregations, etc explore the data via the queryGraphData tool.
@@ -2123,35 +2125,35 @@ const K = "searchGraphData", Pt = c.object({
2123
2125
  schema: Pt
2124
2126
  });
2125
2127
  export {
2126
- Ra as D,
2128
+ Ca as D,
2127
2129
  W as G,
2128
- ja as H,
2129
- Ga as L,
2130
- va as N,
2131
- Ia as a,
2132
- Ka as b,
2133
- Oa as c,
2134
- Qa as d,
2130
+ _a as H,
2131
+ Fa as L,
2132
+ xa as N,
2133
+ Ka as a,
2134
+ Ba as b,
2135
+ Va as c,
2136
+ Oa as d,
2135
2137
  L as e,
2136
- _a as f,
2137
- Ba as g,
2138
+ Ia as f,
2139
+ Ua as g,
2138
2140
  q as h,
2139
- Fa as i,
2140
- $a as j,
2141
- Pa as k,
2142
- Ea as l,
2143
- za as m,
2144
- ka as n,
2145
- Aa as o,
2146
- Na as p,
2147
- Va as q,
2148
- qa as r,
2149
- Wa as s,
2141
+ Qa as i,
2142
+ Ea as j,
2143
+ za as k,
2144
+ ka as l,
2145
+ Aa as m,
2146
+ Na as n,
2147
+ qa as o,
2148
+ Ma as p,
2149
+ Wa as q,
2150
+ Da as r,
2151
+ Ha as s,
2150
2152
  Ie as t,
2151
- Ma as u,
2152
- Da as v,
2153
- La as w,
2154
- xa as x,
2153
+ La as u,
2154
+ Ga as v,
2155
+ ja as w,
2156
+ $a as x,
2155
2157
  Oe as y,
2156
- Ca as z
2158
+ Pa as z
2157
2159
  };
@@ -1,92 +1,108 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { ChatOpenAI as b, OpenAIEmbeddings as U } from "@langchain/openai";
2
+ import { fetchT9nStringsBundle as M } from "@arcgis/toolkit/intl";
3
+ import { g as I } from "./runtime.js";
4
+ import { ChatOpenAI as U, OpenAIEmbeddings as R } from "@langchain/openai";
3
5
  import h from "@arcgis/core/portal/Portal.js";
4
6
  import y from "@arcgis/core/request.js";
5
- import I from "@arcgis/core/identity/IdentityManager.js";
6
- import { generateGuid as R } from "@arcgis/toolkit/string";
7
- import q from "@arcgis/core/config.js";
7
+ import q from "@arcgis/core/identity/IdentityManager.js";
8
+ import { generateGuid as A } from "@arcgis/toolkit/string";
9
+ import $ from "@arcgis/core/config.js";
8
10
  const w = {
9
11
  advanced: "gpt-5.6-sol",
10
12
  default: "gpt-5.6-terra",
11
13
  fast: "gpt-5.6-luna"
12
14
  }, S = {
13
15
  default: "text-embedding-ada-002"
14
- }, g = /* @__PURE__ */ new Map();
16
+ }, f = /* @__PURE__ */ new Map();
15
17
  let i = null;
16
- const C = () => {
18
+ const z = () => {
17
19
  const t = h.getDefault().helperServices;
18
20
  if (!t?.aiModels?.url)
19
21
  throw new Error("AI Models Service URL is not defined in the portal's helper services.");
20
22
  return t.aiModels.url;
21
23
  }, v = async (e) => {
22
- const t = C();
23
- g.size === 0 && (i || (i = (async () => {
24
+ const t = z();
25
+ f.size === 0 && (i || (i = (async () => {
24
26
  try {
25
- (await y(`${t}/models`)).data.models.forEach((a) => g.set(a.name, a));
27
+ (await y(`${t}/models`)).data.models.forEach((s) => f.set(s.name, s));
26
28
  } catch (n) {
27
29
  throw i = null, n;
28
30
  }
29
31
  })()), await i);
30
- const r = g.get(e);
32
+ const r = f.get(e);
31
33
  if (!r)
32
34
  throw new Error(`Model '${e}' is not available in the discovery service.`);
33
35
  return r.endpoint;
34
- }, A = async (e = "default") => await v(w[e]), k = async (e = "default") => await v(S[e]), z = (e) => typeof e == "string" && e.length > 0 ? e : void 0, D = () => R(), F = (e) => typeof e != "string" || e.trim().length === 0 ? "MapsSDK" : `MapsSDK - ${e.trim()}`, K = (e) => {
36
+ }, C = async (e = "default") => await v(w[e]), F = async (e = "default") => await v(S[e]), T = /^\.\/assets\/[^/]+\/t9n$/u, _ = (e) => {
37
+ const t = e?.configurable;
38
+ if (t && typeof t == "object" && "locale" in t) {
39
+ const r = t.locale;
40
+ if (typeof r == "string")
41
+ return r;
42
+ }
43
+ return "en";
44
+ };
45
+ async function J(e) {
46
+ if (!T.test(e.path))
47
+ throw new Error(`Invalid localization asset path: ${e.path}`);
48
+ return console.log(`Fetching localization strings from path: ${e.path} with language: ${e.locale}`), await M(e.locale, I(e.path), "messages.");
49
+ }
50
+ const L = (e) => typeof e == "string" && e.length > 0 ? e : void 0, k = () => A(), D = (e) => typeof e != "string" || e.trim().length === 0 ? "MapsSDK" : `MapsSDK - ${e.trim()}`, K = (e) => {
35
51
  const t = e?.configurable;
36
52
  return {
37
- conversationId: z(t?.thread_id),
53
+ conversationId: L(t?.thread_id),
38
54
  abortSignal: e?.signal,
39
- requestId: D(),
40
- requestSource: F(q.applicationName)
55
+ requestId: k(),
56
+ requestSource: D($.applicationName)
41
57
  };
42
- }, L = (e) => {
58
+ }, P = (e) => {
43
59
  if (e == null || typeof e == "string" || e instanceof FormData || e instanceof HTMLFormElement)
44
60
  return e;
45
61
  if (e instanceof URLSearchParams)
46
62
  return e.toString();
47
63
  throw new TypeError(`Unsupported request body type: ${Object.prototype.toString.call(e)}`);
48
- }, E = async ({
64
+ }, b = async ({
49
65
  config: e,
50
66
  withCredentials: t
51
67
  }) => {
52
- const r = h.getDefault(), n = await I.getCredential(`${r.url}/sharing`);
53
- return async (o, a) => {
54
- const { conversationId: c, abortSignal: l, requestId: p, requestSource: d } = K(e), s = new Headers(a?.headers);
55
- for (const m of [...s.keys()]) {
56
- const f = m.toLowerCase();
57
- (f === "authorization" || f === "api-key" || f.startsWith("x-stainless-")) && s.delete(m);
68
+ const r = h.getDefault(), n = await q.getCredential(`${r.url}/sharing`);
69
+ return async (a, s) => {
70
+ const { conversationId: c, abortSignal: l, requestId: p, requestSource: d } = K(e), o = new Headers(s?.headers);
71
+ for (const m of [...o.keys()]) {
72
+ const g = m.toLowerCase();
73
+ (g === "authorization" || g === "api-key" || g.startsWith("x-stainless-")) && o.delete(m);
58
74
  }
59
75
  const u = n?.token;
60
- u && u.length > 0 && s.set("X-Esri-Authorization", `Bearer ${u}`), r.isPortal || (d && d.length > 0 && s.set("X-Esri-Request-Source", d), c && c.length > 0 && s.set("X-Esri-Conversation-Id", c), p.length > 0 && s.set("X-Esri-Request-Id", p));
61
- const M = l && a?.signal ? AbortSignal.any([l, a.signal]) : a?.signal ?? l;
62
- return (await y(o instanceof Request ? o.url : o.toString(), {
63
- body: L(a?.body),
64
- headers: Object.fromEntries(s),
76
+ u && u.length > 0 && o.set("X-Esri-Authorization", `Bearer ${u}`), r.isPortal || (d && d.length > 0 && o.set("X-Esri-Request-Source", d), c && c.length > 0 && o.set("X-Esri-Conversation-Id", c), p.length > 0 && o.set("X-Esri-Request-Id", p));
77
+ const E = l && s?.signal ? AbortSignal.any([l, s.signal]) : s?.signal ?? l;
78
+ return (await y(a instanceof Request ? a.url : a.toString(), {
79
+ body: P(s?.body),
80
+ headers: Object.fromEntries(o),
65
81
  responseType: "native",
66
82
  withCredentials: t,
67
- signal: M
83
+ signal: E
68
84
  })).data;
69
85
  };
70
- }, j = async (e = {}) => {
71
- const { modelTier: t = "default", config: r } = e, n = w[t], o = await A(t);
72
- return new b({
86
+ }, Q = async (e = {}) => {
87
+ const { modelTier: t = "default", config: r } = e, n = w[t], a = await C(t);
88
+ return new U({
73
89
  modelName: n,
74
90
  apiKey: "dummy-key",
75
91
  useResponsesApi: !0,
76
92
  zdrEnabled: !0,
77
93
  configuration: {
78
- baseURL: o,
79
- fetch: await E({ config: r, withCredentials: !0 })
94
+ baseURL: a,
95
+ fetch: await b({ config: r, withCredentials: !0 })
80
96
  }
81
97
  });
82
- }, H = async (e = {}) => {
83
- const { tier: t = "default", config: r } = e, n = S[t], o = await k(t);
84
- return new U({
98
+ }, V = async (e = {}) => {
99
+ const { tier: t = "default", config: r } = e, n = S[t], a = await F(t);
100
+ return new R({
85
101
  modelName: n,
86
102
  apiKey: "dummy-key",
87
103
  configuration: {
88
- baseURL: o,
89
- fetch: await E({ config: r })
104
+ baseURL: a,
105
+ fetch: await b({ config: r })
90
106
  },
91
107
  batchSize: 2048,
92
108
  maxConcurrency: 10
@@ -94,7 +110,9 @@ const C = () => {
94
110
  };
95
111
  export {
96
112
  S as E,
97
- H as a,
98
- j as c,
99
- k as g
113
+ _ as a,
114
+ F as b,
115
+ Q as c,
116
+ V as d,
117
+ J as g
100
118
  };
@@ -8,6 +8,8 @@ import "@arcgis/toolkit/string";
8
8
  import { i as G, a as N } from "./generateLayerDescriptions.js";
9
9
  import { AIMessage as y } from "@langchain/core/messages";
10
10
  import "@langchain/core/callbacks/dispatch/web";
11
+ import "@arcgis/toolkit/intl";
12
+ import "./runtime.js";
11
13
  import "@langchain/core/callbacks/base";
12
14
  import "@langchain/openai";
13
15
  import "@arcgis/core/config.js";
@@ -219,7 +221,7 @@ _example: "Discover and add all the relationships originating at 'Entity E' to t
219
221
  _example: "Show me all entities with a name similar to 'Smith' and add them to the link chart"_
220
222
  _example: "Find reports in my graph that have a title similar to 'Quarterly Earnings'"_
221
223
  _example: "Find John Smith and all people he has made phone calls to in the last year"_
222
- _example: "What is the average age of all people who work for Esri?"_`, ce = {
224
+ _example: "What is the average age of all people who work for Esri?"_`, he = {
223
225
  id: "arcgisKnowledge",
224
226
  name: "ArcgisKnowledge Agent",
225
227
  description: J,
@@ -227,5 +229,5 @@ _example: "What is the average age of all people who work for Esri?"_`, ce = {
227
229
  workspace: m
228
230
  };
229
231
  export {
230
- ce as A
232
+ he as A
231
233
  };
@@ -4,7 +4,7 @@ const t = [
4
4
  async () => (await import("./SKILL.js")).default,
5
5
  async () => (await import("./SKILL2.js")).default
6
6
  ], s = e({
7
- id: "dataExploration",
7
+ id: "data-exploration",
8
8
  name: "Data Exploration Agent",
9
9
  description: "Explores feature-layer data and applies data-driven map filters using on-demand query and filter skills.",
10
10
  skillLoaders: t,