@salesforce/plugin-agent 1.43.0 → 1.44.4

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 (58) hide show
  1. package/README.md +78 -46
  2. package/lib/adlUtils.d.ts +2 -0
  3. package/lib/adlUtils.js +31 -0
  4. package/lib/adlUtils.js.map +1 -0
  5. package/lib/commands/agent/adl/create.d.ts +6 -1
  6. package/lib/commands/agent/adl/create.js +83 -19
  7. package/lib/commands/agent/adl/create.js.map +1 -1
  8. package/lib/commands/agent/adl/delete.d.ts +0 -1
  9. package/lib/commands/agent/adl/delete.js +3 -2
  10. package/lib/commands/agent/adl/delete.js.map +1 -1
  11. package/lib/commands/agent/adl/file/add.d.ts +0 -1
  12. package/lib/commands/agent/adl/file/add.js +3 -2
  13. package/lib/commands/agent/adl/file/add.js.map +1 -1
  14. package/lib/commands/agent/adl/file/delete.d.ts +0 -1
  15. package/lib/commands/agent/adl/file/delete.js +4 -3
  16. package/lib/commands/agent/adl/file/delete.js.map +1 -1
  17. package/lib/commands/agent/adl/file/list.d.ts +5 -5
  18. package/lib/commands/agent/adl/file/list.js +31 -7
  19. package/lib/commands/agent/adl/file/list.js.map +1 -1
  20. package/lib/commands/agent/adl/get.d.ts +0 -1
  21. package/lib/commands/agent/adl/get.js +15 -3
  22. package/lib/commands/agent/adl/get.js.map +1 -1
  23. package/lib/commands/agent/adl/list.d.ts +0 -1
  24. package/lib/commands/agent/adl/list.js +3 -2
  25. package/lib/commands/agent/adl/list.js.map +1 -1
  26. package/lib/commands/agent/adl/status.d.ts +1 -1
  27. package/lib/commands/agent/adl/status.js +21 -4
  28. package/lib/commands/agent/adl/status.js.map +1 -1
  29. package/lib/commands/agent/adl/update.d.ts +1 -1
  30. package/lib/commands/agent/adl/update.js +18 -5
  31. package/lib/commands/agent/adl/update.js.map +1 -1
  32. package/lib/commands/agent/adl/upload.d.ts +0 -1
  33. package/lib/commands/agent/adl/upload.js +3 -2
  34. package/lib/commands/agent/adl/upload.js.map +1 -1
  35. package/messages/agent.adl.create.md +22 -0
  36. package/messages/agent.adl.file.add.md +2 -0
  37. package/messages/agent.adl.file.delete.md +4 -0
  38. package/messages/agent.adl.file.list.md +12 -0
  39. package/messages/agent.adl.status.md +5 -1
  40. package/messages/agent.adl.update.md +4 -0
  41. package/messages/agent.adl.upload.md +2 -0
  42. package/oclif.manifest.json +635 -573
  43. package/package.json +4 -4
  44. package/schemas/agent-adl-create.json +63 -3
  45. package/schemas/agent-adl-delete.json +5 -2
  46. package/schemas/agent-adl-file-add.json +7 -2
  47. package/schemas/agent-adl-file-delete.json +5 -2
  48. package/schemas/agent-adl-file-list.json +26 -3
  49. package/schemas/agent-adl-get.json +63 -3
  50. package/schemas/agent-adl-list.json +55 -3
  51. package/schemas/agent-adl-status.json +44 -4
  52. package/schemas/agent-adl-update.json +63 -3
  53. package/schemas/agent-adl-upload.json +5 -2
  54. package/schemas/agent-preview-end.json +8 -3
  55. package/schemas/agent-publish-authoring__bundle.json +8 -3
  56. package/schemas/agent-trace-delete.json +7 -2
  57. package/schemas/agent-trace-list.json +9 -2
  58. package/schemas/agent-trace-read.json +131 -21
@@ -10,7 +10,11 @@
10
10
  },
11
11
  "format": {
12
12
  "type": "string",
13
- "enum": ["summary", "detail", "raw"]
13
+ "enum": [
14
+ "summary",
15
+ "detail",
16
+ "raw"
17
+ ]
14
18
  },
15
19
  "dimension": {
16
20
  "$ref": "#/definitions/Dimension"
@@ -34,12 +38,20 @@
34
38
  }
35
39
  }
36
40
  },
37
- "required": ["sessionId", "format"],
41
+ "required": [
42
+ "sessionId",
43
+ "format"
44
+ ],
38
45
  "additionalProperties": false
39
46
  },
40
47
  "Dimension": {
41
48
  "type": "string",
42
- "enum": ["actions", "grounding", "routing", "errors"]
49
+ "enum": [
50
+ "actions",
51
+ "grounding",
52
+ "routing",
53
+ "errors"
54
+ ]
43
55
  },
44
56
  "TurnSummary": {
45
57
  "type": "object",
@@ -69,10 +81,22 @@
69
81
  "type": "number"
70
82
  },
71
83
  "error": {
72
- "type": ["string", "null"]
84
+ "type": [
85
+ "string",
86
+ "null"
87
+ ]
73
88
  }
74
89
  },
75
- "required": ["turn", "planId", "topic", "userInput", "agentResponse", "actionsExecuted", "latencyMs", "error"],
90
+ "required": [
91
+ "turn",
92
+ "planId",
93
+ "topic",
94
+ "userInput",
95
+ "agentResponse",
96
+ "actionsExecuted",
97
+ "latencyMs",
98
+ "error"
99
+ ],
76
100
  "additionalProperties": false
77
101
  },
78
102
  "DimensionRow": {
@@ -117,10 +141,22 @@
117
141
  "type": "number"
118
142
  },
119
143
  "error": {
120
- "type": ["string", "null"]
144
+ "type": [
145
+ "string",
146
+ "null"
147
+ ]
121
148
  }
122
149
  },
123
- "required": ["dimension", "turn", "planId", "action", "input", "output", "latencyMs", "error"],
150
+ "required": [
151
+ "dimension",
152
+ "turn",
153
+ "planId",
154
+ "action",
155
+ "input",
156
+ "output",
157
+ "latencyMs",
158
+ "error"
159
+ ],
124
160
  "additionalProperties": false
125
161
  },
126
162
  "GroundingRow": {
@@ -146,7 +182,14 @@
146
182
  "type": "number"
147
183
  }
148
184
  },
149
- "required": ["dimension", "turn", "planId", "prompt", "response", "latencyMs"],
185
+ "required": [
186
+ "dimension",
187
+ "turn",
188
+ "planId",
189
+ "prompt",
190
+ "response",
191
+ "latencyMs"
192
+ ],
150
193
  "additionalProperties": false
151
194
  },
152
195
  "RoutingRow": {
@@ -172,7 +215,14 @@
172
215
  "type": "string"
173
216
  }
174
217
  },
175
- "required": ["dimension", "turn", "planId", "fromTopic", "toTopic", "intent"],
218
+ "required": [
219
+ "dimension",
220
+ "turn",
221
+ "planId",
222
+ "fromTopic",
223
+ "toTopic",
224
+ "intent"
225
+ ],
176
226
  "additionalProperties": false
177
227
  },
178
228
  "ErrorsRow": {
@@ -198,7 +248,14 @@
198
248
  "type": "string"
199
249
  }
200
250
  },
201
- "required": ["dimension", "turn", "planId", "source", "errorCode", "message"],
251
+ "required": [
252
+ "dimension",
253
+ "turn",
254
+ "planId",
255
+ "source",
256
+ "errorCode",
257
+ "message"
258
+ ],
202
259
  "additionalProperties": false
203
260
  },
204
261
  "PlannerResponse": {
@@ -227,7 +284,14 @@
227
284
  }
228
285
  }
229
286
  },
230
- "required": ["type", "planId", "sessionId", "intent", "topic", "plan"],
287
+ "required": [
288
+ "type",
289
+ "planId",
290
+ "sessionId",
291
+ "intent",
292
+ "topic",
293
+ "plan"
294
+ ],
231
295
  "additionalProperties": false
232
296
  },
233
297
  "PlanStep": {
@@ -263,7 +327,10 @@
263
327
  "type": "string"
264
328
  }
265
329
  },
266
- "required": ["type", "message"],
330
+ "required": [
331
+ "type",
332
+ "message"
333
+ ],
267
334
  "additionalProperties": false
268
335
  },
269
336
  "LLMExecutionStep": {
@@ -330,7 +397,14 @@
330
397
  "items": {}
331
398
  }
332
399
  },
333
- "required": ["type", "topic", "description", "job", "instructions", "availableFunctions"],
400
+ "required": [
401
+ "type",
402
+ "topic",
403
+ "description",
404
+ "job",
405
+ "instructions",
406
+ "availableFunctions"
407
+ ],
334
408
  "additionalProperties": false
335
409
  },
336
410
  "EventStep": {
@@ -356,11 +430,19 @@
356
430
  "type": "string"
357
431
  }
358
432
  },
359
- "required": ["oldTopic", "newTopic"],
433
+ "required": [
434
+ "oldTopic",
435
+ "newTopic"
436
+ ],
360
437
  "additionalProperties": false
361
438
  }
362
439
  },
363
- "required": ["type", "eventName", "isError", "payload"],
440
+ "required": [
441
+ "type",
442
+ "eventName",
443
+ "isError",
444
+ "payload"
445
+ ],
364
446
  "additionalProperties": false
365
447
  },
366
448
  "FunctionStep": {
@@ -385,7 +467,11 @@
385
467
  "additionalProperties": {}
386
468
  }
387
469
  },
388
- "required": ["name", "input", "output"],
470
+ "required": [
471
+ "name",
472
+ "input",
473
+ "output"
474
+ ],
389
475
  "additionalProperties": false
390
476
  },
391
477
  "executionLatency": {
@@ -398,7 +484,13 @@
398
484
  "type": "number"
399
485
  }
400
486
  },
401
- "required": ["type", "function", "executionLatency", "startExecutionTime", "endExecutionTime"],
487
+ "required": [
488
+ "type",
489
+ "function",
490
+ "executionLatency",
491
+ "startExecutionTime",
492
+ "endExecutionTime"
493
+ ],
402
494
  "additionalProperties": false
403
495
  },
404
496
  "PlannerResponseStep": {
@@ -451,16 +543,34 @@
451
543
  "type": "number"
452
544
  }
453
545
  },
454
- "required": ["toxicity", "hate", "identity", "violence", "physical", "sexual", "profanity", "biased"],
546
+ "required": [
547
+ "toxicity",
548
+ "hate",
549
+ "identity",
550
+ "violence",
551
+ "physical",
552
+ "sexual",
553
+ "profanity",
554
+ "biased"
555
+ ],
455
556
  "additionalProperties": false
456
557
  }
457
558
  },
458
- "required": ["safety_score", "category_scores"],
559
+ "required": [
560
+ "safety_score",
561
+ "category_scores"
562
+ ],
459
563
  "additionalProperties": false
460
564
  }
461
565
  },
462
- "required": ["type", "message", "responseType", "isContentSafe", "safetyScore"],
566
+ "required": [
567
+ "type",
568
+ "message",
569
+ "responseType",
570
+ "isContentSafe",
571
+ "safetyScore"
572
+ ],
463
573
  "additionalProperties": false
464
574
  }
465
575
  }
466
- }
576
+ }