@arcgis/ai-components 5.0.0-next.135 → 5.0.0-next.137

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 (100) hide show
  1. package/dist/cdn/{45J72RA5.js → 2X4MXAGP.js} +3 -2
  2. package/dist/cdn/{K4DOBIBC.js → 2YU5J7GR.js} +1 -1
  3. package/dist/cdn/{GNYKVIRC.js → 3GN2ULHI.js} +3 -3
  4. package/dist/cdn/{NPQWPRM6.js → 3MC7WUUS.js} +2 -2
  5. package/dist/cdn/{AENVX2C7.js → 4QKLAOX2.js} +2 -2
  6. package/dist/cdn/{IBW6D6XX.js → 5R3XBBPI.js} +2 -2
  7. package/dist/cdn/{H6HTZ2RZ.js → 77UW5IWK.js} +2 -2
  8. package/dist/cdn/7CZJHD5E.js +4 -0
  9. package/dist/cdn/{ETNHCA5Y.js → A4WRDZTQ.js} +2 -2
  10. package/dist/cdn/{NCD5D6JY.js → AAKD5SX2.js} +2 -2
  11. package/dist/cdn/{2I6RIEM7.js → AWERJEZY.js} +2 -2
  12. package/dist/cdn/{PZRNLUV2.js → BU42TIIY.js} +2 -2
  13. package/dist/cdn/{5EXI6IBC.js → C2KQ57RK.js} +33 -33
  14. package/dist/cdn/{BSFH6ITF.js → D7BNWOJC.js} +2 -2
  15. package/dist/cdn/{7VXM3PHG.js → EIEL6M2I.js} +2 -2
  16. package/dist/cdn/{KXZ5YZL6.js → ESFRLW3E.js} +2 -2
  17. package/dist/cdn/{3YJ4XNZB.js → FXYXZK6L.js} +2 -2
  18. package/dist/cdn/{LA353F4X.js → G2D5AXYL.js} +2 -2
  19. package/dist/cdn/HRHXMBOF.js +4 -0
  20. package/dist/cdn/J4W33PXP.js +134 -0
  21. package/dist/cdn/{YQVK2H7R.js → JEJTPF54.js} +1 -1
  22. package/dist/cdn/{VY47US65.js → KL6UK22M.js} +2 -2
  23. package/dist/cdn/{JRSCOKGO.js → KTVRK3Y4.js} +2 -2
  24. package/dist/cdn/{LQKHGIXO.js → LV5GG4KG.js} +2 -2
  25. package/dist/cdn/{6JIAN4EB.js → M4G5BT2E.js} +2 -2
  26. package/dist/cdn/O5MI43R3.js +6 -0
  27. package/dist/cdn/{XOXI7KQN.js → P5L22JWW.js} +2 -2
  28. package/dist/cdn/{QFWBH3U2.js → PI3TDXYV.js} +2 -2
  29. package/dist/cdn/{FQP72TZH.js → PMGGAZSF.js} +2 -2
  30. package/dist/cdn/{D5B4XO32.js → Q5GRZVLA.js} +2 -2
  31. package/dist/cdn/{4BKDN7AJ.js → U3XLNPGW.js} +2 -2
  32. package/dist/cdn/{ZHEJLKZX.js → UFFBFDYM.js} +2 -2
  33. package/dist/cdn/{4JWSHGI3.js → VL7UTIRF.js} +1 -1
  34. package/dist/cdn/{XULCWMYE.js → WD4CZF2P.js} +2 -2
  35. package/dist/cdn/{IHQXGVXR.js → XNR7IV6X.js} +2 -2
  36. package/dist/cdn/{4KXPB47L.js → XV373V66.js} +2 -2
  37. package/dist/cdn/{UROLRFUN.js → YFSPJOU4.js} +2 -2
  38. package/dist/cdn/{ZZIAB76W.js → ZJXE6HWP.js} +2 -2
  39. package/dist/cdn/{RTUKNJRX.js → ZYYIAOK3.js} +2 -2
  40. package/dist/cdn/index.js +2 -2
  41. package/dist/chunks/runtime.js +1 -1
  42. package/dist/chunks/useT9n.js +1 -1
  43. package/dist/chunks/utils.js +1 -1
  44. package/dist/chunks/utils2.js +1 -1
  45. package/dist/components/arcgis-assistant/customElement.d.ts +16 -12
  46. package/dist/components/arcgis-assistant/customElement.js +1 -1
  47. package/dist/components/arcgis-assistant/index.d.ts +0 -4
  48. package/dist/components/arcgis-assistant-agent/customElement.d.ts +7 -8
  49. package/dist/components/arcgis-assistant-agent/customElement.js +1 -1
  50. package/dist/components/arcgis-assistant-chat/customElement.d.ts +15 -15
  51. package/dist/components/arcgis-assistant-chat/customElement.js +1 -1
  52. package/dist/components/arcgis-assistant-chat/index.d.ts +0 -1
  53. package/dist/components/arcgis-assistant-chat-card/customElement.d.ts +29 -16
  54. package/dist/components/arcgis-assistant-chat-card/customElement.js +1 -1
  55. package/dist/components/arcgis-assistant-chat-card/index.d.ts +0 -5
  56. package/dist/components/arcgis-assistant-chat-card-content/customElement.d.ts +9 -9
  57. package/dist/components/arcgis-assistant-chat-card-content/customElement.js +1 -1
  58. package/dist/components/arcgis-assistant-chat-card-content/index.d.ts +0 -1
  59. package/dist/components/arcgis-assistant-chat-entry/customElement.d.ts +28 -17
  60. package/dist/components/arcgis-assistant-chat-entry/customElement.js +1 -1
  61. package/dist/components/arcgis-assistant-chat-entry/index.d.ts +0 -3
  62. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.d.ts +5 -5
  63. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +1 -1
  64. package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +25 -12
  65. package/dist/components/arcgis-assistant-interrupt/customElement.js +1 -1
  66. package/dist/components/arcgis-assistant-interrupt/index.d.ts +0 -5
  67. package/dist/components/arcgis-assistant-layer-filter-agent/customElement.d.ts +5 -5
  68. package/dist/components/arcgis-assistant-layer-filter-agent/customElement.js +1 -1
  69. package/dist/components/arcgis-assistant-layer-query-agent/customElement.d.ts +5 -5
  70. package/dist/components/arcgis-assistant-layer-query-agent/customElement.js +1 -1
  71. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.d.ts +5 -5
  72. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +1 -1
  73. package/dist/components/arcgis-assistant-navigation-agent/customElement.d.ts +5 -5
  74. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +1 -1
  75. package/dist/components/arcgis-assistant-shell/customElement.d.ts +34 -23
  76. package/dist/components/arcgis-assistant-shell/customElement.js +1 -1
  77. package/dist/components/arcgis-assistant-shell/index.d.ts +0 -5
  78. package/dist/docs/api.json +1 -2239
  79. package/dist/docs/docs.json +1 -2011
  80. package/dist/docs/vscode.css-custom-data.json +1 -6
  81. package/dist/docs/vscode.html-custom-data.json +1 -306
  82. package/dist/docs/web-types.json +1 -693
  83. package/dist/index.d.ts +28 -19
  84. package/dist/index.js +1 -1
  85. package/dist/loader.js +6 -6
  86. package/dist/types/lumina.d.ts +19 -19
  87. package/dist/types/preact.d.ts +19 -19
  88. package/dist/types/react.d.ts +19 -19
  89. package/dist/types/stencil.d.ts +19 -19
  90. package/package.json +7 -7
  91. package/dist/cdn/5GP65UDI.js +0 -4
  92. package/dist/cdn/I54YR7UU.js +0 -6
  93. package/dist/cdn/ODYS7BCT.js +0 -134
  94. package/dist/cdn/SQPT22F4.js +0 -4
  95. package/dist/components/arcgis-assistant/support/OrchestratorController.d.ts +0 -33
  96. package/dist/components/arcgis-assistant/support/utils.d.ts +0 -1
  97. package/dist/components/assistant/assistant-agents/support/utils.d.ts +0 -14
  98. package/dist/controllers/useT9n.d.ts +0 -1
  99. package/dist/customAgents/AddAgent/AddAgent.d.ts +0 -2
  100. package/dist/runtime.d.ts +0 -6
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.135 */
4
- import{a as b}from"./NCD5D6JY.js";import c from"./ODYS7BCT.js";import{a as f}from"./4JWSHGI3.js";import"./K4DOBIBC.js";import{g as y,h,n as g,o as u,p as v,t as _}from"./I54YR7UU.js";import a from"./QFWBH3U2.js";import"./5EXI6IBC.js";import"./YQVK2H7R.js";export default $arcgis.t(([E,{whenOnce:k,watch:L,when:S},O,P,{property:c,subclass:C},,{r:w}])=>{var H=y`:host{height:100%}`,M=Object.defineProperty,x=Object.getOwnPropertyDescriptor,n=(l,t,e,r)=>{for(var s=r>1?void 0:r?x(t,e):t,a=l.length-1,o;a>=0;a--)(o=l[a])&&(s=(r?o(t,e,s):o(s))||s);return r&&s&&M(t,e,s),s},i=class extends P{constructor(l){super(l),this.view=null,this.loading=!1,this.processing=!1,this.processingStep=""}async load(){this._set("loading",!0);try{await this._initialize()}finally{this._set("loading",!1)}}destroy(){this.orchestrator?.dispose(),super.destroy()}async _initialize(){this.removeHandles(),await Promise.all([this.portal.load(),this.view?.when()]),this.view&&await k(()=>!this.view.updating),this._set("orchestrator",await w.init({agents:[...this.agents],portal:this.portal,view:this.view??void 0})),this.addHandles([L(()=>[this.view,this.agents],()=>void this._initialize())])}async*ask(l,t){if(!this.orchestrator)throw new Error("Orchestrator not initialized yet.");this._set("processing",!0),this._set("processingStep","");let e="";try{let r=this.orchestrator.ask(l);for await(let s of r){if(t?.aborted){yield{type:"cancelled"};break}switch(s.type){case"trace":{this._set("processingStep",s.data.text),e+=`${s.data.text}
3
+ v5.0.0-next.137 */
4
+ import{a as b}from"./AAKD5SX2.js";import c from"./J4W33PXP.js";import{a as f}from"./VL7UTIRF.js";import"./2YU5J7GR.js";import{g as y,h,n as g,o as u,p as v,t as _}from"./O5MI43R3.js";import a from"./PI3TDXYV.js";import"./C2KQ57RK.js";import"./JEJTPF54.js";export default $arcgis.t(([E,{whenOnce:k,watch:L,when:S},O,P,{property:c,subclass:C},,{s:w}])=>{var H=y`:host{height:100%}`,M=Object.defineProperty,x=Object.getOwnPropertyDescriptor,n=(l,t,e,r)=>{for(var s=r>1?void 0:r?x(t,e):t,a=l.length-1,o;a>=0;a--)(o=l[a])&&(s=(r?o(t,e,s):o(s))||s);return r&&s&&M(t,e,s),s},i=class extends P{constructor(l){super(l),this.view=null,this.loading=!1,this.processing=!1,this.processingStep=""}async load(){this._set("loading",!0);try{await this._initialize()}finally{this._set("loading",!1)}}destroy(){this.orchestrator?.dispose(),super.destroy()}async _initialize(){this.removeHandles(),await Promise.all([this.portal.load(),this.view?.when()]),this.view&&await k(()=>!this.view.updating),this._set("orchestrator",await w.init({agents:[...this.agents],portal:this.portal,view:this.view??void 0})),this.addHandles([L(()=>[this.view,this.agents],()=>void this._initialize())])}async*ask(l,t){if(!this.orchestrator)throw new Error("Orchestrator not initialized yet.");this._set("processing",!0),this._set("processingStep","");let e="";try{let r=this.orchestrator.ask(l);for await(let s of r){if(t?.aborted){yield{type:"cancelled"};break}switch(s.type){case"trace":{this._set("processingStep",s.data.text),e+=`${s.data.text}
5
5
 
6
6
  `;break}case"completed":{if(!s.result.content.length){yield{type:"completed",error:"Could not process the request.",log:e};return}let a=s.result.content;this._set("processingStep",""),yield{type:"completed",response:a,log:e};return}case"interrupt":{console.log("Orchestrator interrupt:",s);let{kind:a,message:o,metadata:m}=s.interrupt,p=Array.isArray(m)?[...m]:[],$=(()=>{switch(a){case"booleanChoice":return{type:"boolean-choice",message:o,options:p};case"singleSelection":return{type:"single-select",message:o,options:p};case"multipleSelection":return{type:"multi-select",message:o,options:p};case"textInput":return{type:"text-input",message:o};default:return{type:a,message:o,options:p}}})();this._set("processingStep","Waiting for user input..."),yield{type:"interrupt",payload:$};break}case"cancelled":{yield{type:"cancelled"};return}default:{console.warn("Unknown event type:",s);break}}}}catch(r){console.warn("Error during message processing:",r),yield{type:"completed",error:"An error occurred during message processing.",log:e};return}finally{this._set("processing",!1)}}};n([c({readOnly:!0})],i.prototype,"orchestrator",2);n([c()],i.prototype,"agents",2);n([c()],i.prototype,"portal",2);n([c()],i.prototype,"view",2);n([c({readOnly:!0})],i.prototype,"loading",2);n([c({readOnly:!0})],i.prototype,"processing",2);n([c({readOnly:!0})],i.prototype,"processingStep",2);i=n([C("OrchestratorController")],i);var d=class extends v{constructor(){super(...arguments),this._messages=b({blocking:!0}),this.#e=g(),this.#s=g(),this.#t=null,this.#r=null,this.#a=new Map,this.#i=t=>{t.stopPropagation(),this.orchestrator?.cancelInterrupt(),this._interrupt=null},this.#o=t=>{t.stopPropagation();let e=t.detail;this.orchestrator?.resumeInterrupt(e),this._interrupt=null},this.#n=t=>{t.stopPropagation(),this.suggestedPrompts=[];let e=t.detail;this.#h(e)},this.#l=t=>{if(t.stopPropagation(),this._interrupt){this.orchestrator?.cancelInterrupt(),this._interrupt=null;return}this.#r?.abort()},this._interrupt=null,this._chatHistory=new E([]),this._error=null,this.referenceElement=null,this.portal=new O,this.suggestedPrompts=[]}static{this.properties={_interrupt:16,_chatHistory:16,_error:16,orchestrator:32,entryMessage:1,heading:1,description:1,referenceElement:1,portal:0,suggestedPrompts:0}}static{this.styles=H}#e;#s;#t;#r;#a;#i;#o;#n;#l;get orchestrator(){return this.#t?.orchestrator}register(t){this.#a.set(t.agent.id,t)}load(){this.manager.onLifecycle(()=>()=>{this.#r?.abort(),this._interrupt=null,this._chatHistory.removeAll(),this._error=null})}loaded(){this.manager.onLifecycle(()=>{this.#e.value?.addEventListener("arcgisSubmit",this.#n),this.#e.value?.addEventListener("arcgisCancel",this.#l);let t=S(()=>!!this._interrupt&&!!this.#s.value,()=>{let e=this.#s.value;e.removeEventListener("arcgisSubmit",this.#o),e.removeEventListener("arcgisCancel",this.#i),e.addEventListener("arcgisSubmit",this.#o,{once:!0}),e.addEventListener("arcgisCancel",this.#i,{once:!0})});return queueMicrotask(()=>void this.#c()),()=>{t.remove(),this.#s.value?.removeEventListener("arcgisSubmit",this.#o),this.#s.value?.removeEventListener("arcgisCancel",this.#i),this.#e.value?.removeEventListener("arcgisSubmit",this.#n),this.#e.value?.removeEventListener("arcgisCancel",this.#l),this.#t?.destroy(),this.#t=null}})}async#c(){try{let t=f(this.referenceElement);await t?.componentOnReady();let e=[...this.#a.values()];this.#t=new i({agents:e,portal:this.portal,view:t?.view}),await this.#t.load()}catch(t){console.warn(t),this._error="Error initializing orchestrator."}}async#h(t){let e=t.trim();if(!e||(this._chatHistory.push({type:"prompt",content:e}),!this.#t))return;this.#r=new AbortController;let r=this.#t.ask(e,this.#r.signal);for await(let s of r)switch(s.type){case"completed":this._chatHistory.push({type:"response",content:s.response,log:s.log,error:s.error});break;case"interrupt":this._interrupt=s.payload;break;case"cancelled":this._chatHistory.push({type:"response",error:"Request cancelled."});break}}render(){return h`<arcgis-assistant-shell .loading=${this.#t?.loading} .heading=${this.heading??this._messages.assistantLabel} .description=${this.description} .entryMessage=${this.entryMessage} .entryMessageClosed=${this._chatHistory.length>0} .awaitingResponse=${this.#t?.processing} .suggestedPrompts=${this.suggestedPrompts} .status=${this.#t?.processing?"working":this._error?"error":"ready"} ${u(this.#e)}>${this._error?h`<calcite-notice slot=entry-message open kind=danger icon width=full><div slot=message>${this._error}</div></calcite-notice>`:null}${this._interrupt?h`<arcgis-assistant-interrupt slot=entry-message .type=${this._interrupt.type} .message=${this._interrupt.message} .options=${this._interrupt.options} ${u(this.#s)}></arcgis-assistant-interrupt>`:null}<arcgis-assistant-chat .loading=${this.#t?.processing} .loadingMessage=${this.#t?.processingStep||""} .messages=${this._chatHistory} .user=${this.portal?.user?.fullName||this.portal?.user?.username}><slot></slot></arcgis-assistant-chat><slot name=header-actions-end slot=header-actions-end></slot>${this.entryMessage?null:h`<slot name=entry-message slot=entry-message></slot>`}<slot name=entry-actions-start slot=entry-actions-start></slot><slot name=footer-content slot=footer-content></slot></arcgis-assistant-shell>`}};_("arcgis-assistant",d);return d},"core/Collection","core/reactiveUtils","portal/Portal","core/Accessor","core/accessorSupport/decorators",a,c)
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.135 */
4
- import"./YQVK2H7R.js";var e=`This Feature Layer is part of a Feature Service. The Feature Layer contains various fields, each with its own name, type, and description.
3
+ v5.0.0-next.137 */
4
+ import"./JEJTPF54.js";var e=`This Feature Layer is part of a Feature Service. The Feature Layer contains various fields, each with its own name, type, and description.
5
5
  The Feature Layer is a collection of geographic features that represent real-world entities. Each feature in the layer has attributes that provide additional information about the feature. The layer may include point, line, or polygon geometries, depending on the type of data it represents.
6
6
  The geometry type for this layer is {layerGeometryType}.
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.135 */
4
- import"./YQVK2H7R.js";var e=`# ArcGIS JavaScript SDK FeatureLayerView Query Assistant
3
+ v5.0.0-next.137 */
4
+ import"./JEJTPF54.js";var e=`# ArcGIS JavaScript SDK FeatureLayerView Query Assistant
5
5
 
6
6
  You are a GIS assistant that generates query parameters for the ArcGIS JavaScript SDK FeatureLayerView \`queryFeatures()\` method.
7
7
 
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.135 */
4
- import d from"./GNYKVIRC.js";import{a as i,b as e}from"./XOXI7KQN.js";import c from"./ODYS7BCT.js";import"./4JWSHGI3.js";import"./K4DOBIBC.js";import{p as a,t as s}from"./I54YR7UU.js";import b from"./QFWBH3U2.js";import"./5EXI6IBC.js";import"./YQVK2H7R.js";export default $arcgis.t(([,,{a:r}])=>{var t=class extends a{constructor(){super(...arguments),this.agent=r}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-navigation-agent requires a mapView");return{mapView:this.#t}}async load(){this.#t=await i(this,"arcgis-assistant-navigation-agent"),e(this)}};s("arcgis-assistant-navigation-agent",t);return t},b,c,d)
3
+ v5.0.0-next.137 */
4
+ import d from"./3GN2ULHI.js";import{a as i,b as e}from"./P5L22JWW.js";import c from"./J4W33PXP.js";import"./VL7UTIRF.js";import"./2YU5J7GR.js";import{p as a,t as s}from"./O5MI43R3.js";import b from"./PI3TDXYV.js";import"./C2KQ57RK.js";import"./JEJTPF54.js";export default $arcgis.t(([,,{a:r}])=>{var t=class extends a{constructor(){super(...arguments),this.agent=r}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-navigation-agent requires a mapView");return{mapView:this.#t}}async load(){this.#t=await i(this,"arcgis-assistant-navigation-agent"),e(this)}};s("arcgis-assistant-navigation-agent",t);return t},b,c,d)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.135 */
4
- import"./YQVK2H7R.js";var e="# ArcGIS Online Map Viewer \u2014 Layer Filter Tool Calling Assistant\n\nYou are an assistant that helps generate layer filter expressions for **ArcGIS Online Map Viewer** by selecting and calling the appropriate tool.\n\nCRITICAL: You are FORBIDDEN from making multiple tool calls. You MUST make exactly ONE tool call.\n\n## You are given:\n\nA list of layers, with layerId, layerSummary and each with associated field information\n{layerFieldInfo}\n\nFieldInfo:\n\n- `name`: the actual field name used in layer filter expressions\n- `type`: one of `string`, `number`, `date`, etc.\n- `alias`: a human-readable label\n- `description`: optional field metadata\n- `statistics`: such as min, max, unique values, etc.\n\n## Your task\n\n1. Analyze the user's request and the provided layer and field information.\n2. Generate a **single ArcGIS SQL WHERE clause** to match features based on the user's request and intent.\n3. Select the most appropriate tool to call based on the user's request.\n\nThe tool will apply the provided WHERE clause to the layer in the map viewer.\n\n## SQL-92 Date/Time Syntax\n\nUser timezone: {userTimezone} ({userTimezoneOffset})\n\nDatabase stores dates in UTC. Convert user's local time to UTC.\n\nTo convert: if offset is `-08:00`, add 8 hours. If `-05:00`, add 5 hours.\n\nFormat: `TIMESTAMP 'YYYY-MM-DD HH:MM:SS'`\n\n### Rules for generating Layer Filter expressions:\n\n- Use only the field\u2019s **`name`** in the output expression.\n- Use metadata (`alias`, `description`, `statistics`) only to help understand the user's meaning \u2014 not in the syntax.\n- Use field `type` to choose appropriate operators:\n - **String** \u2192 `LIKE '%value%'`, `=`, `IN (...)`\n - **Number/Date** \u2192 `=`, `<`, `>`, `BETWEEN`, etc.\n- Use fields with the **highest `relevanceScore`**.\n- Fields are case sensitive.\n- DO NOT use subqueries or `SELECT` keyword.\n- Combine conditions with `AND`, `OR`, or `NOT` as appropriate.\n- If no meaningful layer filter can be generated, do not call a tool.\n";export{e as default};
3
+ v5.0.0-next.137 */
4
+ import"./JEJTPF54.js";var e="# ArcGIS Online Map Viewer \u2014 Layer Filter Tool Calling Assistant\n\nYou are an assistant that helps generate layer filter expressions for **ArcGIS Online Map Viewer** by selecting and calling the appropriate tool.\n\nCRITICAL: You are FORBIDDEN from making multiple tool calls. You MUST make exactly ONE tool call.\n\n## You are given:\n\nA list of layers, with layerId, layerSummary and each with associated field information\n{layerFieldInfo}\n\nFieldInfo:\n\n- `name`: the actual field name used in layer filter expressions\n- `type`: one of `string`, `number`, `date`, etc.\n- `alias`: a human-readable label\n- `description`: optional field metadata\n- `statistics`: such as min, max, unique values, etc.\n\n## Your task\n\n1. Analyze the user's request and the provided layer and field information.\n2. Generate a **single ArcGIS SQL WHERE clause** to match features based on the user's request and intent.\n3. Select the most appropriate tool to call based on the user's request.\n\nThe tool will apply the provided WHERE clause to the layer in the map viewer.\n\n## SQL-92 Date/Time Syntax\n\nUser timezone: {userTimezone} ({userTimezoneOffset})\n\nDatabase stores dates in UTC. Convert user's local time to UTC.\n\nTo convert: if offset is `-08:00`, add 8 hours. If `-05:00`, add 5 hours.\n\nFormat: `TIMESTAMP 'YYYY-MM-DD HH:MM:SS'`\n\n### Rules for generating Layer Filter expressions:\n\n- Use only the field\u2019s **`name`** in the output expression.\n- Use metadata (`alias`, `description`, `statistics`) only to help understand the user's meaning \u2014 not in the syntax.\n- Use field `type` to choose appropriate operators:\n - **String** \u2192 `LIKE '%value%'`, `=`, `IN (...)`\n - **Number/Date** \u2192 `=`, `<`, `>`, `BETWEEN`, etc.\n- Use fields with the **highest `relevanceScore`**.\n- Fields are case sensitive.\n- DO NOT use subqueries or `SELECT` keyword.\n- Combine conditions with `AND`, `OR`, or `NOT` as appropriate.\n- If no meaningful layer filter can be generated, do not call a tool.\n";export{e as default};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
+ v5.0.0-next.137 */
4
+ import a from"./PI3TDXYV.js";import"./C2KQ57RK.js";import"./JEJTPF54.js";export default $arcgis.t(([{m:a,n:b}])=>{return{FewShotChatMessagePromptTemplate:b,FewShotPromptTemplate:a}},a)