@salesforce/plugin-agent 1.3.4 → 1.5.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/README.md +155 -20
- package/lib/agentTestCache.d.ts +17 -0
- package/lib/agentTestCache.js +53 -0
- package/lib/agentTestCache.js.map +1 -0
- package/lib/commands/agent/preview.d.ts +15 -0
- package/lib/commands/agent/preview.js +37 -0
- package/lib/commands/agent/preview.js.map +1 -0
- package/lib/commands/agent/test/cancel.d.ts +4 -3
- package/lib/commands/agent/test/cancel.js +15 -11
- package/lib/commands/agent/test/cancel.js.map +1 -1
- package/lib/commands/agent/test/results.d.ts +17 -0
- package/lib/commands/agent/test/results.js +44 -0
- package/lib/commands/agent/test/results.js.map +1 -0
- package/lib/commands/agent/test/resume.d.ts +21 -0
- package/lib/commands/agent/test/resume.js +72 -0
- package/lib/commands/agent/test/resume.js.map +1 -0
- package/lib/commands/agent/test/run.d.ts +6 -6
- package/lib/commands/agent/test/run.js +44 -23
- package/lib/commands/agent/test/run.js.map +1 -1
- package/lib/components/agent-preview-react.d.ts +9 -0
- package/lib/components/agent-preview-react.js +56 -0
- package/lib/components/agent-preview-react.js.map +1 -0
- package/lib/flags.d.ts +8 -0
- package/lib/flags.js +26 -0
- package/lib/flags.js.map +1 -0
- package/lib/handleTestResults.d.ts +8 -0
- package/lib/handleTestResults.js +44 -0
- package/lib/handleTestResults.js.map +1 -0
- package/lib/testStages.d.ts +27 -0
- package/lib/testStages.js +96 -0
- package/lib/testStages.js.map +1 -0
- package/messages/agent.preview.md +20 -0
- package/messages/agent.test.cancel.md +2 -2
- package/messages/agent.test.results.md +19 -0
- package/messages/agent.test.resume.md +29 -0
- package/messages/agent.test.run.md +5 -9
- package/messages/shared.md +11 -0
- package/npm-shrinkwrap.json +12262 -5563
- package/oclif.lock +835 -43
- package/oclif.manifest.json +322 -11
- package/package.json +26 -8
- package/schemas/agent-create.json +2 -4
- package/schemas/agent-generate-spec.json +2 -4
- package/schemas/agent-preview.json +9 -0
- package/schemas/agent-test-cancel.json +3 -6
- package/schemas/agent-test-results.json +145 -0
- package/schemas/agent-test-resume.json +19 -0
- package/schemas/agent-test-run.json +4 -13
package/oclif.manifest.json
CHANGED
|
@@ -83,6 +83,74 @@
|
|
|
83
83
|
"create:agent"
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
|
+
"agent:preview": {
|
|
87
|
+
"aliases": [],
|
|
88
|
+
"args": {},
|
|
89
|
+
"description": "XXX",
|
|
90
|
+
"examples": [
|
|
91
|
+
"<%= config.bin %> <%= command.id %> --agent HelpDeskAgent",
|
|
92
|
+
"<%= config.bin %> <%= command.id %> --agent ConciergeAgent --target-org production"
|
|
93
|
+
],
|
|
94
|
+
"flags": {
|
|
95
|
+
"flags-dir": {
|
|
96
|
+
"helpGroup": "GLOBAL",
|
|
97
|
+
"name": "flags-dir",
|
|
98
|
+
"summary": "Import flag values from a directory.",
|
|
99
|
+
"hasDynamicHelp": false,
|
|
100
|
+
"multiple": false,
|
|
101
|
+
"type": "option"
|
|
102
|
+
},
|
|
103
|
+
"target-org": {
|
|
104
|
+
"char": "o",
|
|
105
|
+
"name": "target-org",
|
|
106
|
+
"noCacheDefault": true,
|
|
107
|
+
"required": true,
|
|
108
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
109
|
+
"hasDynamicHelp": true,
|
|
110
|
+
"multiple": false,
|
|
111
|
+
"type": "option"
|
|
112
|
+
},
|
|
113
|
+
"api-version": {
|
|
114
|
+
"description": "Override the api version used for api requests made by this command",
|
|
115
|
+
"name": "api-version",
|
|
116
|
+
"hasDynamicHelp": false,
|
|
117
|
+
"multiple": false,
|
|
118
|
+
"type": "option"
|
|
119
|
+
},
|
|
120
|
+
"name": {
|
|
121
|
+
"char": "n",
|
|
122
|
+
"description": "the API name of the agent? (TBD based on agents library)",
|
|
123
|
+
"name": "name",
|
|
124
|
+
"required": true,
|
|
125
|
+
"summary": "The name of the agent you want to preview",
|
|
126
|
+
"hasDynamicHelp": false,
|
|
127
|
+
"multiple": false,
|
|
128
|
+
"type": "option"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"hasDynamicHelp": true,
|
|
132
|
+
"hiddenAliases": [],
|
|
133
|
+
"id": "agent:preview",
|
|
134
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
135
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
136
|
+
"pluginType": "core",
|
|
137
|
+
"strict": true,
|
|
138
|
+
"summary": "Interact with an active agent, as a user would, to preview responses",
|
|
139
|
+
"enableJsonFlag": false,
|
|
140
|
+
"requiresProject": true,
|
|
141
|
+
"isESM": true,
|
|
142
|
+
"relativePath": [
|
|
143
|
+
"lib",
|
|
144
|
+
"commands",
|
|
145
|
+
"agent",
|
|
146
|
+
"preview.js"
|
|
147
|
+
],
|
|
148
|
+
"aliasPermutations": [],
|
|
149
|
+
"permutations": [
|
|
150
|
+
"agent:preview",
|
|
151
|
+
"preview:agent"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
86
154
|
"agent:generate:spec": {
|
|
87
155
|
"aliases": [],
|
|
88
156
|
"args": {},
|
|
@@ -216,7 +284,7 @@
|
|
|
216
284
|
"args": {},
|
|
217
285
|
"description": "Cancel a running test for an Agent, providing the AiEvaluation ID.",
|
|
218
286
|
"examples": [
|
|
219
|
-
"Cancel a test for an Agent:\n<%= config.bin %> <%= command.id %> --id AiEvalId"
|
|
287
|
+
"Cancel a test for an Agent:\n<%= config.bin %> <%= command.id %> --job-id AiEvalId"
|
|
220
288
|
],
|
|
221
289
|
"flags": {
|
|
222
290
|
"json": {
|
|
@@ -244,10 +312,16 @@
|
|
|
244
312
|
"multiple": false,
|
|
245
313
|
"type": "option"
|
|
246
314
|
},
|
|
315
|
+
"api-version": {
|
|
316
|
+
"description": "Override the api version used for api requests made by this command",
|
|
317
|
+
"name": "api-version",
|
|
318
|
+
"hasDynamicHelp": false,
|
|
319
|
+
"multiple": false,
|
|
320
|
+
"type": "option"
|
|
321
|
+
},
|
|
247
322
|
"job-id": {
|
|
248
323
|
"char": "i",
|
|
249
324
|
"name": "job-id",
|
|
250
|
-
"required": true,
|
|
251
325
|
"summary": "The AiEvaluation ID.",
|
|
252
326
|
"hasDynamicHelp": false,
|
|
253
327
|
"multiple": false,
|
|
@@ -289,12 +363,228 @@
|
|
|
289
363
|
"cancel:test:agent"
|
|
290
364
|
]
|
|
291
365
|
},
|
|
366
|
+
"agent:test:results": {
|
|
367
|
+
"aliases": [],
|
|
368
|
+
"args": {},
|
|
369
|
+
"description": "Provide the AiEvaluation ID to get the results of a test evaluation.",
|
|
370
|
+
"examples": [
|
|
371
|
+
"<%= config.bin %> <%= command.id %> --job-id AiEvalId"
|
|
372
|
+
],
|
|
373
|
+
"flags": {
|
|
374
|
+
"json": {
|
|
375
|
+
"description": "Format output as json.",
|
|
376
|
+
"helpGroup": "GLOBAL",
|
|
377
|
+
"name": "json",
|
|
378
|
+
"allowNo": false,
|
|
379
|
+
"type": "boolean"
|
|
380
|
+
},
|
|
381
|
+
"flags-dir": {
|
|
382
|
+
"helpGroup": "GLOBAL",
|
|
383
|
+
"name": "flags-dir",
|
|
384
|
+
"summary": "Import flag values from a directory.",
|
|
385
|
+
"hasDynamicHelp": false,
|
|
386
|
+
"multiple": false,
|
|
387
|
+
"type": "option"
|
|
388
|
+
},
|
|
389
|
+
"target-org": {
|
|
390
|
+
"char": "o",
|
|
391
|
+
"name": "target-org",
|
|
392
|
+
"noCacheDefault": true,
|
|
393
|
+
"required": true,
|
|
394
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
395
|
+
"hasDynamicHelp": true,
|
|
396
|
+
"multiple": false,
|
|
397
|
+
"type": "option"
|
|
398
|
+
},
|
|
399
|
+
"api-version": {
|
|
400
|
+
"description": "Override the api version used for api requests made by this command",
|
|
401
|
+
"name": "api-version",
|
|
402
|
+
"hasDynamicHelp": false,
|
|
403
|
+
"multiple": false,
|
|
404
|
+
"type": "option"
|
|
405
|
+
},
|
|
406
|
+
"job-id": {
|
|
407
|
+
"char": "i",
|
|
408
|
+
"name": "job-id",
|
|
409
|
+
"required": true,
|
|
410
|
+
"summary": "The AiEvaluation ID.",
|
|
411
|
+
"hasDynamicHelp": false,
|
|
412
|
+
"multiple": false,
|
|
413
|
+
"type": "option"
|
|
414
|
+
},
|
|
415
|
+
"result-format": {
|
|
416
|
+
"name": "result-format",
|
|
417
|
+
"summary": "Format of the test run results.",
|
|
418
|
+
"default": "human",
|
|
419
|
+
"hasDynamicHelp": false,
|
|
420
|
+
"multiple": false,
|
|
421
|
+
"options": [
|
|
422
|
+
"json",
|
|
423
|
+
"human",
|
|
424
|
+
"junit"
|
|
425
|
+
],
|
|
426
|
+
"type": "option"
|
|
427
|
+
},
|
|
428
|
+
"output-dir": {
|
|
429
|
+
"char": "f",
|
|
430
|
+
"description": "If test run is complete, write the results to the specified directory. If the tests are still running, the test results will not be written.",
|
|
431
|
+
"name": "output-dir",
|
|
432
|
+
"summary": "Directory to write the test results to.",
|
|
433
|
+
"hasDynamicHelp": false,
|
|
434
|
+
"multiple": false,
|
|
435
|
+
"type": "option"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"hasDynamicHelp": true,
|
|
439
|
+
"hiddenAliases": [],
|
|
440
|
+
"id": "agent:test:results",
|
|
441
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
442
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
443
|
+
"pluginType": "core",
|
|
444
|
+
"state": "beta",
|
|
445
|
+
"strict": true,
|
|
446
|
+
"summary": "Get the results of a test evaluation.",
|
|
447
|
+
"enableJsonFlag": true,
|
|
448
|
+
"isESM": true,
|
|
449
|
+
"relativePath": [
|
|
450
|
+
"lib",
|
|
451
|
+
"commands",
|
|
452
|
+
"agent",
|
|
453
|
+
"test",
|
|
454
|
+
"results.js"
|
|
455
|
+
],
|
|
456
|
+
"aliasPermutations": [],
|
|
457
|
+
"permutations": [
|
|
458
|
+
"agent:test:results",
|
|
459
|
+
"test:agent:results",
|
|
460
|
+
"test:results:agent",
|
|
461
|
+
"agent:results:test",
|
|
462
|
+
"results:agent:test",
|
|
463
|
+
"results:test:agent"
|
|
464
|
+
]
|
|
465
|
+
},
|
|
466
|
+
"agent:test:resume": {
|
|
467
|
+
"aliases": [],
|
|
468
|
+
"args": {},
|
|
469
|
+
"description": "Resume a running test for an Agent, providing the AiEvaluation ID.",
|
|
470
|
+
"examples": [
|
|
471
|
+
"Resume a test for an Agent:\n<%= config.bin %> <%= command.id %> --job-id AiEvalId"
|
|
472
|
+
],
|
|
473
|
+
"flags": {
|
|
474
|
+
"json": {
|
|
475
|
+
"description": "Format output as json.",
|
|
476
|
+
"helpGroup": "GLOBAL",
|
|
477
|
+
"name": "json",
|
|
478
|
+
"allowNo": false,
|
|
479
|
+
"type": "boolean"
|
|
480
|
+
},
|
|
481
|
+
"flags-dir": {
|
|
482
|
+
"helpGroup": "GLOBAL",
|
|
483
|
+
"name": "flags-dir",
|
|
484
|
+
"summary": "Import flag values from a directory.",
|
|
485
|
+
"hasDynamicHelp": false,
|
|
486
|
+
"multiple": false,
|
|
487
|
+
"type": "option"
|
|
488
|
+
},
|
|
489
|
+
"target-org": {
|
|
490
|
+
"char": "o",
|
|
491
|
+
"name": "target-org",
|
|
492
|
+
"noCacheDefault": true,
|
|
493
|
+
"required": true,
|
|
494
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
495
|
+
"hasDynamicHelp": true,
|
|
496
|
+
"multiple": false,
|
|
497
|
+
"type": "option"
|
|
498
|
+
},
|
|
499
|
+
"api-version": {
|
|
500
|
+
"description": "Override the api version used for api requests made by this command",
|
|
501
|
+
"name": "api-version",
|
|
502
|
+
"hasDynamicHelp": false,
|
|
503
|
+
"multiple": false,
|
|
504
|
+
"type": "option"
|
|
505
|
+
},
|
|
506
|
+
"job-id": {
|
|
507
|
+
"char": "i",
|
|
508
|
+
"name": "job-id",
|
|
509
|
+
"summary": "The AiEvaluation ID.",
|
|
510
|
+
"hasDynamicHelp": false,
|
|
511
|
+
"multiple": false,
|
|
512
|
+
"type": "option"
|
|
513
|
+
},
|
|
514
|
+
"use-most-recent": {
|
|
515
|
+
"char": "r",
|
|
516
|
+
"name": "use-most-recent",
|
|
517
|
+
"summary": "Use the job ID of the most recent test evaluation.",
|
|
518
|
+
"allowNo": false,
|
|
519
|
+
"type": "boolean"
|
|
520
|
+
},
|
|
521
|
+
"wait": {
|
|
522
|
+
"char": "w",
|
|
523
|
+
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you.",
|
|
524
|
+
"name": "wait",
|
|
525
|
+
"summary": "Number of minutes to wait for the command to complete and display results to the terminal window.",
|
|
526
|
+
"default": "5 minutes",
|
|
527
|
+
"hasDynamicHelp": true,
|
|
528
|
+
"multiple": false,
|
|
529
|
+
"type": "option"
|
|
530
|
+
},
|
|
531
|
+
"result-format": {
|
|
532
|
+
"name": "result-format",
|
|
533
|
+
"summary": "Format of the test run results.",
|
|
534
|
+
"default": "human",
|
|
535
|
+
"hasDynamicHelp": false,
|
|
536
|
+
"multiple": false,
|
|
537
|
+
"options": [
|
|
538
|
+
"json",
|
|
539
|
+
"human",
|
|
540
|
+
"junit"
|
|
541
|
+
],
|
|
542
|
+
"type": "option"
|
|
543
|
+
},
|
|
544
|
+
"output-dir": {
|
|
545
|
+
"char": "f",
|
|
546
|
+
"description": "If test run is complete, write the results to the specified directory. If the tests are still running, the test results will not be written.",
|
|
547
|
+
"name": "output-dir",
|
|
548
|
+
"summary": "Directory to write the test results to.",
|
|
549
|
+
"hasDynamicHelp": false,
|
|
550
|
+
"multiple": false,
|
|
551
|
+
"type": "option"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"hasDynamicHelp": true,
|
|
555
|
+
"hiddenAliases": [],
|
|
556
|
+
"id": "agent:test:resume",
|
|
557
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
558
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
559
|
+
"pluginType": "core",
|
|
560
|
+
"state": "beta",
|
|
561
|
+
"strict": true,
|
|
562
|
+
"summary": "Resume a running test for an Agent.",
|
|
563
|
+
"enableJsonFlag": true,
|
|
564
|
+
"isESM": true,
|
|
565
|
+
"relativePath": [
|
|
566
|
+
"lib",
|
|
567
|
+
"commands",
|
|
568
|
+
"agent",
|
|
569
|
+
"test",
|
|
570
|
+
"resume.js"
|
|
571
|
+
],
|
|
572
|
+
"aliasPermutations": [],
|
|
573
|
+
"permutations": [
|
|
574
|
+
"agent:test:resume",
|
|
575
|
+
"test:agent:resume",
|
|
576
|
+
"test:resume:agent",
|
|
577
|
+
"agent:resume:test",
|
|
578
|
+
"resume:agent:test",
|
|
579
|
+
"resume:test:agent"
|
|
580
|
+
]
|
|
581
|
+
},
|
|
292
582
|
"agent:test:run": {
|
|
293
583
|
"aliases": [],
|
|
294
584
|
"args": {},
|
|
295
585
|
"description": "Start a test for an Agent, providing the AiEvalDefinitionVersion ID. Returns the job ID.",
|
|
296
586
|
"examples": [
|
|
297
|
-
"Start a test for an Agent:\n<%= config.bin %> <%= command.id %> --
|
|
587
|
+
"Start a test for an Agent:\n<%= config.bin %> <%= command.id %> --name AiEvalDefVerId"
|
|
298
588
|
],
|
|
299
589
|
"flags": {
|
|
300
590
|
"json": {
|
|
@@ -322,12 +612,19 @@
|
|
|
322
612
|
"multiple": false,
|
|
323
613
|
"type": "option"
|
|
324
614
|
},
|
|
325
|
-
"
|
|
326
|
-
"
|
|
327
|
-
"
|
|
328
|
-
"
|
|
615
|
+
"api-version": {
|
|
616
|
+
"description": "Override the api version used for api requests made by this command",
|
|
617
|
+
"name": "api-version",
|
|
618
|
+
"hasDynamicHelp": false,
|
|
619
|
+
"multiple": false,
|
|
620
|
+
"type": "option"
|
|
621
|
+
},
|
|
622
|
+
"name": {
|
|
623
|
+
"char": "n",
|
|
624
|
+
"description": "The name of the AiEvaluationDefinition to start.",
|
|
625
|
+
"name": "name",
|
|
329
626
|
"required": true,
|
|
330
|
-
"summary": "The
|
|
627
|
+
"summary": "The name of the AiEvaluationDefinition to start.",
|
|
331
628
|
"hasDynamicHelp": false,
|
|
332
629
|
"multiple": false,
|
|
333
630
|
"type": "option"
|
|
@@ -341,10 +638,24 @@
|
|
|
341
638
|
"multiple": false,
|
|
342
639
|
"type": "option"
|
|
343
640
|
},
|
|
641
|
+
"result-format": {
|
|
642
|
+
"name": "result-format",
|
|
643
|
+
"summary": "Format of the test run results.",
|
|
644
|
+
"default": "human",
|
|
645
|
+
"hasDynamicHelp": false,
|
|
646
|
+
"multiple": false,
|
|
647
|
+
"options": [
|
|
648
|
+
"json",
|
|
649
|
+
"human",
|
|
650
|
+
"junit"
|
|
651
|
+
],
|
|
652
|
+
"type": "option"
|
|
653
|
+
},
|
|
344
654
|
"output-dir": {
|
|
345
|
-
"char": "
|
|
655
|
+
"char": "f",
|
|
656
|
+
"description": "If test run is complete, write the results to the specified directory. If the tests are still running, the test results will not be written.",
|
|
346
657
|
"name": "output-dir",
|
|
347
|
-
"summary": "Directory
|
|
658
|
+
"summary": "Directory to write the test results to.",
|
|
348
659
|
"hasDynamicHelp": false,
|
|
349
660
|
"multiple": false,
|
|
350
661
|
"type": "option"
|
|
@@ -379,5 +690,5 @@
|
|
|
379
690
|
]
|
|
380
691
|
}
|
|
381
692
|
},
|
|
382
|
-
"version": "1.
|
|
693
|
+
"version": "1.5.0"
|
|
383
694
|
}
|
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.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -9,18 +9,27 @@
|
|
|
9
9
|
"@inquirer/input": "^4.0.1",
|
|
10
10
|
"@inquirer/select": "^4.0.1",
|
|
11
11
|
"@oclif/core": "^4",
|
|
12
|
-
"@salesforce/agents": "^0.2.4",
|
|
13
12
|
"@oclif/multi-stage-output": "^0.7.12",
|
|
14
|
-
"@salesforce/
|
|
13
|
+
"@salesforce/agents": "^0.4.0",
|
|
14
|
+
"@salesforce/core": "^8.8.0",
|
|
15
15
|
"@salesforce/kit": "^3.2.1",
|
|
16
|
-
"@salesforce/sf-plugins-core": "^12",
|
|
17
|
-
"ansis": "^3.3.2"
|
|
16
|
+
"@salesforce/sf-plugins-core": "^12.1.0",
|
|
17
|
+
"ansis": "^3.3.2",
|
|
18
|
+
"ink-text-input": "^6.0.0",
|
|
19
|
+
"ink": "^5.0.1",
|
|
20
|
+
"react": "^18.3.1"
|
|
18
21
|
},
|
|
19
22
|
"devDependencies": {
|
|
20
23
|
"@oclif/plugin-command-snapshot": "^5.2.19",
|
|
24
|
+
"@oclif/test": "^4.1.0",
|
|
21
25
|
"@salesforce/cli-plugins-testkit": "^5.3.35",
|
|
22
26
|
"@salesforce/dev-scripts": "^10.2.10",
|
|
23
27
|
"@salesforce/plugin-command-reference": "^3.1.29",
|
|
28
|
+
"@types/react": "^18.3.3",
|
|
29
|
+
"eslint-config-xo-react": "^0.27.0",
|
|
30
|
+
"eslint-config-xo": "^0.45.0",
|
|
31
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
32
|
+
"eslint-plugin-react": "^7.34.3",
|
|
24
33
|
"eslint-plugin-sf-plugin": "^1.20.9",
|
|
25
34
|
"oclif": "^4.15.12",
|
|
26
35
|
"ts-node": "^10.9.2",
|
|
@@ -59,7 +68,16 @@
|
|
|
59
68
|
],
|
|
60
69
|
"topics": {
|
|
61
70
|
"agent": {
|
|
62
|
-
"description": "Commands to work with agents."
|
|
71
|
+
"description": "Commands to work with agents.",
|
|
72
|
+
"external": true,
|
|
73
|
+
"subtopics": {
|
|
74
|
+
"test": {
|
|
75
|
+
"external": true
|
|
76
|
+
},
|
|
77
|
+
"generate": {
|
|
78
|
+
"external": true
|
|
79
|
+
}
|
|
80
|
+
}
|
|
63
81
|
}
|
|
64
82
|
},
|
|
65
83
|
"flexibleTaxonomy": true
|
|
@@ -203,7 +221,7 @@
|
|
|
203
221
|
"exports": "./lib/index.js",
|
|
204
222
|
"type": "module",
|
|
205
223
|
"sfdx": {
|
|
206
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.
|
|
207
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.
|
|
224
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.5.0.crt",
|
|
225
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.5.0.sig"
|
|
208
226
|
}
|
|
209
227
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"AgentTestCancelResult": {
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
-
"
|
|
8
|
+
"aiEvaluationId": {
|
|
9
9
|
"type": "string"
|
|
10
10
|
},
|
|
11
11
|
"success": {
|
|
@@ -18,11 +18,8 @@
|
|
|
18
18
|
"type": "string"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
"required": [
|
|
22
|
-
"jobId",
|
|
23
|
-
"success"
|
|
24
|
-
],
|
|
21
|
+
"required": ["aiEvaluationId", "success"],
|
|
25
22
|
"additionalProperties": false
|
|
26
23
|
}
|
|
27
24
|
}
|
|
28
|
-
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/AgentTestResultsResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AgentTestResultsResult": {
|
|
6
|
+
"$ref": "#/definitions/AgentTestDetailsResponse"
|
|
7
|
+
},
|
|
8
|
+
"AgentTestDetailsResponse": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"status": {
|
|
12
|
+
"$ref": "#/definitions/TestStatus"
|
|
13
|
+
},
|
|
14
|
+
"startTime": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"endTime": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"errorMessage": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"testCases": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"$ref": "#/definitions/TestCaseResult"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": ["status", "startTime", "testCases"],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
},
|
|
33
|
+
"TestStatus": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": ["NEW", "IN_PROGRESS", "COMPLETED", "ERROR"]
|
|
36
|
+
},
|
|
37
|
+
"TestCaseResult": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"status": {
|
|
41
|
+
"$ref": "#/definitions/TestStatus"
|
|
42
|
+
},
|
|
43
|
+
"number": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"startTime": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"endTime": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"generatedData": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"type": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"const": "AGENT"
|
|
58
|
+
},
|
|
59
|
+
"actionsSequence": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"outcome": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"enum": ["Success", "Failure"]
|
|
68
|
+
},
|
|
69
|
+
"topic": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"inputTokensCount": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"outputTokensCount": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": ["type", "actionsSequence", "outcome", "topic", "inputTokensCount", "outputTokensCount"],
|
|
80
|
+
"additionalProperties": false
|
|
81
|
+
},
|
|
82
|
+
"expectationResults": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"items": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"name": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"actualValue": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"expectedValue": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"score": {
|
|
97
|
+
"type": "number"
|
|
98
|
+
},
|
|
99
|
+
"result": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"enum": ["Passed", "Failed"]
|
|
102
|
+
},
|
|
103
|
+
"metricLabel": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"enum": ["Accuracy", "Precision"]
|
|
106
|
+
},
|
|
107
|
+
"metricExplainability": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"status": {
|
|
111
|
+
"$ref": "#/definitions/TestStatus"
|
|
112
|
+
},
|
|
113
|
+
"startTime": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
"endTime": {
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"errorCode": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"errorMessage": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"required": [
|
|
127
|
+
"name",
|
|
128
|
+
"actualValue",
|
|
129
|
+
"expectedValue",
|
|
130
|
+
"score",
|
|
131
|
+
"result",
|
|
132
|
+
"metricLabel",
|
|
133
|
+
"metricExplainability",
|
|
134
|
+
"status",
|
|
135
|
+
"startTime"
|
|
136
|
+
],
|
|
137
|
+
"additionalProperties": false
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": ["status", "number", "startTime", "generatedData", "expectationResults"],
|
|
142
|
+
"additionalProperties": false
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/AgentTestResumeResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AgentTestResumeResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"aiEvaluationId": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"status": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": ["aiEvaluationId", "status"],
|
|
16
|
+
"additionalProperties": false
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|