@arcgis/ai-components 5.1.0-next.130 → 5.1.0-next.131

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 (83) hide show
  1. package/dist/agent-utils/FunctionAgent.d.ts +2 -2
  2. package/dist/agent-utils/LLMAgent.d.ts +2 -2
  3. package/dist/agent-utils/WorkflowAgent.d.ts +2 -2
  4. package/dist/agent-utils/index.d.ts +99 -0
  5. package/dist/agent-utils/index.js +148 -0
  6. package/dist/agent-utils/middlewares/trace.js +25 -33
  7. package/dist/agent-utils/tools/FunctionTool.d.ts +2 -2
  8. package/dist/agent-utils/types.d.ts +30 -1
  9. package/dist/agent-utils/workflows/ConditionalWorkflow.d.ts +2 -2
  10. package/dist/agent-utils/workflows/LoopWorkflow.d.ts +2 -2
  11. package/dist/agent-utils/workflows/ParallelWorkflow.d.ts +2 -2
  12. package/dist/agent-utils/workflows/RouterWorkflow.d.ts +2 -2
  13. package/dist/agent-utils/workflows/SequentialWorkflow.d.ts +2 -2
  14. package/dist/agent-utils/workflows/SwitchWorkflow.d.ts +2 -2
  15. package/dist/cdn/2DYXX3VX.js +2 -0
  16. package/dist/cdn/4ASZF5I2.js +181 -0
  17. package/dist/cdn/6FEB6XYK.js +2 -0
  18. package/dist/cdn/7HKOEG6B.js +161 -0
  19. package/dist/cdn/DAMZY3V4.js +2 -0
  20. package/dist/cdn/DZWRIK64.js +47 -0
  21. package/dist/cdn/EY5GGKO5.js +2 -0
  22. package/dist/cdn/FYNHAVHL.js +2 -0
  23. package/dist/cdn/GNCV7JCL.js +2 -0
  24. package/dist/cdn/H3EEFM4A.js +179 -0
  25. package/dist/cdn/I6AHJA2A.js +16 -0
  26. package/dist/cdn/IFDBNTW2.js +3 -0
  27. package/dist/cdn/KGYSBUFO.js +9 -0
  28. package/dist/cdn/KJ5IHMRP.js +2 -0
  29. package/dist/cdn/L6GVMINQ.js +2 -0
  30. package/dist/cdn/LXJWWOGK.js +66 -0
  31. package/dist/cdn/MDZ3PTNT.js +2 -0
  32. package/dist/cdn/{RBMBKUY6.js → MGPLH2PO.js} +5 -5
  33. package/dist/cdn/{Y2L6M2RG.js → NKL6PVCN.js} +11 -11
  34. package/dist/cdn/O4SVTPFW.js +2 -0
  35. package/dist/cdn/{LUWP3MUX.js → P3JUCFXI.js} +16 -0
  36. package/dist/cdn/PCZS64LS.js +2 -0
  37. package/dist/cdn/PIUDMACH.js +56 -0
  38. package/dist/cdn/QH6TSBNI.js +2 -0
  39. package/dist/cdn/{FKSLZTUY.js → QXWL4WLO.js} +5 -5
  40. package/dist/cdn/QZXQIJSW.js +2 -0
  41. package/dist/cdn/RLWXD365.js +2 -0
  42. package/dist/cdn/UPSGN34Q.js +2 -0
  43. package/dist/cdn/V746CPCO.js +6 -0
  44. package/dist/cdn/VPZHLYPA.js +2 -0
  45. package/dist/cdn/VWG4M6ZB.js +2 -0
  46. package/dist/cdn/{72HM6DTZ.js → WRKGKKWT.js} +3 -3
  47. package/dist/cdn/ZL2D2BJI.js +2 -0
  48. package/dist/cdn/agent-utils/index.js +2 -0
  49. package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +3 -0
  50. package/dist/cdn/agent-utils/middlewares/middleware.js +2 -0
  51. package/dist/cdn/agent-utils/middlewares/trace.js +2 -0
  52. package/dist/cdn/index.js +1 -1
  53. package/dist/chunks/adapter.js +1046 -1018
  54. package/dist/chunks/arcgisKnowledgeGraph.js +66 -46
  55. package/dist/chunks/dataExplorationGraph.js +8 -3
  56. package/dist/chunks/generateLayerDescriptions.js +228 -217
  57. package/dist/chunks/helpGraph.js +14 -11
  58. package/dist/chunks/index.js +11 -0
  59. package/dist/chunks/intent_prompt.js +16 -0
  60. package/dist/chunks/layerStylingGraph.js +25 -22
  61. package/dist/chunks/navigationGraph.js +7 -3
  62. package/dist/chunks/orchestrator.js +9 -8
  63. package/dist/chunks/toolCallResponse.js +5 -3
  64. package/dist/components/arcgis-assistant/customElement.js +1 -0
  65. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +1 -0
  66. package/dist/components/arcgis-assistant-help-agent/customElement.js +1 -0
  67. package/dist/components/arcgis-assistant-knowledge-agent/customElement.d.ts +7 -7
  68. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +1 -0
  69. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +1 -0
  70. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +1 -0
  71. package/dist/docs/api.json +1 -1
  72. package/dist/docs/docs.json +1 -1
  73. package/dist/docs/web-types.json +1 -1
  74. package/dist/utils/index.d.ts +3 -3
  75. package/dist/utils/index.js +48 -47
  76. package/package.json +5 -4
  77. package/dist/cdn/AZTWZFVA.js +0 -16
  78. package/dist/cdn/I3H52G4C.js +0 -2
  79. package/dist/cdn/QLU3NT5J.js +0 -2
  80. package/dist/cdn/RJ6XMESZ.js +0 -165
  81. package/dist/cdn/V7BWJN43.js +0 -422
  82. package/dist/cdn/ZP3SG5OG.js +0 -108
  83. package/dist/cdn/ZSLJX22Z.js +0 -3
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import a from"./PCZS64LS.js";import"./2DYXX3VX.js";import"./H3EEFM4A.js";import"./4ASZF5I2.js";import"./LXJWWOGK.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{property:g,subclass:p},{c:d,d:u}])=>{var f=Object.defineProperty,w=Object.getOwnPropertyDescriptor,c=(e,r,n,o)=>{for(var t=o>1?void 0:o?w(r,n):r,i=e.length-1,a;i>=0;i--)(a=e[i])&&(t=(o?a(r,n,t):a(t))||t);return o&&t&&f(r,n,t),t},s=class extends u{constructor(e){super(e)}getAgents(){return this.agents}buildNodes(e){let r=super.buildNodes(e);return r[l]=()=>({}),r}buildEdges(e){let r=this.condition;if(!r)throw new Error("ConditionalWorkflow requires a condition.");let n=d(e[0],0),o=d(e[1],1);return[{from:l,decide:async(t,i)=>await Promise.resolve(r(t,i))?n:o}]}getEntryNode(){return l}isTerminalAgent(){return!0}validateAgents(e){if(super.validateAgents(e),e.length!==2)throw new Error(`ConditionalWorkflow requires exactly 2 agents; received ${e.length}.`)}};c([g()],s.prototype,"condition",2);c([g()],s.prototype,"agents",2);s=c([p("ConditionalWorkflow")],s);var l="__conditional_decide";return s},"core/accessorSupport/decorators",a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{$ as M,A as z,Aa as ia,B as A,Ba as ja,C as B,Ca as ka,Da as la,R as C,S as D,T as E,U as F,V as G,W as H,X as I,Y as J,Z as K,_ as L,a,aa as N,b,ba as O,c,ca as P,d,da as Q,e,f,fa as R,ga as S,h as g,ha as T,i as h,ia as U,j as i,ja as V,k as j,ka as W,l as k,la as X,m as l,ma as Y,n as m,na as Z,o as n,oa as _,p as o,pa as $,q as p,qa as aa,r as q,s as r,t as s,ta as ba,u as t,ua as ca,v as u,va as da,w as v,wa as ea,x as w,xa as fa,y as x,ya as ga,z as y,za as ha}from"./H3EEFM4A.js";import"./4ASZF5I2.js";import"./LXJWWOGK.js";import"./CFDTXKJ6.js";export{L as Annotation,H as AsyncBatchedStore,J as BaseChannel,E as BaseCheckpointSaver,k as BaseLangGraphError,G as BaseStore,K as BinaryOperatorAggregate,d as COMMAND_SYMBOL,i as Command,e as CommandInstance,ca as CompiledStateGraph,b as END,v as EmptyChannelError,u as EmptyInputError,R as Graph,l as GraphBubbleUp,o as GraphInterrupt,m as GraphRecursionError,n as GraphValueError,c as INTERRUPT,I as InMemoryStore,w as InvalidUpdateError,F as MemorySaver,da as MessageGraph,ia as MessagesAnnotation,aa as MessagesValue,ja as MessagesZodMeta,ka as MessagesZodState,x as MultipleSubgraphsError,p as NodeInterrupt,g as Overwrite,q as ParentCommand,_ as REMOVE_ALL_MESSAGES,X as ReducedValue,z as RemoteException,a as START,f as Send,ba as StateGraph,A as StateGraphInputError,Z as StateSchema,y as UnreachableNodeError,Y as UntrackedValue,W as UntrackedValueChannel,$ as addMessages,D as copyCheckpoint,C as emptyCheckpoint,ga as entrypoint,O as getConfig,P as getCurrentTaskInput,U as getJsonSchemaFromSchema,ha as getPreviousState,V as getSchemaDefaultGetter,M as getStore,B as getSubgraphsSeenSet,N as getWriter,Q as interrupt,j as isCommand,s as isGraphBubbleUp,t as isGraphInterrupt,h as isInterrupted,r as isParentCommand,T as isSerializableSchema,S as isStandardSchema,$ as messagesStateReducer,ea as pushMessage,fa as task,la as writer};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as t}from"./KGYSBUFO.js";export default $arcgis.t(([])=>{var d=async(o,r)=>{let i=o.tool_calls??[];if(i.length===0){await t({text:`LLM did not request any tool calls: ${String(o?.content)}`},r);return}await Promise.all(i.map(async a=>await t({text:`LLM invoked ${a.name} tool with arguments: ${JSON.stringify(a.args,null,2)}`},r)))};return d},"identity/IdentityManager","portal/Portal","config","core/reactiveUtils","layers/FeatureLayer","request")