@salesforce/plugin-agent 1.37.0 → 1.38.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-agent",
3
3
  "description": "Commands to interact with Salesforce agents",
4
- "version": "1.37.0",
4
+ "version": "1.38.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "enableO11y": true,
@@ -12,7 +12,7 @@
12
12
  "@inquirer/prompts": "^7.10.1",
13
13
  "@oclif/core": "^4",
14
14
  "@oclif/multi-stage-output": "^0.8.36",
15
- "@salesforce/agents": "^1.5.2",
15
+ "@salesforce/agents": "^1.6.0",
16
16
  "@salesforce/core": "^8.28.3",
17
17
  "@salesforce/kit": "^3.2.6",
18
18
  "@salesforce/sf-plugins-core": "^12.2.6",
@@ -240,7 +240,7 @@
240
240
  "exports": "./lib/index.js",
241
241
  "type": "module",
242
242
  "sfdx": {
243
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.37.0.crt",
244
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.37.0.sig"
243
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.38.0.crt",
244
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.38.0.sig"
245
245
  }
246
246
  }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentTraceDeleteResult",
4
+ "definitions": {
5
+ "AgentTraceDeleteResult": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "agent": {
11
+ "type": "string"
12
+ },
13
+ "sessionId": {
14
+ "type": "string"
15
+ },
16
+ "planId": {
17
+ "type": "string"
18
+ },
19
+ "path": {
20
+ "type": "string"
21
+ }
22
+ },
23
+ "required": ["agent", "sessionId", "planId", "path"],
24
+ "additionalProperties": false
25
+ }
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentTraceListResult",
4
+ "definitions": {
5
+ "AgentTraceListResult": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "agent": {
11
+ "type": "string"
12
+ },
13
+ "sessionId": {
14
+ "type": "string"
15
+ },
16
+ "planId": {
17
+ "type": "string"
18
+ },
19
+ "path": {
20
+ "type": "string"
21
+ },
22
+ "size": {
23
+ "type": "number"
24
+ },
25
+ "mtime": {
26
+ "type": "string"
27
+ }
28
+ },
29
+ "required": ["agent", "sessionId", "planId", "path", "size", "mtime"],
30
+ "additionalProperties": false
31
+ }
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,466 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentTraceReadResult",
4
+ "definitions": {
5
+ "AgentTraceReadResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "sessionId": {
9
+ "type": "string"
10
+ },
11
+ "format": {
12
+ "type": "string",
13
+ "enum": ["summary", "detail", "raw"]
14
+ },
15
+ "dimension": {
16
+ "$ref": "#/definitions/Dimension"
17
+ },
18
+ "turns": {
19
+ "type": "array",
20
+ "items": {
21
+ "$ref": "#/definitions/TurnSummary"
22
+ }
23
+ },
24
+ "detail": {
25
+ "type": "array",
26
+ "items": {
27
+ "$ref": "#/definitions/DimensionRow"
28
+ }
29
+ },
30
+ "raw": {
31
+ "type": "array",
32
+ "items": {
33
+ "$ref": "#/definitions/PlannerResponse"
34
+ }
35
+ }
36
+ },
37
+ "required": ["sessionId", "format"],
38
+ "additionalProperties": false
39
+ },
40
+ "Dimension": {
41
+ "type": "string",
42
+ "enum": ["actions", "grounding", "routing", "errors"]
43
+ },
44
+ "TurnSummary": {
45
+ "type": "object",
46
+ "properties": {
47
+ "turn": {
48
+ "type": "number"
49
+ },
50
+ "planId": {
51
+ "type": "string"
52
+ },
53
+ "topic": {
54
+ "type": "string"
55
+ },
56
+ "userInput": {
57
+ "type": "string"
58
+ },
59
+ "agentResponse": {
60
+ "type": "string"
61
+ },
62
+ "actionsExecuted": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "string"
66
+ }
67
+ },
68
+ "latencyMs": {
69
+ "type": "number"
70
+ },
71
+ "error": {
72
+ "type": ["string", "null"]
73
+ }
74
+ },
75
+ "required": ["turn", "planId", "topic", "userInput", "agentResponse", "actionsExecuted", "latencyMs", "error"],
76
+ "additionalProperties": false
77
+ },
78
+ "DimensionRow": {
79
+ "anyOf": [
80
+ {
81
+ "$ref": "#/definitions/ActionsRow"
82
+ },
83
+ {
84
+ "$ref": "#/definitions/GroundingRow"
85
+ },
86
+ {
87
+ "$ref": "#/definitions/RoutingRow"
88
+ },
89
+ {
90
+ "$ref": "#/definitions/ErrorsRow"
91
+ }
92
+ ]
93
+ },
94
+ "ActionsRow": {
95
+ "type": "object",
96
+ "properties": {
97
+ "dimension": {
98
+ "type": "string",
99
+ "const": "actions"
100
+ },
101
+ "turn": {
102
+ "type": "number"
103
+ },
104
+ "planId": {
105
+ "type": "string"
106
+ },
107
+ "action": {
108
+ "type": "string"
109
+ },
110
+ "input": {
111
+ "type": "string"
112
+ },
113
+ "output": {
114
+ "type": "string"
115
+ },
116
+ "latencyMs": {
117
+ "type": "number"
118
+ },
119
+ "error": {
120
+ "type": ["string", "null"]
121
+ }
122
+ },
123
+ "required": ["dimension", "turn", "planId", "action", "input", "output", "latencyMs", "error"],
124
+ "additionalProperties": false
125
+ },
126
+ "GroundingRow": {
127
+ "type": "object",
128
+ "properties": {
129
+ "dimension": {
130
+ "type": "string",
131
+ "const": "grounding"
132
+ },
133
+ "turn": {
134
+ "type": "number"
135
+ },
136
+ "planId": {
137
+ "type": "string"
138
+ },
139
+ "prompt": {
140
+ "type": "string"
141
+ },
142
+ "response": {
143
+ "type": "string"
144
+ },
145
+ "latencyMs": {
146
+ "type": "number"
147
+ }
148
+ },
149
+ "required": ["dimension", "turn", "planId", "prompt", "response", "latencyMs"],
150
+ "additionalProperties": false
151
+ },
152
+ "RoutingRow": {
153
+ "type": "object",
154
+ "properties": {
155
+ "dimension": {
156
+ "type": "string",
157
+ "const": "routing"
158
+ },
159
+ "turn": {
160
+ "type": "number"
161
+ },
162
+ "planId": {
163
+ "type": "string"
164
+ },
165
+ "fromTopic": {
166
+ "type": "string"
167
+ },
168
+ "toTopic": {
169
+ "type": "string"
170
+ },
171
+ "intent": {
172
+ "type": "string"
173
+ }
174
+ },
175
+ "required": ["dimension", "turn", "planId", "fromTopic", "toTopic", "intent"],
176
+ "additionalProperties": false
177
+ },
178
+ "ErrorsRow": {
179
+ "type": "object",
180
+ "properties": {
181
+ "dimension": {
182
+ "type": "string",
183
+ "const": "errors"
184
+ },
185
+ "turn": {
186
+ "type": "number"
187
+ },
188
+ "planId": {
189
+ "type": "string"
190
+ },
191
+ "source": {
192
+ "type": "string"
193
+ },
194
+ "errorCode": {
195
+ "type": "string"
196
+ },
197
+ "message": {
198
+ "type": "string"
199
+ }
200
+ },
201
+ "required": ["dimension", "turn", "planId", "source", "errorCode", "message"],
202
+ "additionalProperties": false
203
+ },
204
+ "PlannerResponse": {
205
+ "type": "object",
206
+ "properties": {
207
+ "type": {
208
+ "type": "string",
209
+ "const": "PlanSuccessResponse"
210
+ },
211
+ "planId": {
212
+ "type": "string"
213
+ },
214
+ "sessionId": {
215
+ "type": "string"
216
+ },
217
+ "intent": {
218
+ "type": "string"
219
+ },
220
+ "topic": {
221
+ "type": "string"
222
+ },
223
+ "plan": {
224
+ "type": "array",
225
+ "items": {
226
+ "$ref": "#/definitions/PlanStep"
227
+ }
228
+ }
229
+ },
230
+ "required": ["type", "planId", "sessionId", "intent", "topic", "plan"],
231
+ "additionalProperties": false
232
+ },
233
+ "PlanStep": {
234
+ "anyOf": [
235
+ {
236
+ "$ref": "#/definitions/UserInputStep"
237
+ },
238
+ {
239
+ "$ref": "#/definitions/LLMExecutionStep"
240
+ },
241
+ {
242
+ "$ref": "#/definitions/UpdateTopicStep"
243
+ },
244
+ {
245
+ "$ref": "#/definitions/EventStep"
246
+ },
247
+ {
248
+ "$ref": "#/definitions/FunctionStep"
249
+ },
250
+ {
251
+ "$ref": "#/definitions/PlannerResponseStep"
252
+ }
253
+ ]
254
+ },
255
+ "UserInputStep": {
256
+ "type": "object",
257
+ "properties": {
258
+ "type": {
259
+ "type": "string",
260
+ "const": "UserInputStep"
261
+ },
262
+ "message": {
263
+ "type": "string"
264
+ }
265
+ },
266
+ "required": ["type", "message"],
267
+ "additionalProperties": false
268
+ },
269
+ "LLMExecutionStep": {
270
+ "type": "object",
271
+ "properties": {
272
+ "type": {
273
+ "type": "string",
274
+ "const": "LLMExecutionStep"
275
+ },
276
+ "promptName": {
277
+ "type": "string"
278
+ },
279
+ "promptContent": {
280
+ "type": "string"
281
+ },
282
+ "promptResponse": {
283
+ "type": "string"
284
+ },
285
+ "executionLatency": {
286
+ "type": "number"
287
+ },
288
+ "startExecutionTime": {
289
+ "type": "number"
290
+ },
291
+ "endExecutionTime": {
292
+ "type": "number"
293
+ }
294
+ },
295
+ "required": [
296
+ "type",
297
+ "promptName",
298
+ "promptContent",
299
+ "promptResponse",
300
+ "executionLatency",
301
+ "startExecutionTime",
302
+ "endExecutionTime"
303
+ ],
304
+ "additionalProperties": false
305
+ },
306
+ "UpdateTopicStep": {
307
+ "type": "object",
308
+ "properties": {
309
+ "type": {
310
+ "type": "string",
311
+ "const": "UpdateTopicStep"
312
+ },
313
+ "topic": {
314
+ "type": "string"
315
+ },
316
+ "description": {
317
+ "type": "string"
318
+ },
319
+ "job": {
320
+ "type": "string"
321
+ },
322
+ "instructions": {
323
+ "type": "array",
324
+ "items": {
325
+ "type": "string"
326
+ }
327
+ },
328
+ "availableFunctions": {
329
+ "type": "array",
330
+ "items": {}
331
+ }
332
+ },
333
+ "required": ["type", "topic", "description", "job", "instructions", "availableFunctions"],
334
+ "additionalProperties": false
335
+ },
336
+ "EventStep": {
337
+ "type": "object",
338
+ "properties": {
339
+ "type": {
340
+ "type": "string",
341
+ "const": "EventStep"
342
+ },
343
+ "eventName": {
344
+ "type": "string"
345
+ },
346
+ "isError": {
347
+ "type": "boolean"
348
+ },
349
+ "payload": {
350
+ "type": "object",
351
+ "properties": {
352
+ "oldTopic": {
353
+ "type": "string"
354
+ },
355
+ "newTopic": {
356
+ "type": "string"
357
+ }
358
+ },
359
+ "required": ["oldTopic", "newTopic"],
360
+ "additionalProperties": false
361
+ }
362
+ },
363
+ "required": ["type", "eventName", "isError", "payload"],
364
+ "additionalProperties": false
365
+ },
366
+ "FunctionStep": {
367
+ "type": "object",
368
+ "properties": {
369
+ "type": {
370
+ "type": "string",
371
+ "const": "FunctionStep"
372
+ },
373
+ "function": {
374
+ "type": "object",
375
+ "properties": {
376
+ "name": {
377
+ "type": "string"
378
+ },
379
+ "input": {
380
+ "type": "object",
381
+ "additionalProperties": {}
382
+ },
383
+ "output": {
384
+ "type": "object",
385
+ "additionalProperties": {}
386
+ }
387
+ },
388
+ "required": ["name", "input", "output"],
389
+ "additionalProperties": false
390
+ },
391
+ "executionLatency": {
392
+ "type": "number"
393
+ },
394
+ "startExecutionTime": {
395
+ "type": "number"
396
+ },
397
+ "endExecutionTime": {
398
+ "type": "number"
399
+ }
400
+ },
401
+ "required": ["type", "function", "executionLatency", "startExecutionTime", "endExecutionTime"],
402
+ "additionalProperties": false
403
+ },
404
+ "PlannerResponseStep": {
405
+ "type": "object",
406
+ "properties": {
407
+ "type": {
408
+ "type": "string",
409
+ "const": "PlannerResponseStep"
410
+ },
411
+ "message": {
412
+ "type": "string"
413
+ },
414
+ "responseType": {
415
+ "type": "string"
416
+ },
417
+ "isContentSafe": {
418
+ "type": "boolean"
419
+ },
420
+ "safetyScore": {
421
+ "type": "object",
422
+ "properties": {
423
+ "safety_score": {
424
+ "type": "number"
425
+ },
426
+ "category_scores": {
427
+ "type": "object",
428
+ "properties": {
429
+ "toxicity": {
430
+ "type": "number"
431
+ },
432
+ "hate": {
433
+ "type": "number"
434
+ },
435
+ "identity": {
436
+ "type": "number"
437
+ },
438
+ "violence": {
439
+ "type": "number"
440
+ },
441
+ "physical": {
442
+ "type": "number"
443
+ },
444
+ "sexual": {
445
+ "type": "number"
446
+ },
447
+ "profanity": {
448
+ "type": "number"
449
+ },
450
+ "biased": {
451
+ "type": "number"
452
+ }
453
+ },
454
+ "required": ["toxicity", "hate", "identity", "violence", "physical", "sexual", "profanity", "biased"],
455
+ "additionalProperties": false
456
+ }
457
+ },
458
+ "required": ["safety_score", "category_scores"],
459
+ "additionalProperties": false
460
+ }
461
+ },
462
+ "required": ["type", "message", "responseType", "isContentSafe", "safetyScore"],
463
+ "additionalProperties": false
464
+ }
465
+ }
466
+ }