@arcgis/ai-components 5.1.0-next.0 → 5.1.0-next.1
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.
- package/dist/cdn/{OUVX4QS2.js → FVVYK5KV.js} +1 -1
- package/dist/cdn/{3EBDE5UU.js → GLPXJC3A.js} +1 -1
- package/dist/cdn/{OLPFL2NN.js → KSJNIOUZ.js} +1 -1
- package/dist/cdn/SLRL7NB7.js +239 -0
- package/dist/cdn/{QTP47HEP.js → ZIHS43OH.js} +1 -1
- package/dist/cdn/{PWXNH5LQ.js → ZV2N427X.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-assistant/customElement.d.ts +2 -2
- package/dist/components/arcgis-assistant-agent/customElement.d.ts +1 -1
- package/dist/components/arcgis-assistant-data-exploration-agent/customElement.d.ts +1 -1
- package/dist/components/arcgis-assistant-navigation-agent/customElement.d.ts +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/cdn/2GMCG6SX.js +0 -2
- package/dist/cdn/2LSVWAZO.js +0 -2
- package/dist/cdn/33UOPY5K.js +0 -2
- package/dist/cdn/3YA7AYJB.js +0 -59
- package/dist/cdn/4H44OILN.js +0 -2
- package/dist/cdn/63ACCRM5.js +0 -239
- package/dist/cdn/7JQF7K4O.js +0 -2
- package/dist/cdn/7XU5DHDB.js +0 -2
- package/dist/cdn/AHBZA3FR.js +0 -2
- package/dist/cdn/BN4IYD74.js +0 -17
- package/dist/cdn/CFWC26EG.js +0 -2
- package/dist/cdn/EF43HQG4.js +0 -2
- package/dist/cdn/EFU7HGPY.js +0 -109
- package/dist/cdn/EU7GHH2Y.js +0 -56
- package/dist/cdn/G65WIFNI.js +0 -88
- package/dist/cdn/GXFH7ZNV.js +0 -77
- package/dist/cdn/HNKWDK3D.js +0 -2
- package/dist/cdn/IMPD5HA4.js +0 -25
- package/dist/cdn/IZ4NSOIH.js +0 -19
- package/dist/cdn/JMVSBIZH.js +0 -2
- package/dist/cdn/JVPRUGML.js +0 -28
- package/dist/cdn/LDS4EYQM.js +0 -17
- package/dist/cdn/M32BWJ4D.js +0 -14
- package/dist/cdn/M3HTSZRF.js +0 -271
- package/dist/cdn/M7LOJK3R.js +0 -4
- package/dist/cdn/OEDEKAJJ.js +0 -4
- package/dist/cdn/OERTOQSW.js +0 -2
- package/dist/cdn/QJ3OZMLS.js +0 -2
- package/dist/cdn/QWUKKFEV.js +0 -2
- package/dist/cdn/QZJ4SRT5.js +0 -5
- package/dist/cdn/RFHHK4CN.js +0 -2
- package/dist/cdn/RUY3V36A.js +0 -239
- package/dist/cdn/TBTPT64L.js +0 -69
- package/dist/cdn/V32SS7PJ.js +0 -2
- package/dist/cdn/WE5QPXDZ.js +0 -30
- package/dist/cdn/XJN4OIMJ.js +0 -2
- package/dist/cdn/XOLWLHTD.js +0 -41
- package/dist/cdn/Y4325EIX.js +0 -2
- package/dist/cdn/YCAUYSSP.js +0 -2
package/dist/cdn/CFWC26EG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{g as e,h as t,n as i,o,p as r,t as n}from"./OEDEKAJJ.js";import"./2GMCG6SX.js";export default $arcgis.t(([c,{watch:l}])=>{var g=e`.assistant-chat__messages-container{display:flex;flex:1;flex-direction:column}.assistant-chat__messages-list{padding:var(--calcite-spacing-lg);display:flex;flex-direction:column;gap:var(--calcite-spacing-md);flex:1 1 auto;min-height:0;justify-content:flex-end;overflow:auto}`,a=class extends r{constructor(){super(...arguments),this.#s=i(),this.loading=!1,this.loadingMessage="",this.messages=new c([])}static{this.properties={loading:5,loadingMessage:1,user:1,messages:0}}static{this.styles=g}#s;firstUpdated(){this._scrollToEnd()}loaded(){this.manager.onLifecycle(()=>[this.messages.on("change",()=>{this.requestUpdate(),this._scrollToEnd()}),l(()=>this.loading,()=>{this._scrollToEnd()})])}_scrollToEnd(){requestAnimationFrame(()=>{this.#s.value?.scrollIntoView({behavior:"smooth"})})}render(){return t`<div class="assistant-chat__messages-container"><div class="assistant-chat__messages-list"><slot></slot>${this.messages.map(s=>t`<arcgis-assistant-chat-card .type=${s.type} .content=${s.content} .log=${s.log} .error=${s.error} .user=${this.user}></arcgis-assistant-chat-card>`)}${this.loading?t`<arcgis-assistant-chat-card .loading=${this.loading} .loadingMessage=${this.loadingMessage} type=response></arcgis-assistant-chat-card>`:null}</div><div ${o(this.#s)}></div></div>`}};n("arcgis-assistant-chat",a);return a},"core/Collection","core/reactiveUtils")
|
package/dist/cdn/EF43HQG4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{a as o}from"./AHBZA3FR.js";import"./2LSVWAZO.js";import{g as a,h as t,k as e,p as n,t as l}from"./OEDEKAJJ.js";import"./2GMCG6SX.js";var r=a`.assistant-shell__footer-container{display:flex;flex-direction:column;flex:1 1 0;gap:var(--calcite-spacing-md)}.assistant-shell__content-container{display:flex;flex-direction:column;flex:1 1 0;min-height:0;position:relative}.assistant-shell__suggested-prompts-container{position:absolute;bottom:0;display:flex;justify-content:center;width:100%}.assistant-shell__suggested-prompts{padding:var(--calcite-spacing-md)}.assistant-shell__suggested-prompt{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal}`,i=class extends n{constructor(){super(...arguments),this._messages=o({blocking:!0}),this.description="",this.loading=!1,this.entryMessageClosed=!1,this.awaitingResponse=!1,this.suggestedPrompts=[],this.inputValue="",this.arcgisCancel=e(),this.arcgisSubmit=e()}static{this.properties={heading:1,description:1,loading:5,entryMessage:1,entryMessageClosed:5,awaitingResponse:5,suggestedPrompts:0,inputValue:1,status:1}}static{this.styles=r}_renderSuggestedPrompts(){return this.suggestedPrompts?.length?t`<div class="assistant-shell__suggested-prompts-container"><calcite-chip-group class="assistant-shell__suggested-prompts" .label=${this._messages.suggestedPromptsLabel??"suggested prompts"} selection-mode=single-persist @calciteChipGroupSelect=${s=>this.inputValue=s.target.selectedItems[0]?.value??""}>${this.suggestedPrompts.map(s=>t`<calcite-chip closable .value=${s} .label=${s} appearance=outline-fill kind=brand><div class="assistant-shell__suggested-prompt">${s}</div></calcite-chip>`)}</calcite-chip-group></div>`:null}render(){return t`<calcite-panel .loading=${this.loading} .heading=${this.heading??this._messages.shellHeading} .description=${this.description}><slot slot=header-actions-end name=header-actions-end></slot><div class="assistant-shell__content-container"><slot></slot>${this._renderSuggestedPrompts()}</div><div class="assistant-shell__footer-container" slot=footer><slot name=entry-message>${this.entryMessageClosed?null:t`<calcite-notice slot=entry-message .open=${!this.entryMessageClosed} kind=info closable icon width=full><div slot=message>${this.entryMessage??this._messages.shellEntryMessage}</div></calcite-notice>`}</slot><arcgis-assistant-chat-entry .awaitingResponse=${this.awaitingResponse} .arcgisSubmit=${this.arcgisSubmit} .arcgisCancel=${this.arcgisCancel} .inputValue=${this.inputValue} .status=${this.status}><slot name=entry-actions-start slot=entry-actions-start></slot></arcgis-assistant-chat-entry><slot name=footer-content></slot></div></calcite-panel>`}};l("arcgis-assistant-shell",i);export{i as ArcgisAssistantShell};
|
package/dist/cdn/EFU7HGPY.js
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import"./2GMCG6SX.js";var e=`You are a knowledgeable GIS expert.
|
|
3
|
-
|
|
4
|
-
You are given a Feature Service description and title.
|
|
5
|
-
|
|
6
|
-
{existingItemTitle}
|
|
7
|
-
{existingItemDescription}
|
|
8
|
-
|
|
9
|
-
You are given Feature Layer descriptions and title.
|
|
10
|
-
|
|
11
|
-
{existingLayerTitle}
|
|
12
|
-
{existingLayerDescription}
|
|
13
|
-
|
|
14
|
-
## Existing field descriptions:
|
|
15
|
-
|
|
16
|
-
Here is an extensive list of fields with their existing descriptions. These fields together represent a summary of the data contained in this feature layer. NOTE that these field descriptions are not final and may need to be improved.
|
|
17
|
-
Some fields will have summary statistics, which are also included in the field descriptions. Statistics can help you decipher the type of data better.
|
|
18
|
-
|
|
19
|
-
{fieldInformation}
|
|
20
|
-
|
|
21
|
-
Your task is to generate the following for each field:
|
|
22
|
-
|
|
23
|
-
1. field_description: A short description of the field.
|
|
24
|
-
2. field_value_type: Field Value Type
|
|
25
|
-
3. field_alias: A display name that concisely conveys the field contents to help readers understand the data
|
|
26
|
-
|
|
27
|
-
## Instructions to generate Field Description:
|
|
28
|
-
|
|
29
|
-
- You must generate a field description for each field in the feature layer.
|
|
30
|
-
- You must not skip any field.
|
|
31
|
-
- If you think the existing field description is good, you must still add it in your response.
|
|
32
|
-
- If the existing field description is empty, you must generate a new field description.
|
|
33
|
-
- The field description should be a short description of the field.
|
|
34
|
-
- If the existing field description has units, you should include them in the new field description.
|
|
35
|
-
- If the existing field description is not clear, you should improve it.
|
|
36
|
-
- Do not have duplicate field descriptions. Always keep the one that is the best.
|
|
37
|
-
|
|
38
|
-
## Instructions to determine Field Value Type:
|
|
39
|
-
|
|
40
|
-
Following is a list of field value types you can assign to a field in a feature layer. Each field value type is used to define the kind of data that can be stored in that field. The field value type you choose for a field should be based on the kind of data stored in that field.
|
|
41
|
-
|
|
42
|
-
- NAME_OR_TITLE:
|
|
43
|
-
Text that represents a name, title, label, or keyword for each feature.
|
|
44
|
-
|
|
45
|
-
- DESCRIPTION:
|
|
46
|
-
Text that provides a longer description of the feature, more than just a name or title.
|
|
47
|
-
|
|
48
|
-
For example, if you have a layer to collect information from the public regarding issues in the community, a field in that layer that allows people to specify the nature of the issue can be defined with the Description field value type.
|
|
49
|
-
|
|
50
|
-
- TYPE_OR_CATEGORY:
|
|
51
|
-
Field values represent types or categories for group features that are based on a common characteristic, for example, soil type, zoning code, species, or asset type.
|
|
52
|
-
|
|
53
|
-
- COUNT_OR_AMOUNT:
|
|
54
|
-
Integers (no decimal) that represent the quantity of a specific attribute.
|
|
55
|
-
|
|
56
|
-
- PERCENTAGE_OR_RATIO:
|
|
57
|
-
Number values in this field reflect the relationship between different quantities, for example, the percentage of males in a population or the ratio between the number of males and females.
|
|
58
|
-
|
|
59
|
-
- MEASUREMENT:
|
|
60
|
-
A number that reflects a characteristic that you can precisely measure, for example, elevation, distance, temperature, or age.
|
|
61
|
-
|
|
62
|
-
- CURRENCY:
|
|
63
|
-
A number that represents monetary values.
|
|
64
|
-
|
|
65
|
-
- UNIQUE_IDENTIFIER:
|
|
66
|
-
The values in this field are used to positively distinguish one feature or entity from another, for example, an assessor's parcel number, a membership ID, or an invoice number.
|
|
67
|
-
|
|
68
|
-
Each value per entity must be unique, but that does not necessarily mean all the values in this field will be unique for the layer.
|
|
69
|
-
|
|
70
|
-
For example, if you have two layers\u2014one for employees and one for job sites\u2014both can contain an employee ID unique identifier field. In the employees layer, the employee ID field should contain unique values. In the job sites layer, the employee ID field can contain duplicate values, as an employee may work at multiple job sites. The employee ID field in the job sites layer is still a unique identifier because it distinguishes one employee from another, even though the field does not contain unique values in the job sites layer.
|
|
71
|
-
|
|
72
|
-
- PHONE_NUMBER:
|
|
73
|
-
This field stores phone numbers.
|
|
74
|
-
|
|
75
|
-
- EMAIL_ADDRESS:
|
|
76
|
-
This field stores email address strings.
|
|
77
|
-
|
|
78
|
-
- ORDERED_OR_RANKED_LIST:
|
|
79
|
-
The values in this field represent a feature's status in an ordered or ranked list. For example, a feature can be one of the following:
|
|
80
|
-
|
|
81
|
-
Small, medium, or large
|
|
82
|
-
First, second, third, or fourth
|
|
83
|
-
Informational, warning, error, or failure
|
|
84
|
-
|
|
85
|
-
- BINARY
|
|
86
|
-
Only one of two values are possible for each feature. Examples include the following:
|
|
87
|
-
|
|
88
|
-
On or off
|
|
89
|
-
Yes or no
|
|
90
|
-
True or false
|
|
91
|
-
Inhabited or vacant
|
|
92
|
-
|
|
93
|
-
- LOCATION_OR_PLACE_NAME:
|
|
94
|
-
Values in this field represent a geographic location. Examples include a street address, city name, region, building name (such as A.K. Smiley Public Library), attraction name (such as Alameda County Fairgrounds or Cairngorms National Park), postal code, or country.
|
|
95
|
-
|
|
96
|
-
- COORDINATE:
|
|
97
|
-
These fields store a geographic coordinate value such as x, y, z, latitude, or longitude.
|
|
98
|
-
|
|
99
|
-
- DATE_AND_TIME:
|
|
100
|
-
Values in this field store explicit dates and times or date references such as days of the week, months, or years.
|
|
101
|
-
|
|
102
|
-
- OTHER:
|
|
103
|
-
If a field does not fit any of the above categories, you can assign it to the "OTHER" category.
|
|
104
|
-
|
|
105
|
-
If a field already has a field value type assigned, you MUST use that value type.
|
|
106
|
-
If a field already has a field description assigned, you MUST use it in order to determine a fitting field value type and field alias. You can improve the field description if you think it is necessary.
|
|
107
|
-
If a field already has a field alias assigned, you must use it in order to determine a fitting field description. You can improve the field alias if you think it is necessary.
|
|
108
|
-
If a field does not have a field description, field value type, or field alias assigned, you must generate them based on the field name and the data type of the field. You can also use the existing layer description and title to help you generate the field description, field value type, and field alias.
|
|
109
|
-
`;export{e as default};
|
package/dist/cdn/EU7GHH2Y.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import"./2GMCG6SX.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
|
-
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.
|
|
4
|
-
The geometry type for this layer is {layerGeometryType}.
|
|
5
|
-
|
|
6
|
-
Here is the field information for each field in the Feature Layer. Each field has a name, alias, type, valueType and description. These should help you understand the data represented in the Feature Layer.
|
|
7
|
-
|
|
8
|
-
Field Descriptions:
|
|
9
|
-
{fieldInformation}
|
|
10
|
-
|
|
11
|
-
Your task is to :
|
|
12
|
-
|
|
13
|
-
- analyze the field descriptions to understand the data represented in the Feature Layer.
|
|
14
|
-
- Generate the following for the layer:
|
|
15
|
-
- a title: a concise title that accurately reflects the content and purpose of the feature service.
|
|
16
|
-
- a description: a detailed description of the feature layer
|
|
17
|
-
|
|
18
|
-
Consider the following aspects in your description:
|
|
19
|
-
|
|
20
|
-
- purpose of this feature layer
|
|
21
|
-
- types of data and geometric entities represented in the layer
|
|
22
|
-
- sources of the layer information and the geographic area covered
|
|
23
|
-
- potential applications and usefulness of the feature layer in the GIS world
|
|
24
|
-
|
|
25
|
-
If any of the above topics are not applicable, you can skip them. Don't include statements that indicate something this Feature Layer is not or does not have. Avoid listing field names, types, and other technical details.
|
|
26
|
-
|
|
27
|
-
Instructions while generating the title:
|
|
28
|
-
|
|
29
|
-
- Avoid using special characters in the title.
|
|
30
|
-
- Avoid using 'layer' in the title.
|
|
31
|
-
- Avoid using all uppercase letters in the title. Use title case instead.
|
|
32
|
-
- The title should not be too long.
|
|
33
|
-
|
|
34
|
-
You are given Feature Layer descriptions and title.
|
|
35
|
-
|
|
36
|
-
## Existing layer details filled in by a human:
|
|
37
|
-
|
|
38
|
-
{existingLayerTitle}
|
|
39
|
-
{existingLayerSnippet}
|
|
40
|
-
{existingLayerDescription}
|
|
41
|
-
|
|
42
|
-
## Instructions on how to use the information filled in by a human:
|
|
43
|
-
|
|
44
|
-
Remember humans may have more information about the item than just the field and layer descriptions.
|
|
45
|
-
|
|
46
|
-
- Use this information ONLY IF it helps you understand the item better.
|
|
47
|
-
- Use this information ONLY IF it helps you generate a better description and title.
|
|
48
|
-
- Use your knowledge from this information to compensate for any important information that is missing in the field and layer descriptions.
|
|
49
|
-
|
|
50
|
-
## Instructions on what to avoid doing with the information filled in by a human:
|
|
51
|
-
|
|
52
|
-
- you must not use this information in your response as it is.
|
|
53
|
-
- you must not think of this information as the final version.
|
|
54
|
-
- you must not use this information to generate a response without analyzing it.
|
|
55
|
-
- you must not copy this information verbatim in your response.
|
|
56
|
-
`;export{e as default};
|
package/dist/cdn/G65WIFNI.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import"./2GMCG6SX.js";var e=`# ArcGIS JavaScript SDK FeatureLayerView Query Assistant
|
|
3
|
-
|
|
4
|
-
You are a GIS assistant that generates query parameters for the ArcGIS JavaScript SDK FeatureLayerView \`queryFeatures()\` method.
|
|
5
|
-
|
|
6
|
-
Analyze the user's request and construct appropriate query parameters for each relevant layer. Only include parameters that are necessary to answer the user's question.
|
|
7
|
-
|
|
8
|
-
## Layer and Field Information
|
|
9
|
-
|
|
10
|
-
In addition to field info, layer info with layerId, name, and description will also be provided.
|
|
11
|
-
It will be an array of multiple layers.
|
|
12
|
-
|
|
13
|
-
You are only allowed to use the field names listed under each layer. Do not invent or use any fields not listed.
|
|
14
|
-
|
|
15
|
-
{layerFieldInfo}
|
|
16
|
-
|
|
17
|
-
## Critical Guard \u2014 Do NOT Hallucinate Fields
|
|
18
|
-
|
|
19
|
-
If the user asks for a filter that requires a field not present in the list above, do not invent the field and do not include it.
|
|
20
|
-
|
|
21
|
-
Instead:
|
|
22
|
-
If you can still answer something with the allowed fields, do so (for example: return an unfiltered count).
|
|
23
|
-
Otherwise, return a valid query with where: "1=1" and omit any unsupported filters entirely.
|
|
24
|
-
Never reference fields beyond those listed. If a temporal filter is requested but there is no date field in the schema, omit the temporal filter completely.
|
|
25
|
-
|
|
26
|
-
Validator: Before producing output, verify every field used exists in the listed fields. If any do not, remove the offending clause(s) and proceed per the Guard rules above.
|
|
27
|
-
|
|
28
|
-
## Input
|
|
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.
|
|
31
|
-
|
|
32
|
-
### Mixed Questions
|
|
33
|
-
|
|
34
|
-
If a question has both aggregate and display components (e.g., "How many wells have depth > 100? Show them"):
|
|
35
|
-
|
|
36
|
-
- Focus ONLY on the aggregate part ("how many") for this query
|
|
37
|
-
- The visualization part ("show them") is handled by a separate system
|
|
38
|
-
|
|
39
|
-
## RULES
|
|
40
|
-
|
|
41
|
-
DO NOT generate sub queries or nested queries as they are not supported by ArcGIS.
|
|
42
|
-
|
|
43
|
-
When dealing with geometry and proximity and spatial queries:
|
|
44
|
-
|
|
45
|
-
1. TARGET LAYER = What you want to FIND/RETURN in results
|
|
46
|
-
2. GEOMETRY LAYER = The location to search FROM (with distance buffer)
|
|
47
|
-
|
|
48
|
-
For questions like "Is [specific item A] near/within [any of type B]":
|
|
49
|
-
|
|
50
|
-
- Target: Type B (what we're searching for)
|
|
51
|
-
- Geometry: Specific item A (where we're searching from)
|
|
52
|
-
|
|
53
|
-
Examples:
|
|
54
|
-
|
|
55
|
-
Q: "Is well P132_1873 within 300m from a protected area?"
|
|
56
|
-
Target: Protected Areas (what we want to find)
|
|
57
|
-
Geometry: Well (where="ID = 'P132_1873'" - single point)
|
|
58
|
-
Result: Returns which protected areas are nearby
|
|
59
|
-
|
|
60
|
-
Q: "Find roads within 500m of park X"
|
|
61
|
-
Target: Roads (what we want to find)
|
|
62
|
-
Geometry: Park X (specific location)
|
|
63
|
-
Result: Returns which roads are nearby
|
|
64
|
-
|
|
65
|
-
Key principle: The geometry layer should be the SIMPLER geometry (ideally a single feature or small set),
|
|
66
|
-
not a large collection that requires union operations.
|
|
67
|
-
|
|
68
|
-
### NOTE:
|
|
69
|
-
|
|
70
|
-
If the user request includes no filter (where: 1=1) and the answer can be derived from precomputed fieldStatistics, do NOT call a tool. Instead, respond directly using the provided statistics.
|
|
71
|
-
|
|
72
|
-
If you cannot answer directly, you MUST call a tool.
|
|
73
|
-
|
|
74
|
-
## SQL-92 Date/Time Syntax
|
|
75
|
-
|
|
76
|
-
User timezone: {userTimezone} ({userTimezoneOffset})
|
|
77
|
-
|
|
78
|
-
Database stores dates in UTC. Convert user's local time to UTC.
|
|
79
|
-
|
|
80
|
-
To convert: if offset is \`-08:00\`, add 8 hours. If \`-05:00\`, add 5 hours.
|
|
81
|
-
|
|
82
|
-
Format: \`TIMESTAMP 'YYYY-MM-DD HH:MM:SS'\`
|
|
83
|
-
|
|
84
|
-
## Your Task
|
|
85
|
-
|
|
86
|
-
1. Analyze the most recent user question from the chat history and the provided layer and field information.
|
|
87
|
-
2. Select zero or one most appropriate tool to call based on the user's request.
|
|
88
|
-
`;export{e as default};
|
package/dist/cdn/GXFH7ZNV.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import"./2GMCG6SX.js";var e=`# ArcGIS Online Map Viewer \u2014 Layer Filter Tool Calling Assistant
|
|
3
|
-
|
|
4
|
-
You are an assistant that helps generate layer filter expressions for **ArcGIS Online Map Viewer** by selecting and calling the appropriate tool.
|
|
5
|
-
|
|
6
|
-
CRITICAL: You MUST make exactly ONE tool call. You are FORBIDDEN from making zero or multiple tool calls. Even if the question has been answered, you need to filter the features.
|
|
7
|
-
|
|
8
|
-
## You are given:
|
|
9
|
-
|
|
10
|
-
A list of layers, with layerId, layerSummary and each with associated field information
|
|
11
|
-
{layerFieldInfo}
|
|
12
|
-
|
|
13
|
-
FieldInfo:
|
|
14
|
-
|
|
15
|
-
- \`name\`: the actual field name used in layer filter expressions
|
|
16
|
-
- \`type\`: one of \`string\`, \`number\`, \`date\`, etc.
|
|
17
|
-
- \`alias\`: a human-readable label
|
|
18
|
-
- \`description\`: optional field metadata
|
|
19
|
-
- \`statistics\`: such as min, max, unique values, etc.
|
|
20
|
-
|
|
21
|
-
## Your task
|
|
22
|
-
|
|
23
|
-
1. Analyze the user's request and the provided layer and field information.
|
|
24
|
-
2. Generate a **single ArcGIS SQL WHERE clause** to match features based on the user's request and intent.
|
|
25
|
-
3. Select the most appropriate tool to call based on the user's request.
|
|
26
|
-
|
|
27
|
-
The tool will apply the provided WHERE clause to the layer in the map viewer.
|
|
28
|
-
|
|
29
|
-
### Rules for generating Layer Filter expressions:
|
|
30
|
-
|
|
31
|
-
- Use only the field\u2019s **\`name\`** in the output expression.
|
|
32
|
-
- Use metadata (\`alias\`, \`description\`, \`statistics\`) only to help understand the user's meaning \u2014 not in the syntax.
|
|
33
|
-
- Use field \`type\` to choose appropriate operators:
|
|
34
|
-
- **String** \u2192 \`LIKE '%value%'\`, \`=\`, \`IN (...)\`
|
|
35
|
-
- **Number/Date** \u2192 \`=\`, \`<\`, \`>\`, \`BETWEEN\`, etc.
|
|
36
|
-
- Use fields with the **highest \`relevanceScore\`**.
|
|
37
|
-
- DO NOT use subqueries or \`SELECT\` keyword.
|
|
38
|
-
- Combine conditions with \`AND\`, \`OR\`, or \`NOT\` as appropriate.
|
|
39
|
-
- If no meaningful layer filter can be generated, do not call a tool.
|
|
40
|
-
|
|
41
|
-
## SQL-92 Date/Time Syntax
|
|
42
|
-
|
|
43
|
-
User timezone: {userTimezone} ({userTimezoneOffset})
|
|
44
|
-
|
|
45
|
-
Database stores dates in UTC. Convert user's local time to UTC.
|
|
46
|
-
|
|
47
|
-
To convert: if offset is \`-08:00\`, add 8 hours. If \`-05:00\`, add 5 hours.
|
|
48
|
-
|
|
49
|
-
Format: \`TIMESTAMP 'YYYY-MM-DD HH:MM:SS'\`
|
|
50
|
-
|
|
51
|
-
## RULES
|
|
52
|
-
|
|
53
|
-
When dealing with geometry and proximity and spatial queries:
|
|
54
|
-
|
|
55
|
-
1. TARGET LAYER = What you want to FIND/RETURN in results
|
|
56
|
-
2. GEOMETRY LAYER = The location to search FROM (with distance buffer)
|
|
57
|
-
|
|
58
|
-
For questions like "Is [specific item A] near/within [any of type B]":
|
|
59
|
-
|
|
60
|
-
- Target: Type B (what we're searching for)
|
|
61
|
-
- Geometry: Specific item A (where we're searching from)
|
|
62
|
-
|
|
63
|
-
Examples:
|
|
64
|
-
|
|
65
|
-
Q: "Is well P132_1873 within 300m from a protected area?"
|
|
66
|
-
Target: Protected Areas (what we want to find)
|
|
67
|
-
Geometry: Well (where="ID = 'P132_1873'" - single point)
|
|
68
|
-
Result: Returns which protected areas are nearby
|
|
69
|
-
|
|
70
|
-
Q: "Find roads within 500m of park X"
|
|
71
|
-
Target: Roads (what we want to find)
|
|
72
|
-
Geometry: Park X (specific location)
|
|
73
|
-
Result: Returns which roads are nearby
|
|
74
|
-
|
|
75
|
-
Key principle: The geometry layer should be the SIMPLER geometry (ideally a single feature or small set),
|
|
76
|
-
not a large collection that requires union operations.
|
|
77
|
-
`;export{e as default};
|