@arcgis/ai-agents 5.0.0-next.172 → 5.0.0

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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Merges two SQL WHERE clauses with AND, wrapping each in parentheses.
3
+ *
4
+ * Overload 1: Both params are strings — always returns a string.
5
+ * Overload 2: Either param can be null/undefined — may return null/undefined.
6
+ */
7
+ export declare function mergeWhereClauses(whereClauseA: string, whereClauseB: string): string;
8
+ export declare function mergeWhereClauses(whereClauseA: string | null | undefined, whereClauseB: string | null | undefined): string | null | undefined;
@@ -58,6 +58,8 @@ Make no tool call when:
58
58
  - Use fields with the **highest \`relevanceScore\`**.
59
59
  - DO NOT use subqueries or \`SELECT\` keyword.
60
60
  - Combine conditions with \`AND\`, \`OR\`, or \`NOT\` as appropriate.
61
+ - **Coded-value domain fields** → Always use the numeric/string **code** in WHERE clauses, never the domain name. Domain values are listed under each field as \`code=name\` pairs
62
+ - **Range domain fields** → Use the listed min/max as valid bounds for comparisons.
61
63
  - If no meaningful layer filter can be generated, do not call a tool.
62
64
 
63
65
  ## Top N / Ranked queries
@@ -38,6 +38,8 @@ Use the most recent relevant user question from the chat history. The question w
38
38
  - Use fields with the **highest \`relevanceScore\`**.
39
39
  - DO NOT use subqueries or \`SELECT\` keyword.
40
40
  - Combine conditions with \`AND\`, \`OR\`, or \`NOT\` as appropriate.
41
+ - **Coded-value domain fields** → Always use the numeric/string **code** in WHERE clauses, never the domain name. Domain values are listed under each field as \`code=name\` pairs
42
+ - **Range domain fields** → Use the listed min/max as valid bounds for comparisons.
41
43
  - If no meaningful layer filter can be generated, do not call a tool.
42
44
 
43
45
  ### Mixed Questions