@arcgis/ai-components 5.1.0-next.60 → 5.1.0-next.61

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 (45) hide show
  1. package/dist/cdn/{VDUOWASW.js → 344C2EEF.js} +17 -3
  2. package/dist/cdn/{LNIUXPX7.js → AAEEDEN7.js} +67 -67
  3. package/dist/cdn/{3JJ2FKJ4.js → B4DEC7PH.js} +1 -1
  4. package/dist/cdn/{ZOOIBXUA.js → DLTK3ENO.js} +1 -1
  5. package/dist/cdn/{EP54VHGN.js → ETKNVWKV.js} +1 -1
  6. package/dist/cdn/{XKTKSULE.js → H3DVSYQV.js} +1 -1
  7. package/dist/cdn/{63RJS4ZW.js → IUMTWQJI.js} +1 -1
  8. package/dist/cdn/{GHAVT5EV.js → JPYSTYTV.js} +1 -1
  9. package/dist/cdn/{AVQKKIKL.js → KVH3PDVW.js} +1 -1
  10. package/dist/cdn/{B7LZV76W.js → NN7QKIMP.js} +1 -1
  11. package/dist/cdn/{L5TVHUCT.js → NXIQDF7N.js} +1 -1
  12. package/dist/cdn/{5HPWBCKJ.js → O5QYUL5C.js} +1 -1
  13. package/dist/cdn/{Z6ZNHTPJ.js → RBFFW5ZM.js} +27 -27
  14. package/dist/cdn/{5BADCY6B.js → TTLSUI5H.js} +1 -1
  15. package/dist/cdn/{FARA7SPN.js → UX7NRZPV.js} +1 -1
  16. package/dist/cdn/{UASXQEPJ.js → WO6WO3SH.js} +1 -1
  17. package/dist/cdn/X34ZV777.js +225 -0
  18. package/dist/cdn/{GRUIRS5W.js → YGW7TUNX.js} +1 -1
  19. package/dist/cdn/index.js +1 -1
  20. package/dist/cdn/main.css +1 -1
  21. package/dist/docs/api.json +1 -1
  22. package/dist/docs/docs.json +1 -1
  23. package/dist/docs/vscode.html-custom-data.json +1 -1
  24. package/dist/docs/web-types.json +1 -1
  25. package/dist/index.d.ts +0 -8
  26. package/dist/loader.js +0 -2
  27. package/dist/types/lumina.d.ts +0 -10
  28. package/dist/types/preact.d.ts +0 -12
  29. package/dist/types/react.d.ts +0 -14
  30. package/dist/types/stencil.d.ts +0 -10
  31. package/package.json +6 -6
  32. package/dist/cdn/6T2EIYO4.js +0 -59
  33. package/dist/cdn/BTK65AMF.js +0 -2
  34. package/dist/cdn/HN2HMAMX.js +0 -28
  35. package/dist/cdn/TX5YYQZP.js +0 -2
  36. package/dist/cdn/VIXYCCHV.js +0 -275
  37. package/dist/cdn/X7WF7TCS.js +0 -2
  38. package/dist/components/arcgis-assistant-layer-filter-agent/customElement.d.ts +0 -8
  39. package/dist/components/arcgis-assistant-layer-filter-agent/customElement.js +0 -26
  40. package/dist/components/arcgis-assistant-layer-filter-agent/index.d.ts +0 -1
  41. package/dist/components/arcgis-assistant-layer-filter-agent/index.js +0 -1
  42. package/dist/components/arcgis-assistant-layer-query-agent/customElement.d.ts +0 -8
  43. package/dist/components/arcgis-assistant-layer-query-agent/customElement.js +0 -26
  44. package/dist/components/arcgis-assistant-layer-query-agent/index.d.ts +0 -1
  45. package/dist/components/arcgis-assistant-layer-query-agent/index.js +0 -1
@@ -27,11 +27,15 @@ Validator: Before producing output, verify every field used exists in the listed
27
27
 
28
28
  ## Input
29
29
 
30
- Use the most recent relevant user question from the chat history. The question will **not** be restated again here. Start with a fresh WHERE clause for each question - do not inherit filters from previous questions unless user explicitly asks to combine them.
30
+ Use the most recent relevant user question from the chat history.
31
31
 
32
- ### Rules for generating where clause SQL expressions:
32
+ ### Fresh WHERE clause rule
33
33
 
34
- - Use only the field\u2019s **\`name\`** in the output expression.
34
+ Start with a fresh WHERE clause for each new question. Do not inherit filters from previous questions UNLESS the user explicitly references previous results (see "Referencing Previously Identified Features" below).
35
+
36
+ ### Rules for generating WHERE clause SQL expressions:
37
+
38
+ - Use only the field's **\`name\`** in the output expression.
35
39
  - Use metadata (\`alias\`, \`description\`, \`statistics\`) only to help understand the user's meaning \u2014 not in the syntax.
36
40
  - Use field \`type\` to choose appropriate operators:
37
41
  - **String** \u2192 \`LIKE '%value%'\`, \`=\`, \`IN (...)\` (prefer \`LIKE\` over \`=\`)
@@ -43,6 +47,16 @@ Use the most recent relevant user question from the chat history. The question w
43
47
  - **Range domain fields** \u2192 Use the listed min/max as valid bounds for comparisons.
44
48
  - If no meaningful layer filter can be generated, do not call a tool.
45
49
 
50
+ ## Referencing Previously Identified Features
51
+
52
+ This is an exception to the "fresh WHERE clause" rule above.
53
+
54
+ When the user uses words like "these", "those", "them", "the same ones" referring to features from a previous turn:
55
+
56
+ - If the previous query used useCurrentExtent: true \u2192 use useCurrentExtent: true with where: "1=1"
57
+ - If the previous assistant response mentions specific objectIds or feature IDs \u2192 use {{objectIdField}} IN (id1, id2, ...) to scope to those features
58
+ - If neither is available, use the same WHERE clause and layer from the previous query turn to re-select the same features
59
+
46
60
  ### Mixed Questions
47
61
 
48
62
  If a question has both aggregate and display components (e.g., "How many wells have depth > 100? Show them"):