@arcgis/ai-components 5.1.0-next.84 → 5.1.0-next.86

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.
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import c from"./TDBJ6YZ6.js";import b from"./2E6GEUNH.js";import"./WI3JQXAS.js";import{a as e,c as a}from"./B4DEC7PH.js";import"./KVH3PDVW.js";import"./YGW7TUNX.js";import{v as s,y as r}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{c:i}])=>{var t=class extends s{constructor(){super(...arguments),this.agent=i}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-layer-styling-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=e(this,"arcgis-assistant-layer-styling-agent"),a(this)}};r("arcgis-assistant-layer-styling-agent",t);return t},b,c)
2
+ import c from"./ZIER3BNM.js";import b from"./FTUILS6R.js";import"./PLPJJRCP.js";import{a as e,c as a}from"./B4DEC7PH.js";import"./KVH3PDVW.js";import"./YGW7TUNX.js";import{v as s,y as r}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{c:i}])=>{var t=class extends s{constructor(){super(...arguments),this.agent=i}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-layer-styling-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=e(this,"arcgis-assistant-layer-styling-agent"),a(this)}};r("arcgis-assistant-layer-styling-agent",t);return t},b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import c from"./TDBJ6YZ6.js";import b from"./2E6GEUNH.js";import"./WI3JQXAS.js";import{a as r,c as e}from"./B4DEC7PH.js";import"./KVH3PDVW.js";import"./YGW7TUNX.js";import{v as a,y as s}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{b:i}])=>{var t=class extends a{constructor(){super(...arguments),this.agent=i}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-data-exploration-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=r(this,"arcgis-assistant-data-exploration-agent"),e(this)}};s("arcgis-assistant-data-exploration-agent",t);return t},b,c)
2
+ import c from"./ZIER3BNM.js";import b from"./FTUILS6R.js";import"./PLPJJRCP.js";import{a as r,c as e}from"./B4DEC7PH.js";import"./KVH3PDVW.js";import"./YGW7TUNX.js";import{v as a,y as s}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{b:i}])=>{var t=class extends a{constructor(){super(...arguments),this.agent=i}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-data-exploration-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=r(this,"arcgis-assistant-data-exploration-agent"),e(this)}};s("arcgis-assistant-data-exploration-agent",t);return t},b,c)
@@ -20,6 +20,11 @@ Return either:
20
20
  3. \`requiresFollowUp\` \u2014 whether another orchestration step will likely be needed after this agent succeeds
21
21
  - or \`null\` if no registered agent applies
22
22
 
23
+ Important
24
+
25
+ - Return null only when the request is clearly outside the scope of all registered agents.
26
+ - If any agent can take the next useful step, select the best one instead of returning null.
27
+
23
28
  Latest user request:
24
29
  {userRequest}
25
30
 
@@ -35,12 +40,11 @@ Each step has:
35
40
  - agentId: string
36
41
  - assignedTask: string
37
42
  - summary: string
38
- - status: "success" | "failed" | "partial"
43
+ - status: "success" | "failed" | "unknown"
39
44
 
40
45
  Use prior steps to:
41
46
 
42
47
  - Avoid repeating work that has already succeeded
43
- - Continue or refine steps that were partial
44
48
  - Retry or adjust steps that failed when appropriate
45
49
 
46
50
  {priorSteps}
@@ -53,6 +57,9 @@ Rules:
53
57
  - Do not plan the full workflow up front. Only decide the next best step.
54
58
  - Prefer an agent that can directly complete the user\u2019s request.
55
59
  - Only break the request into multiple steps when necessary.
60
+ - When multiple agents could help, choose the best fit instead of returning \`null\`.
61
+ - Base the choice on the registered agent descriptions, not on whether the user used exact matching keywords.
62
+ - If no agent can fully complete the request, but one agent can take the next useful step, choose that agent and set requiresFollowUp to true.
56
63
 
57
64
  Assigned Task Guidelines (IMPORTANT):
58
65