@salesforce/plugin-agent 1.7.3-dev.5 → 1.9.2
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 +126 -9
- package/lib/commands/agent/create-v2.d.ts +26 -0
- package/lib/commands/agent/create-v2.js +202 -0
- package/lib/commands/agent/create-v2.js.map +1 -0
- package/lib/commands/agent/generate/spec-v2.d.ts +29 -0
- package/lib/commands/agent/generate/spec-v2.js +117 -0
- package/lib/commands/agent/generate/spec-v2.js.map +1 -0
- package/lib/commands/agent/generate/test-definition.js +1 -1
- package/lib/commands/agent/generate/test-definition.js.map +1 -1
- package/lib/flags.d.ts +45 -2
- package/lib/flags.js +99 -0
- package/lib/flags.js.map +1 -1
- package/lib/handleTestResults.js +5 -5
- package/lib/handleTestResults.js.map +1 -1
- package/lib/testStages.js +1 -1
- package/lib/testStages.js.map +1 -1
- package/messages/agent.create-v2.md +57 -0
- package/messages/agent.generate.spec-v2.md +45 -0
- package/messages/shared.md +28 -0
- package/npm-shrinkwrap.json +7847 -14319
- package/oclif.lock +182 -702
- package/oclif.manifest.json +294 -1
- package/package.json +6 -5
- package/schemas/agent-create.json +4 -2
- package/schemas/agent-create__v2.json +21 -0
- package/schemas/agent-generate-spec.json +4 -2
- package/schemas/agent-generate-spec__v2.json +85 -0
- package/schemas/agent-preview.json +1 -1
- package/schemas/agent-test-cancel.json +5 -2
- package/schemas/agent-test-results.json +4 -8
- package/schemas/agent-test-resume.json +5 -2
- package/schemas/agent-test-run.json +5 -2
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,148 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
+
"agent:create-v2": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "To generate an agent spec file, run the \"agent generate spec\" CLI command, which outputs a YAML file with the list of jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --spec flag of this command, along with the name of the new agent.\n\nWhen this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new agent already has a list of topics and actions that were automatically created from the list of jobs in the provided agent spec file. This command also retrieves all the metadata files associated with the new agent to your local DX project.\n\nTo open the new agent in your org's Agent Builder UI, run this command: \"sf org open agent --name <api-name-of-your-agent>\".",
|
|
7
|
+
"examples": [
|
|
8
|
+
"Create an agent called \"CustomerSupportAgent\" in an org with alias \"my-org\" using the specified agent spec file:\n<%= config.bin %> <%= command.id %> --name CustomerSupportAgent --spec ./config/agentSpec.json --target-org my-org"
|
|
9
|
+
],
|
|
10
|
+
"flags": {
|
|
11
|
+
"json": {
|
|
12
|
+
"description": "Format output as json.",
|
|
13
|
+
"helpGroup": "GLOBAL",
|
|
14
|
+
"name": "json",
|
|
15
|
+
"allowNo": false,
|
|
16
|
+
"type": "boolean"
|
|
17
|
+
},
|
|
18
|
+
"flags-dir": {
|
|
19
|
+
"helpGroup": "GLOBAL",
|
|
20
|
+
"name": "flags-dir",
|
|
21
|
+
"summary": "Import flag values from a directory.",
|
|
22
|
+
"hasDynamicHelp": false,
|
|
23
|
+
"multiple": false,
|
|
24
|
+
"type": "option"
|
|
25
|
+
},
|
|
26
|
+
"target-org": {
|
|
27
|
+
"char": "o",
|
|
28
|
+
"name": "target-org",
|
|
29
|
+
"noCacheDefault": true,
|
|
30
|
+
"required": true,
|
|
31
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
32
|
+
"hasDynamicHelp": true,
|
|
33
|
+
"multiple": false,
|
|
34
|
+
"type": "option"
|
|
35
|
+
},
|
|
36
|
+
"api-version": {
|
|
37
|
+
"description": "Override the api version used for api requests made by this command",
|
|
38
|
+
"name": "api-version",
|
|
39
|
+
"hasDynamicHelp": false,
|
|
40
|
+
"multiple": false,
|
|
41
|
+
"type": "option"
|
|
42
|
+
},
|
|
43
|
+
"agent-name": {
|
|
44
|
+
"name": "agent-name",
|
|
45
|
+
"summary": "Name for the new agent.",
|
|
46
|
+
"hasDynamicHelp": false,
|
|
47
|
+
"multiple": false,
|
|
48
|
+
"type": "option"
|
|
49
|
+
},
|
|
50
|
+
"user-id": {
|
|
51
|
+
"name": "user-id",
|
|
52
|
+
"summary": "Custom user ID for the agent.",
|
|
53
|
+
"hasDynamicHelp": false,
|
|
54
|
+
"multiple": false,
|
|
55
|
+
"type": "option"
|
|
56
|
+
},
|
|
57
|
+
"enrich-logs": {
|
|
58
|
+
"name": "enrich-logs",
|
|
59
|
+
"summary": "Adds agent conversation data to event logs.",
|
|
60
|
+
"hasDynamicHelp": false,
|
|
61
|
+
"multiple": false,
|
|
62
|
+
"options": [
|
|
63
|
+
"true",
|
|
64
|
+
"false"
|
|
65
|
+
],
|
|
66
|
+
"type": "option"
|
|
67
|
+
},
|
|
68
|
+
"tone": {
|
|
69
|
+
"name": "tone",
|
|
70
|
+
"summary": "Conversational style of agent responses.",
|
|
71
|
+
"hasDynamicHelp": false,
|
|
72
|
+
"multiple": false,
|
|
73
|
+
"options": [
|
|
74
|
+
"formal",
|
|
75
|
+
"casual",
|
|
76
|
+
"neutral"
|
|
77
|
+
],
|
|
78
|
+
"type": "option"
|
|
79
|
+
},
|
|
80
|
+
"spec": {
|
|
81
|
+
"name": "spec",
|
|
82
|
+
"required": true,
|
|
83
|
+
"summary": "Path to an agent spec file.",
|
|
84
|
+
"hasDynamicHelp": false,
|
|
85
|
+
"multiple": false,
|
|
86
|
+
"type": "option"
|
|
87
|
+
},
|
|
88
|
+
"preview": {
|
|
89
|
+
"name": "preview",
|
|
90
|
+
"summary": "Preview the agent without saving in your org.",
|
|
91
|
+
"allowNo": false,
|
|
92
|
+
"type": "boolean"
|
|
93
|
+
},
|
|
94
|
+
"agent-api-name": {
|
|
95
|
+
"hidden": true,
|
|
96
|
+
"name": "agent-api-name",
|
|
97
|
+
"summary": "API name for the new agent.",
|
|
98
|
+
"hasDynamicHelp": false,
|
|
99
|
+
"multiple": false,
|
|
100
|
+
"type": "option"
|
|
101
|
+
},
|
|
102
|
+
"primary-language": {
|
|
103
|
+
"hidden": true,
|
|
104
|
+
"name": "primary-language",
|
|
105
|
+
"summary": "Language the agent uses in conversations.",
|
|
106
|
+
"default": "en_US",
|
|
107
|
+
"hasDynamicHelp": false,
|
|
108
|
+
"multiple": false,
|
|
109
|
+
"options": [
|
|
110
|
+
"en_US"
|
|
111
|
+
],
|
|
112
|
+
"type": "option"
|
|
113
|
+
},
|
|
114
|
+
"planner-id": {
|
|
115
|
+
"name": "planner-id",
|
|
116
|
+
"summary": "The GenAiPlanner ID to associate with the agent.",
|
|
117
|
+
"hasDynamicHelp": false,
|
|
118
|
+
"multiple": false,
|
|
119
|
+
"type": "option"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"hasDynamicHelp": true,
|
|
123
|
+
"hiddenAliases": [],
|
|
124
|
+
"id": "agent:create-v2",
|
|
125
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
126
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
127
|
+
"pluginType": "core",
|
|
128
|
+
"state": "beta",
|
|
129
|
+
"strict": true,
|
|
130
|
+
"summary": "Create an agent in your org from a local agent spec file.",
|
|
131
|
+
"enableJsonFlag": true,
|
|
132
|
+
"requiresProject": true,
|
|
133
|
+
"isESM": true,
|
|
134
|
+
"relativePath": [
|
|
135
|
+
"lib",
|
|
136
|
+
"commands",
|
|
137
|
+
"agent",
|
|
138
|
+
"create-v2.js"
|
|
139
|
+
],
|
|
140
|
+
"aliasPermutations": [],
|
|
141
|
+
"permutations": [
|
|
142
|
+
"agent:create-v2",
|
|
143
|
+
"create-v2:agent"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
3
146
|
"agent:create": {
|
|
4
147
|
"aliases": [],
|
|
5
148
|
"args": {},
|
|
@@ -151,6 +294,156 @@
|
|
|
151
294
|
"preview:agent"
|
|
152
295
|
]
|
|
153
296
|
},
|
|
297
|
+
"agent:generate:spec-v2": {
|
|
298
|
+
"aliases": [],
|
|
299
|
+
"args": {},
|
|
300
|
+
"description": "When using Salesforce CLI to create an agent in your org, you can choose to generate a YAML-formatted agent spec file with this command as a first step.\n\nAn agent spec is a list of jobs and descriptions that capture what the agent can do. Use flags such as --role and --company-description to provide details about your company and the role that the agent plays in your company; you can also enter the information interactively if you prefer. When you then execute this command, the large language model (LLM) associated with your org uses the information to generate the list of jobs that the agent most likely performs. We recommend that you provide good details for --role, --company-description, etc, so that the LLM can generate the best and most relevant list of jobs and descriptions. Once generated, you can edit the spec file; for example, you can remove jobs that don't apply to your agent.\n\nWhen your agent spec is ready, you then create the agent in your org by specifying the agent spec file to the --job-spec flag of the \"agent create\" CLI command.",
|
|
301
|
+
"examples": [
|
|
302
|
+
"Create an agent spec for your default org in the default location and use flags to specify the agent's role and your company details:\n<%= config.bin %> <%= command.id %> --type customer --role \"Assist users in navigating and managing bookings\" --company-name \"Coral Cloud\" --company-description \"Resort that manages guests and their reservations and experiences\"",
|
|
303
|
+
"Create an agent spec by being prompted for role and company details interactively; write the generated file to the \"specs\" directory and use the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --output-dir specs --target-org my-org"
|
|
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
|
+
"type": {
|
|
339
|
+
"char": "t",
|
|
340
|
+
"name": "type",
|
|
341
|
+
"summary": "Type of agent to create.",
|
|
342
|
+
"hasDynamicHelp": false,
|
|
343
|
+
"multiple": false,
|
|
344
|
+
"options": [
|
|
345
|
+
"customer",
|
|
346
|
+
"internal"
|
|
347
|
+
],
|
|
348
|
+
"type": "option"
|
|
349
|
+
},
|
|
350
|
+
"role": {
|
|
351
|
+
"name": "role",
|
|
352
|
+
"summary": "Role of the agent.",
|
|
353
|
+
"hasDynamicHelp": false,
|
|
354
|
+
"multiple": false,
|
|
355
|
+
"type": "option"
|
|
356
|
+
},
|
|
357
|
+
"company-name": {
|
|
358
|
+
"name": "company-name",
|
|
359
|
+
"summary": "Name of your company.",
|
|
360
|
+
"hasDynamicHelp": false,
|
|
361
|
+
"multiple": false,
|
|
362
|
+
"type": "option"
|
|
363
|
+
},
|
|
364
|
+
"company-description": {
|
|
365
|
+
"name": "company-description",
|
|
366
|
+
"summary": "Description of your company.",
|
|
367
|
+
"hasDynamicHelp": false,
|
|
368
|
+
"multiple": false,
|
|
369
|
+
"type": "option"
|
|
370
|
+
},
|
|
371
|
+
"company-website": {
|
|
372
|
+
"name": "company-website",
|
|
373
|
+
"summary": "Website URL of your company.",
|
|
374
|
+
"hasDynamicHelp": false,
|
|
375
|
+
"multiple": false,
|
|
376
|
+
"type": "option"
|
|
377
|
+
},
|
|
378
|
+
"spec": {
|
|
379
|
+
"name": "spec",
|
|
380
|
+
"summary": "Spec file (yaml) to use as input to the command.",
|
|
381
|
+
"hasDynamicHelp": false,
|
|
382
|
+
"multiple": false,
|
|
383
|
+
"type": "option"
|
|
384
|
+
},
|
|
385
|
+
"output-file": {
|
|
386
|
+
"name": "output-file",
|
|
387
|
+
"summary": "Path for the generated agent spec file (yaml); can be an absolute or relative path.",
|
|
388
|
+
"default": "config/agentSpec.yaml",
|
|
389
|
+
"hasDynamicHelp": false,
|
|
390
|
+
"multiple": false,
|
|
391
|
+
"type": "option"
|
|
392
|
+
},
|
|
393
|
+
"max-topics": {
|
|
394
|
+
"name": "max-topics",
|
|
395
|
+
"summary": "Maximum number of agent job topics to generate in the spec; default is 10.",
|
|
396
|
+
"hasDynamicHelp": false,
|
|
397
|
+
"multiple": false,
|
|
398
|
+
"type": "option"
|
|
399
|
+
},
|
|
400
|
+
"prompt-template": {
|
|
401
|
+
"name": "prompt-template",
|
|
402
|
+
"summary": "Developer name of a customized prompt template to use instead of the default.",
|
|
403
|
+
"hasDynamicHelp": false,
|
|
404
|
+
"multiple": false,
|
|
405
|
+
"type": "option"
|
|
406
|
+
},
|
|
407
|
+
"grounding-context": {
|
|
408
|
+
"dependsOn": [
|
|
409
|
+
"prompt-template"
|
|
410
|
+
],
|
|
411
|
+
"name": "grounding-context",
|
|
412
|
+
"summary": "Context information to be used with the customized prompt template.",
|
|
413
|
+
"hasDynamicHelp": false,
|
|
414
|
+
"multiple": false,
|
|
415
|
+
"type": "option"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"hasDynamicHelp": true,
|
|
419
|
+
"hiddenAliases": [],
|
|
420
|
+
"id": "agent:generate:spec-v2",
|
|
421
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
422
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
423
|
+
"pluginType": "core",
|
|
424
|
+
"state": "beta",
|
|
425
|
+
"strict": true,
|
|
426
|
+
"summary": "Generate an agent spec, which is the list of jobs that the agent performs.",
|
|
427
|
+
"enableJsonFlag": true,
|
|
428
|
+
"requiresProject": true,
|
|
429
|
+
"isESM": true,
|
|
430
|
+
"relativePath": [
|
|
431
|
+
"lib",
|
|
432
|
+
"commands",
|
|
433
|
+
"agent",
|
|
434
|
+
"generate",
|
|
435
|
+
"spec-v2.js"
|
|
436
|
+
],
|
|
437
|
+
"aliasPermutations": [],
|
|
438
|
+
"permutations": [
|
|
439
|
+
"agent:generate:spec-v2",
|
|
440
|
+
"generate:agent:spec-v2",
|
|
441
|
+
"generate:spec-v2:agent",
|
|
442
|
+
"agent:spec-v2:generate",
|
|
443
|
+
"spec-v2:agent:generate",
|
|
444
|
+
"spec-v2:generate:agent"
|
|
445
|
+
]
|
|
446
|
+
},
|
|
154
447
|
"agent:generate:spec": {
|
|
155
448
|
"aliases": [],
|
|
156
449
|
"args": {},
|
|
@@ -788,5 +1081,5 @@
|
|
|
788
1081
|
]
|
|
789
1082
|
}
|
|
790
1083
|
},
|
|
791
|
-
"version": "1.
|
|
1084
|
+
"version": "1.9.2"
|
|
792
1085
|
}
|
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.9.2",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@inquirer/prompts": "^7.2.0",
|
|
10
10
|
"@oclif/core": "^4",
|
|
11
11
|
"@oclif/multi-stage-output": "^0.7.12",
|
|
12
|
-
"@salesforce/agents": "0.
|
|
12
|
+
"@salesforce/agents": "^0.7.1",
|
|
13
13
|
"@salesforce/core": "^8.8.0",
|
|
14
14
|
"@salesforce/kit": "^3.2.1",
|
|
15
15
|
"@salesforce/sf-plugins-core": "^12.1.0",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"fast-xml-parser": "^4.5.1",
|
|
18
18
|
"ink": "^5.0.1",
|
|
19
19
|
"ink-text-input": "^6.0.0",
|
|
20
|
-
"react": "^18.3.1"
|
|
20
|
+
"react": "^18.3.1",
|
|
21
|
+
"yaml": "^2.7.0"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@oclif/plugin-command-snapshot": "^5.2.19",
|
|
@@ -221,7 +222,7 @@
|
|
|
221
222
|
"exports": "./lib/index.js",
|
|
222
223
|
"type": "module",
|
|
223
224
|
"sfdx": {
|
|
224
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.
|
|
225
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.
|
|
225
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.9.2.crt",
|
|
226
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.9.2.sig"
|
|
226
227
|
}
|
|
227
228
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/AgentCreateResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AgentCreateResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"isSuccess": {
|
|
9
|
+
"type": "boolean"
|
|
10
|
+
},
|
|
11
|
+
"errorMessage": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"isSuccess"
|
|
17
|
+
],
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/AgentCreateSpecResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AgentCreateSpecResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"topics": {
|
|
10
|
+
"$ref": "#/definitions/DraftAgentTopics"
|
|
11
|
+
},
|
|
12
|
+
"agentType": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"customer",
|
|
16
|
+
"internal"
|
|
17
|
+
],
|
|
18
|
+
"description": "Internal type is copilots; used by customers' employees. Customer type is agents; used by customers' customers."
|
|
19
|
+
},
|
|
20
|
+
"role": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"companyName": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"companyDescription": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"companyWebsite": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"maxNumOfTopics": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"description": "The maximum number of topics to create in the spec. Default is 10."
|
|
35
|
+
},
|
|
36
|
+
"promptTemplateName": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Developer name of the prompt template."
|
|
39
|
+
},
|
|
40
|
+
"groundingContext": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Context info to be used in customized prompt template"
|
|
43
|
+
},
|
|
44
|
+
"isSuccess": {
|
|
45
|
+
"type": "boolean"
|
|
46
|
+
},
|
|
47
|
+
"errorMessage": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"specPath": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"agentType",
|
|
56
|
+
"companyDescription",
|
|
57
|
+
"companyName",
|
|
58
|
+
"isSuccess",
|
|
59
|
+
"role",
|
|
60
|
+
"topics"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"DraftAgentTopics": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"name": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"description": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": [
|
|
76
|
+
"name",
|
|
77
|
+
"description"
|
|
78
|
+
],
|
|
79
|
+
"additionalProperties": false
|
|
80
|
+
},
|
|
81
|
+
"minItems": 1,
|
|
82
|
+
"maxItems": 1
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"TestStatus": {
|
|
47
47
|
"type": "string",
|
|
48
|
-
"enum": ["
|
|
48
|
+
"enum": ["New", "InProgress", "Completed", "Error"]
|
|
49
49
|
},
|
|
50
50
|
"TestCaseResult": {
|
|
51
51
|
"type": "object",
|
|
@@ -53,9 +53,6 @@
|
|
|
53
53
|
"status": {
|
|
54
54
|
"$ref": "#/definitions/TestStatus"
|
|
55
55
|
},
|
|
56
|
-
"number": {
|
|
57
|
-
"type": "string"
|
|
58
|
-
},
|
|
59
56
|
"utterance": {
|
|
60
57
|
"type": "string"
|
|
61
58
|
},
|
|
@@ -79,8 +76,7 @@
|
|
|
79
76
|
}
|
|
80
77
|
},
|
|
81
78
|
"outcome": {
|
|
82
|
-
"type": "string"
|
|
83
|
-
"enum": ["Success", "Failure"]
|
|
79
|
+
"type": "string"
|
|
84
80
|
},
|
|
85
81
|
"topic": {
|
|
86
82
|
"type": "string"
|
|
@@ -114,7 +110,7 @@
|
|
|
114
110
|
},
|
|
115
111
|
"result": {
|
|
116
112
|
"type": "string",
|
|
117
|
-
"enum": ["
|
|
113
|
+
"enum": ["PASS", "FAILURE"]
|
|
118
114
|
},
|
|
119
115
|
"metricLabel": {
|
|
120
116
|
"type": "string",
|
|
@@ -154,7 +150,7 @@
|
|
|
154
150
|
}
|
|
155
151
|
}
|
|
156
152
|
},
|
|
157
|
-
"required": ["status", "
|
|
153
|
+
"required": ["status", "utterance", "startTime", "generatedData", "expectationResults"],
|
|
158
154
|
"additionalProperties": false
|
|
159
155
|
}
|
|
160
156
|
}
|