@salesforce/plugin-agent 1.3.3 → 1.4.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 +104 -24
- package/lib/agentTestCache.d.ts +17 -0
- package/lib/agentTestCache.js +53 -0
- package/lib/agentTestCache.js.map +1 -0
- package/lib/commands/agent/generate/spec.js +2 -2
- package/lib/commands/agent/generate/spec.js.map +1 -1
- 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 +16 -0
- package/lib/commands/agent/test/results.js +38 -0
- package/lib/commands/agent/test/results.js.map +1 -0
- package/lib/commands/agent/test/resume.d.ts +20 -0
- package/lib/commands/agent/test/resume.js +66 -0
- package/lib/commands/agent/test/resume.js.map +1 -0
- package/lib/commands/agent/test/run.d.ts +6 -7
- package/lib/commands/agent/test/run.js +38 -23
- package/lib/commands/agent/test/run.js.map +1 -1
- package/lib/flags.d.ts +4 -0
- package/lib/flags.js +21 -0
- package/lib/flags.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.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 +3 -0
- package/npm-shrinkwrap.json +26 -8
- package/oclif.lock +18 -35
- package/oclif.manifest.json +228 -15
- package/package.json +17 -7
- package/schemas/agent-create.json +2 -4
- package/schemas/agent-generate-spec.json +2 -4
- 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
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
"hasDynamicHelp": false,
|
|
131
131
|
"multiple": false,
|
|
132
132
|
"options": [
|
|
133
|
-
"
|
|
134
|
-
"
|
|
133
|
+
"customer",
|
|
134
|
+
"internal"
|
|
135
135
|
],
|
|
136
136
|
"type": "option"
|
|
137
137
|
},
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
"args": {},
|
|
217
217
|
"description": "Cancel a running test for an Agent, providing the AiEvaluation ID.",
|
|
218
218
|
"examples": [
|
|
219
|
-
"Cancel a test for an Agent:\n<%= config.bin %> <%= command.id %> --id AiEvalId"
|
|
219
|
+
"Cancel a test for an Agent:\n<%= config.bin %> <%= command.id %> --job-id AiEvalId"
|
|
220
220
|
],
|
|
221
221
|
"flags": {
|
|
222
222
|
"json": {
|
|
@@ -244,10 +244,16 @@
|
|
|
244
244
|
"multiple": false,
|
|
245
245
|
"type": "option"
|
|
246
246
|
},
|
|
247
|
+
"api-version": {
|
|
248
|
+
"description": "Override the api version used for api requests made by this command",
|
|
249
|
+
"name": "api-version",
|
|
250
|
+
"hasDynamicHelp": false,
|
|
251
|
+
"multiple": false,
|
|
252
|
+
"type": "option"
|
|
253
|
+
},
|
|
247
254
|
"job-id": {
|
|
248
255
|
"char": "i",
|
|
249
256
|
"name": "job-id",
|
|
250
|
-
"required": true,
|
|
251
257
|
"summary": "The AiEvaluation ID.",
|
|
252
258
|
"hasDynamicHelp": false,
|
|
253
259
|
"multiple": false,
|
|
@@ -289,12 +295,208 @@
|
|
|
289
295
|
"cancel:test:agent"
|
|
290
296
|
]
|
|
291
297
|
},
|
|
298
|
+
"agent:test:results": {
|
|
299
|
+
"aliases": [],
|
|
300
|
+
"args": {},
|
|
301
|
+
"description": "Provide the AiEvaluation ID to get the results of a test evaluation.",
|
|
302
|
+
"examples": [
|
|
303
|
+
"<%= config.bin %> <%= command.id %> --job-id AiEvalId"
|
|
304
|
+
],
|
|
305
|
+
"flags": {
|
|
306
|
+
"json": {
|
|
307
|
+
"description": "Format output as json.",
|
|
308
|
+
"helpGroup": "GLOBAL",
|
|
309
|
+
"name": "json",
|
|
310
|
+
"allowNo": false,
|
|
311
|
+
"type": "boolean"
|
|
312
|
+
},
|
|
313
|
+
"flags-dir": {
|
|
314
|
+
"helpGroup": "GLOBAL",
|
|
315
|
+
"name": "flags-dir",
|
|
316
|
+
"summary": "Import flag values from a directory.",
|
|
317
|
+
"hasDynamicHelp": false,
|
|
318
|
+
"multiple": false,
|
|
319
|
+
"type": "option"
|
|
320
|
+
},
|
|
321
|
+
"target-org": {
|
|
322
|
+
"char": "o",
|
|
323
|
+
"name": "target-org",
|
|
324
|
+
"noCacheDefault": true,
|
|
325
|
+
"required": true,
|
|
326
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
327
|
+
"hasDynamicHelp": true,
|
|
328
|
+
"multiple": false,
|
|
329
|
+
"type": "option"
|
|
330
|
+
},
|
|
331
|
+
"api-version": {
|
|
332
|
+
"description": "Override the api version used for api requests made by this command",
|
|
333
|
+
"name": "api-version",
|
|
334
|
+
"hasDynamicHelp": false,
|
|
335
|
+
"multiple": false,
|
|
336
|
+
"type": "option"
|
|
337
|
+
},
|
|
338
|
+
"job-id": {
|
|
339
|
+
"char": "i",
|
|
340
|
+
"name": "job-id",
|
|
341
|
+
"required": true,
|
|
342
|
+
"summary": "The AiEvaluation ID.",
|
|
343
|
+
"hasDynamicHelp": false,
|
|
344
|
+
"multiple": false,
|
|
345
|
+
"type": "option"
|
|
346
|
+
},
|
|
347
|
+
"result-format": {
|
|
348
|
+
"name": "result-format",
|
|
349
|
+
"summary": "Format of the test run results.",
|
|
350
|
+
"default": "human",
|
|
351
|
+
"hasDynamicHelp": false,
|
|
352
|
+
"multiple": false,
|
|
353
|
+
"options": [
|
|
354
|
+
"json",
|
|
355
|
+
"human"
|
|
356
|
+
],
|
|
357
|
+
"type": "option"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"hasDynamicHelp": true,
|
|
361
|
+
"hiddenAliases": [],
|
|
362
|
+
"id": "agent:test:results",
|
|
363
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
364
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
365
|
+
"pluginType": "core",
|
|
366
|
+
"state": "beta",
|
|
367
|
+
"strict": true,
|
|
368
|
+
"summary": "Get the results of a test evaluation.",
|
|
369
|
+
"enableJsonFlag": true,
|
|
370
|
+
"isESM": true,
|
|
371
|
+
"relativePath": [
|
|
372
|
+
"lib",
|
|
373
|
+
"commands",
|
|
374
|
+
"agent",
|
|
375
|
+
"test",
|
|
376
|
+
"results.js"
|
|
377
|
+
],
|
|
378
|
+
"aliasPermutations": [],
|
|
379
|
+
"permutations": [
|
|
380
|
+
"agent:test:results",
|
|
381
|
+
"test:agent:results",
|
|
382
|
+
"test:results:agent",
|
|
383
|
+
"agent:results:test",
|
|
384
|
+
"results:agent:test",
|
|
385
|
+
"results:test:agent"
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
"agent:test:resume": {
|
|
389
|
+
"aliases": [],
|
|
390
|
+
"args": {},
|
|
391
|
+
"description": "Resume a running test for an Agent, providing the AiEvaluation ID.",
|
|
392
|
+
"examples": [
|
|
393
|
+
"Resume a test for an Agent:\n<%= config.bin %> <%= command.id %> --job-id AiEvalId"
|
|
394
|
+
],
|
|
395
|
+
"flags": {
|
|
396
|
+
"json": {
|
|
397
|
+
"description": "Format output as json.",
|
|
398
|
+
"helpGroup": "GLOBAL",
|
|
399
|
+
"name": "json",
|
|
400
|
+
"allowNo": false,
|
|
401
|
+
"type": "boolean"
|
|
402
|
+
},
|
|
403
|
+
"flags-dir": {
|
|
404
|
+
"helpGroup": "GLOBAL",
|
|
405
|
+
"name": "flags-dir",
|
|
406
|
+
"summary": "Import flag values from a directory.",
|
|
407
|
+
"hasDynamicHelp": false,
|
|
408
|
+
"multiple": false,
|
|
409
|
+
"type": "option"
|
|
410
|
+
},
|
|
411
|
+
"target-org": {
|
|
412
|
+
"char": "o",
|
|
413
|
+
"name": "target-org",
|
|
414
|
+
"noCacheDefault": true,
|
|
415
|
+
"required": true,
|
|
416
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
417
|
+
"hasDynamicHelp": true,
|
|
418
|
+
"multiple": false,
|
|
419
|
+
"type": "option"
|
|
420
|
+
},
|
|
421
|
+
"api-version": {
|
|
422
|
+
"description": "Override the api version used for api requests made by this command",
|
|
423
|
+
"name": "api-version",
|
|
424
|
+
"hasDynamicHelp": false,
|
|
425
|
+
"multiple": false,
|
|
426
|
+
"type": "option"
|
|
427
|
+
},
|
|
428
|
+
"job-id": {
|
|
429
|
+
"char": "i",
|
|
430
|
+
"name": "job-id",
|
|
431
|
+
"summary": "The AiEvaluation ID.",
|
|
432
|
+
"hasDynamicHelp": false,
|
|
433
|
+
"multiple": false,
|
|
434
|
+
"type": "option"
|
|
435
|
+
},
|
|
436
|
+
"use-most-recent": {
|
|
437
|
+
"char": "r",
|
|
438
|
+
"name": "use-most-recent",
|
|
439
|
+
"summary": "Use the job ID of the most recent test evaluation.",
|
|
440
|
+
"allowNo": false,
|
|
441
|
+
"type": "boolean"
|
|
442
|
+
},
|
|
443
|
+
"wait": {
|
|
444
|
+
"char": "w",
|
|
445
|
+
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you.",
|
|
446
|
+
"name": "wait",
|
|
447
|
+
"summary": "Number of minutes to wait for the command to complete and display results to the terminal window.",
|
|
448
|
+
"default": "5 minutes",
|
|
449
|
+
"hasDynamicHelp": true,
|
|
450
|
+
"multiple": false,
|
|
451
|
+
"type": "option"
|
|
452
|
+
},
|
|
453
|
+
"result-format": {
|
|
454
|
+
"name": "result-format",
|
|
455
|
+
"summary": "Format of the test run results.",
|
|
456
|
+
"default": "human",
|
|
457
|
+
"hasDynamicHelp": false,
|
|
458
|
+
"multiple": false,
|
|
459
|
+
"options": [
|
|
460
|
+
"json",
|
|
461
|
+
"human"
|
|
462
|
+
],
|
|
463
|
+
"type": "option"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"hasDynamicHelp": true,
|
|
467
|
+
"hiddenAliases": [],
|
|
468
|
+
"id": "agent:test:resume",
|
|
469
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
470
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
471
|
+
"pluginType": "core",
|
|
472
|
+
"state": "beta",
|
|
473
|
+
"strict": true,
|
|
474
|
+
"summary": "Resume a running test for an Agent.",
|
|
475
|
+
"enableJsonFlag": true,
|
|
476
|
+
"isESM": true,
|
|
477
|
+
"relativePath": [
|
|
478
|
+
"lib",
|
|
479
|
+
"commands",
|
|
480
|
+
"agent",
|
|
481
|
+
"test",
|
|
482
|
+
"resume.js"
|
|
483
|
+
],
|
|
484
|
+
"aliasPermutations": [],
|
|
485
|
+
"permutations": [
|
|
486
|
+
"agent:test:resume",
|
|
487
|
+
"test:agent:resume",
|
|
488
|
+
"test:resume:agent",
|
|
489
|
+
"agent:resume:test",
|
|
490
|
+
"resume:agent:test",
|
|
491
|
+
"resume:test:agent"
|
|
492
|
+
]
|
|
493
|
+
},
|
|
292
494
|
"agent:test:run": {
|
|
293
495
|
"aliases": [],
|
|
294
496
|
"args": {},
|
|
295
497
|
"description": "Start a test for an Agent, providing the AiEvalDefinitionVersion ID. Returns the job ID.",
|
|
296
498
|
"examples": [
|
|
297
|
-
"Start a test for an Agent:\n<%= config.bin %> <%= command.id %> --
|
|
499
|
+
"Start a test for an Agent:\n<%= config.bin %> <%= command.id %> --name AiEvalDefVerId"
|
|
298
500
|
],
|
|
299
501
|
"flags": {
|
|
300
502
|
"json": {
|
|
@@ -322,12 +524,19 @@
|
|
|
322
524
|
"multiple": false,
|
|
323
525
|
"type": "option"
|
|
324
526
|
},
|
|
325
|
-
"
|
|
326
|
-
"
|
|
327
|
-
"
|
|
328
|
-
"
|
|
527
|
+
"api-version": {
|
|
528
|
+
"description": "Override the api version used for api requests made by this command",
|
|
529
|
+
"name": "api-version",
|
|
530
|
+
"hasDynamicHelp": false,
|
|
531
|
+
"multiple": false,
|
|
532
|
+
"type": "option"
|
|
533
|
+
},
|
|
534
|
+
"name": {
|
|
535
|
+
"char": "n",
|
|
536
|
+
"description": "The name of the AiEvaluationDefinition to start.",
|
|
537
|
+
"name": "name",
|
|
329
538
|
"required": true,
|
|
330
|
-
"summary": "The
|
|
539
|
+
"summary": "The name of the AiEvaluationDefinition to start.",
|
|
331
540
|
"hasDynamicHelp": false,
|
|
332
541
|
"multiple": false,
|
|
333
542
|
"type": "option"
|
|
@@ -341,12 +550,16 @@
|
|
|
341
550
|
"multiple": false,
|
|
342
551
|
"type": "option"
|
|
343
552
|
},
|
|
344
|
-
"
|
|
345
|
-
"
|
|
346
|
-
"
|
|
347
|
-
"
|
|
553
|
+
"result-format": {
|
|
554
|
+
"name": "result-format",
|
|
555
|
+
"summary": "Format of the test run results.",
|
|
556
|
+
"default": "human",
|
|
348
557
|
"hasDynamicHelp": false,
|
|
349
558
|
"multiple": false,
|
|
559
|
+
"options": [
|
|
560
|
+
"json",
|
|
561
|
+
"human"
|
|
562
|
+
],
|
|
350
563
|
"type": "option"
|
|
351
564
|
}
|
|
352
565
|
},
|
|
@@ -379,5 +592,5 @@
|
|
|
379
592
|
]
|
|
380
593
|
}
|
|
381
594
|
},
|
|
382
|
-
"version": "1.
|
|
595
|
+
"version": "1.4.0"
|
|
383
596
|
}
|
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.4.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -9,15 +9,16 @@
|
|
|
9
9
|
"@inquirer/input": "^4.0.1",
|
|
10
10
|
"@inquirer/select": "^4.0.1",
|
|
11
11
|
"@oclif/core": "^4",
|
|
12
|
-
"@salesforce/agents": "^0.2.3",
|
|
13
12
|
"@oclif/multi-stage-output": "^0.7.12",
|
|
14
|
-
"@salesforce/
|
|
13
|
+
"@salesforce/agents": "^0.3.0",
|
|
14
|
+
"@salesforce/core": "^8.8.0",
|
|
15
15
|
"@salesforce/kit": "^3.2.1",
|
|
16
|
-
"@salesforce/sf-plugins-core": "^12",
|
|
16
|
+
"@salesforce/sf-plugins-core": "^12.1.0",
|
|
17
17
|
"ansis": "^3.3.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@oclif/plugin-command-snapshot": "^5.2.19",
|
|
21
|
+
"@oclif/test": "^4.1.0",
|
|
21
22
|
"@salesforce/cli-plugins-testkit": "^5.3.35",
|
|
22
23
|
"@salesforce/dev-scripts": "^10.2.10",
|
|
23
24
|
"@salesforce/plugin-command-reference": "^3.1.29",
|
|
@@ -59,7 +60,16 @@
|
|
|
59
60
|
],
|
|
60
61
|
"topics": {
|
|
61
62
|
"agent": {
|
|
62
|
-
"description": "Commands to work with agents."
|
|
63
|
+
"description": "Commands to work with agents.",
|
|
64
|
+
"external": true,
|
|
65
|
+
"subtopics": {
|
|
66
|
+
"test": {
|
|
67
|
+
"external": true
|
|
68
|
+
},
|
|
69
|
+
"generate": {
|
|
70
|
+
"external": true
|
|
71
|
+
}
|
|
72
|
+
}
|
|
63
73
|
}
|
|
64
74
|
},
|
|
65
75
|
"flexibleTaxonomy": true
|
|
@@ -203,7 +213,7 @@
|
|
|
203
213
|
"exports": "./lib/index.js",
|
|
204
214
|
"type": "module",
|
|
205
215
|
"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.
|
|
216
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.4.0.crt",
|
|
217
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.4.0.sig"
|
|
208
218
|
}
|
|
209
219
|
}
|
|
@@ -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
|
+
}
|
|
@@ -5,24 +5,15 @@
|
|
|
5
5
|
"AgentTestRunResult": {
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
-
"
|
|
8
|
+
"aiEvaluationId": {
|
|
9
9
|
"type": "string"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
12
|
-
"type": "boolean"
|
|
13
|
-
},
|
|
14
|
-
"errorCode": {
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
"message": {
|
|
11
|
+
"status": {
|
|
18
12
|
"type": "string"
|
|
19
13
|
}
|
|
20
14
|
},
|
|
21
|
-
"required": [
|
|
22
|
-
"jobId",
|
|
23
|
-
"success"
|
|
24
|
-
],
|
|
15
|
+
"required": ["aiEvaluationId", "status"],
|
|
25
16
|
"additionalProperties": false
|
|
26
17
|
}
|
|
27
18
|
}
|
|
28
|
-
}
|
|
19
|
+
}
|