@salesforce/plugin-agent 1.35.0 → 1.36.1
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 +67 -25
- package/lib/agentTestCache.d.ts +4 -1
- package/lib/agentTestCache.js +2 -2
- package/lib/agentTestCache.js.map +1 -1
- package/lib/commands/agent/publish/authoring-bundle.d.ts +8 -0
- package/lib/commands/agent/publish/authoring-bundle.js +51 -0
- package/lib/commands/agent/publish/authoring-bundle.js.map +1 -1
- package/lib/commands/agent/test/list.js +6 -1
- package/lib/commands/agent/test/list.js.map +1 -1
- package/lib/commands/agent/test/results.d.ts +3 -2
- package/lib/commands/agent/test/results.js +5 -3
- package/lib/commands/agent/test/results.js.map +1 -1
- package/lib/commands/agent/test/resume.d.ts +1 -0
- package/lib/commands/agent/test/resume.js +12 -4
- package/lib/commands/agent/test/resume.js.map +1 -1
- package/lib/commands/agent/test/run.d.ts +1 -0
- package/lib/commands/agent/test/run.js +21 -8
- package/lib/commands/agent/test/run.js.map +1 -1
- package/lib/flags.d.ts +6 -1
- package/lib/flags.js +21 -4
- package/lib/flags.js.map +1 -1
- package/lib/handleTestResults.d.ts +4 -2
- package/lib/handleTestResults.js +137 -5
- package/lib/handleTestResults.js.map +1 -1
- package/lib/testRunnerFactory.d.ts +7 -0
- package/lib/testRunnerFactory.js +30 -0
- package/lib/testRunnerFactory.js.map +1 -0
- package/lib/testStages.d.ts +4 -3
- package/lib/testStages.js.map +1 -1
- package/messages/agent.publish.authoring-bundle.md +16 -0
- package/messages/agent.test.list.md +1 -1
- package/messages/shared.md +8 -0
- package/oclif.manifest.json +60 -3
- package/package.json +5 -5
- package/schemas/agent-activate.json +5 -2
- package/schemas/agent-create.json +39 -8
- package/schemas/agent-deactivate.json +5 -2
- package/schemas/agent-generate-agent__spec.json +18 -4
- package/schemas/agent-generate-authoring__bundle.json +6 -2
- package/schemas/agent-generate-template.json +5 -2
- package/schemas/agent-preview-end.json +5 -2
- package/schemas/agent-preview-send.json +6 -2
- package/schemas/agent-preview-sessions.json +10 -3
- package/schemas/agent-preview-start.json +5 -2
- package/schemas/agent-preview.json +1 -1
- package/schemas/agent-publish-authoring__bundle.json +25 -0
- package/schemas/agent-test-create.json +5 -2
- package/schemas/agent-test-list.json +1 -1
- package/schemas/agent-test-results.json +111 -10
- package/schemas/agent-test-resume.json +113 -10
- package/schemas/agent-test-run.json +113 -10
- package/schemas/agent-test-run__eval.json +17 -4
- package/schemas/agent-validate-authoring__bundle.json +4 -2
|
@@ -3,7 +3,14 @@
|
|
|
3
3
|
"$ref": "#/definitions/AgentTestResultsResult",
|
|
4
4
|
"definitions": {
|
|
5
5
|
"AgentTestResultsResult": {
|
|
6
|
-
"
|
|
6
|
+
"anyOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "#/definitions/AgentTestResultsResponse"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"$ref": "#/definitions/AgentforceStudioTestResultsResponse"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
7
14
|
},
|
|
8
15
|
"AgentTestResultsResponse": {
|
|
9
16
|
"type": "object",
|
|
@@ -30,12 +37,23 @@
|
|
|
30
37
|
}
|
|
31
38
|
}
|
|
32
39
|
},
|
|
33
|
-
"required": [
|
|
40
|
+
"required": [
|
|
41
|
+
"status",
|
|
42
|
+
"startTime",
|
|
43
|
+
"subjectName",
|
|
44
|
+
"testCases"
|
|
45
|
+
],
|
|
34
46
|
"additionalProperties": false
|
|
35
47
|
},
|
|
36
48
|
"TestStatus": {
|
|
37
49
|
"type": "string",
|
|
38
|
-
"enum": [
|
|
50
|
+
"enum": [
|
|
51
|
+
"NEW",
|
|
52
|
+
"IN_PROGRESS",
|
|
53
|
+
"COMPLETED",
|
|
54
|
+
"ERROR",
|
|
55
|
+
"TERMINATED"
|
|
56
|
+
]
|
|
39
57
|
},
|
|
40
58
|
"TestCaseResult": {
|
|
41
59
|
"type": "object",
|
|
@@ -56,7 +74,9 @@
|
|
|
56
74
|
"type": "string"
|
|
57
75
|
}
|
|
58
76
|
},
|
|
59
|
-
"required": [
|
|
77
|
+
"required": [
|
|
78
|
+
"utterance"
|
|
79
|
+
],
|
|
60
80
|
"additionalProperties": false
|
|
61
81
|
},
|
|
62
82
|
"generatedData": {
|
|
@@ -81,7 +101,13 @@
|
|
|
81
101
|
"type": "string"
|
|
82
102
|
}
|
|
83
103
|
},
|
|
84
|
-
"required": [
|
|
104
|
+
"required": [
|
|
105
|
+
"actionsSequence",
|
|
106
|
+
"invokedActions",
|
|
107
|
+
"sessionId",
|
|
108
|
+
"outcome",
|
|
109
|
+
"topic"
|
|
110
|
+
],
|
|
85
111
|
"additionalProperties": false
|
|
86
112
|
},
|
|
87
113
|
"testResults": {
|
|
@@ -102,12 +128,22 @@
|
|
|
102
128
|
"type": "number"
|
|
103
129
|
},
|
|
104
130
|
"result": {
|
|
105
|
-
"type": [
|
|
106
|
-
|
|
131
|
+
"type": [
|
|
132
|
+
"null",
|
|
133
|
+
"string"
|
|
134
|
+
],
|
|
135
|
+
"enum": [
|
|
136
|
+
null,
|
|
137
|
+
"PASS",
|
|
138
|
+
"FAILURE"
|
|
139
|
+
]
|
|
107
140
|
},
|
|
108
141
|
"metricLabel": {
|
|
109
142
|
"type": "string",
|
|
110
|
-
"enum": [
|
|
143
|
+
"enum": [
|
|
144
|
+
"Accuracy",
|
|
145
|
+
"Precision"
|
|
146
|
+
]
|
|
111
147
|
},
|
|
112
148
|
"metricExplainability": {
|
|
113
149
|
"type": "string"
|
|
@@ -146,8 +182,73 @@
|
|
|
146
182
|
"type": "number"
|
|
147
183
|
}
|
|
148
184
|
},
|
|
149
|
-
"required": [
|
|
185
|
+
"required": [
|
|
186
|
+
"status",
|
|
187
|
+
"startTime",
|
|
188
|
+
"inputs",
|
|
189
|
+
"generatedData",
|
|
190
|
+
"testResults",
|
|
191
|
+
"testNumber"
|
|
192
|
+
],
|
|
193
|
+
"additionalProperties": false
|
|
194
|
+
},
|
|
195
|
+
"AgentforceStudioTestResultsResponse": {
|
|
196
|
+
"type": "object",
|
|
197
|
+
"properties": {
|
|
198
|
+
"status": {
|
|
199
|
+
"type": "string"
|
|
200
|
+
},
|
|
201
|
+
"testCases": {
|
|
202
|
+
"type": "array",
|
|
203
|
+
"items": {
|
|
204
|
+
"$ref": "#/definitions/AgentforceStudioTestCaseResult"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"required": [
|
|
209
|
+
"status",
|
|
210
|
+
"testCases"
|
|
211
|
+
],
|
|
212
|
+
"additionalProperties": false
|
|
213
|
+
},
|
|
214
|
+
"AgentforceStudioTestCaseResult": {
|
|
215
|
+
"type": "object",
|
|
216
|
+
"properties": {
|
|
217
|
+
"subjectResponse": {
|
|
218
|
+
"type": "string"
|
|
219
|
+
},
|
|
220
|
+
"testNumber": {
|
|
221
|
+
"type": "number"
|
|
222
|
+
},
|
|
223
|
+
"testScorerResults": {
|
|
224
|
+
"type": "array",
|
|
225
|
+
"items": {
|
|
226
|
+
"$ref": "#/definitions/TestScorerResult"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"required": [
|
|
231
|
+
"subjectResponse",
|
|
232
|
+
"testNumber",
|
|
233
|
+
"testScorerResults"
|
|
234
|
+
],
|
|
235
|
+
"additionalProperties": false
|
|
236
|
+
},
|
|
237
|
+
"TestScorerResult": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"properties": {
|
|
240
|
+
"scorerName": {
|
|
241
|
+
"type": "string"
|
|
242
|
+
},
|
|
243
|
+
"scorerResponse": {
|
|
244
|
+
"type": "string"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"required": [
|
|
248
|
+
"scorerName",
|
|
249
|
+
"scorerResponse"
|
|
250
|
+
],
|
|
150
251
|
"additionalProperties": false
|
|
151
252
|
}
|
|
152
253
|
}
|
|
153
|
-
}
|
|
254
|
+
}
|
|
@@ -33,7 +33,10 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"required": [
|
|
36
|
+
"required": [
|
|
37
|
+
"runId",
|
|
38
|
+
"status"
|
|
39
|
+
]
|
|
37
40
|
},
|
|
38
41
|
{
|
|
39
42
|
"type": "object",
|
|
@@ -64,13 +67,49 @@
|
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
69
|
},
|
|
67
|
-
"required": [
|
|
70
|
+
"required": [
|
|
71
|
+
"runId",
|
|
72
|
+
"startTime",
|
|
73
|
+
"status",
|
|
74
|
+
"subjectName",
|
|
75
|
+
"testCases"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "object",
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"properties": {
|
|
82
|
+
"status": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"const": "COMPLETED"
|
|
85
|
+
},
|
|
86
|
+
"runId": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"testCases": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"$ref": "#/definitions/AgentforceStudioTestCaseResult"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"runId",
|
|
98
|
+
"status",
|
|
99
|
+
"testCases"
|
|
100
|
+
]
|
|
68
101
|
}
|
|
69
102
|
]
|
|
70
103
|
},
|
|
71
104
|
"TestStatus": {
|
|
72
105
|
"type": "string",
|
|
73
|
-
"enum": [
|
|
106
|
+
"enum": [
|
|
107
|
+
"NEW",
|
|
108
|
+
"IN_PROGRESS",
|
|
109
|
+
"COMPLETED",
|
|
110
|
+
"ERROR",
|
|
111
|
+
"TERMINATED"
|
|
112
|
+
]
|
|
74
113
|
},
|
|
75
114
|
"TestCaseResult": {
|
|
76
115
|
"type": "object",
|
|
@@ -91,7 +130,9 @@
|
|
|
91
130
|
"type": "string"
|
|
92
131
|
}
|
|
93
132
|
},
|
|
94
|
-
"required": [
|
|
133
|
+
"required": [
|
|
134
|
+
"utterance"
|
|
135
|
+
],
|
|
95
136
|
"additionalProperties": false
|
|
96
137
|
},
|
|
97
138
|
"generatedData": {
|
|
@@ -116,7 +157,13 @@
|
|
|
116
157
|
"type": "string"
|
|
117
158
|
}
|
|
118
159
|
},
|
|
119
|
-
"required": [
|
|
160
|
+
"required": [
|
|
161
|
+
"actionsSequence",
|
|
162
|
+
"invokedActions",
|
|
163
|
+
"sessionId",
|
|
164
|
+
"outcome",
|
|
165
|
+
"topic"
|
|
166
|
+
],
|
|
120
167
|
"additionalProperties": false
|
|
121
168
|
},
|
|
122
169
|
"testResults": {
|
|
@@ -137,12 +184,22 @@
|
|
|
137
184
|
"type": "number"
|
|
138
185
|
},
|
|
139
186
|
"result": {
|
|
140
|
-
"type": [
|
|
141
|
-
|
|
187
|
+
"type": [
|
|
188
|
+
"null",
|
|
189
|
+
"string"
|
|
190
|
+
],
|
|
191
|
+
"enum": [
|
|
192
|
+
null,
|
|
193
|
+
"PASS",
|
|
194
|
+
"FAILURE"
|
|
195
|
+
]
|
|
142
196
|
},
|
|
143
197
|
"metricLabel": {
|
|
144
198
|
"type": "string",
|
|
145
|
-
"enum": [
|
|
199
|
+
"enum": [
|
|
200
|
+
"Accuracy",
|
|
201
|
+
"Precision"
|
|
202
|
+
]
|
|
146
203
|
},
|
|
147
204
|
"metricExplainability": {
|
|
148
205
|
"type": "string"
|
|
@@ -181,8 +238,54 @@
|
|
|
181
238
|
"type": "number"
|
|
182
239
|
}
|
|
183
240
|
},
|
|
184
|
-
"required": [
|
|
241
|
+
"required": [
|
|
242
|
+
"status",
|
|
243
|
+
"startTime",
|
|
244
|
+
"inputs",
|
|
245
|
+
"generatedData",
|
|
246
|
+
"testResults",
|
|
247
|
+
"testNumber"
|
|
248
|
+
],
|
|
249
|
+
"additionalProperties": false
|
|
250
|
+
},
|
|
251
|
+
"AgentforceStudioTestCaseResult": {
|
|
252
|
+
"type": "object",
|
|
253
|
+
"properties": {
|
|
254
|
+
"subjectResponse": {
|
|
255
|
+
"type": "string"
|
|
256
|
+
},
|
|
257
|
+
"testNumber": {
|
|
258
|
+
"type": "number"
|
|
259
|
+
},
|
|
260
|
+
"testScorerResults": {
|
|
261
|
+
"type": "array",
|
|
262
|
+
"items": {
|
|
263
|
+
"$ref": "#/definitions/TestScorerResult"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"required": [
|
|
268
|
+
"subjectResponse",
|
|
269
|
+
"testNumber",
|
|
270
|
+
"testScorerResults"
|
|
271
|
+
],
|
|
272
|
+
"additionalProperties": false
|
|
273
|
+
},
|
|
274
|
+
"TestScorerResult": {
|
|
275
|
+
"type": "object",
|
|
276
|
+
"properties": {
|
|
277
|
+
"scorerName": {
|
|
278
|
+
"type": "string"
|
|
279
|
+
},
|
|
280
|
+
"scorerResponse": {
|
|
281
|
+
"type": "string"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"required": [
|
|
285
|
+
"scorerName",
|
|
286
|
+
"scorerResponse"
|
|
287
|
+
],
|
|
185
288
|
"additionalProperties": false
|
|
186
289
|
}
|
|
187
290
|
}
|
|
188
|
-
}
|
|
291
|
+
}
|
|
@@ -33,7 +33,10 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"required": [
|
|
36
|
+
"required": [
|
|
37
|
+
"runId",
|
|
38
|
+
"status"
|
|
39
|
+
]
|
|
37
40
|
},
|
|
38
41
|
{
|
|
39
42
|
"type": "object",
|
|
@@ -64,13 +67,49 @@
|
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
69
|
},
|
|
67
|
-
"required": [
|
|
70
|
+
"required": [
|
|
71
|
+
"runId",
|
|
72
|
+
"startTime",
|
|
73
|
+
"status",
|
|
74
|
+
"subjectName",
|
|
75
|
+
"testCases"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "object",
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"properties": {
|
|
82
|
+
"status": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"const": "COMPLETED"
|
|
85
|
+
},
|
|
86
|
+
"runId": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"testCases": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"$ref": "#/definitions/AgentforceStudioTestCaseResult"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"runId",
|
|
98
|
+
"status",
|
|
99
|
+
"testCases"
|
|
100
|
+
]
|
|
68
101
|
}
|
|
69
102
|
]
|
|
70
103
|
},
|
|
71
104
|
"TestStatus": {
|
|
72
105
|
"type": "string",
|
|
73
|
-
"enum": [
|
|
106
|
+
"enum": [
|
|
107
|
+
"NEW",
|
|
108
|
+
"IN_PROGRESS",
|
|
109
|
+
"COMPLETED",
|
|
110
|
+
"ERROR",
|
|
111
|
+
"TERMINATED"
|
|
112
|
+
]
|
|
74
113
|
},
|
|
75
114
|
"TestCaseResult": {
|
|
76
115
|
"type": "object",
|
|
@@ -91,7 +130,9 @@
|
|
|
91
130
|
"type": "string"
|
|
92
131
|
}
|
|
93
132
|
},
|
|
94
|
-
"required": [
|
|
133
|
+
"required": [
|
|
134
|
+
"utterance"
|
|
135
|
+
],
|
|
95
136
|
"additionalProperties": false
|
|
96
137
|
},
|
|
97
138
|
"generatedData": {
|
|
@@ -116,7 +157,13 @@
|
|
|
116
157
|
"type": "string"
|
|
117
158
|
}
|
|
118
159
|
},
|
|
119
|
-
"required": [
|
|
160
|
+
"required": [
|
|
161
|
+
"actionsSequence",
|
|
162
|
+
"invokedActions",
|
|
163
|
+
"sessionId",
|
|
164
|
+
"outcome",
|
|
165
|
+
"topic"
|
|
166
|
+
],
|
|
120
167
|
"additionalProperties": false
|
|
121
168
|
},
|
|
122
169
|
"testResults": {
|
|
@@ -137,12 +184,22 @@
|
|
|
137
184
|
"type": "number"
|
|
138
185
|
},
|
|
139
186
|
"result": {
|
|
140
|
-
"type": [
|
|
141
|
-
|
|
187
|
+
"type": [
|
|
188
|
+
"null",
|
|
189
|
+
"string"
|
|
190
|
+
],
|
|
191
|
+
"enum": [
|
|
192
|
+
null,
|
|
193
|
+
"PASS",
|
|
194
|
+
"FAILURE"
|
|
195
|
+
]
|
|
142
196
|
},
|
|
143
197
|
"metricLabel": {
|
|
144
198
|
"type": "string",
|
|
145
|
-
"enum": [
|
|
199
|
+
"enum": [
|
|
200
|
+
"Accuracy",
|
|
201
|
+
"Precision"
|
|
202
|
+
]
|
|
146
203
|
},
|
|
147
204
|
"metricExplainability": {
|
|
148
205
|
"type": "string"
|
|
@@ -181,8 +238,54 @@
|
|
|
181
238
|
"type": "number"
|
|
182
239
|
}
|
|
183
240
|
},
|
|
184
|
-
"required": [
|
|
241
|
+
"required": [
|
|
242
|
+
"status",
|
|
243
|
+
"startTime",
|
|
244
|
+
"inputs",
|
|
245
|
+
"generatedData",
|
|
246
|
+
"testResults",
|
|
247
|
+
"testNumber"
|
|
248
|
+
],
|
|
249
|
+
"additionalProperties": false
|
|
250
|
+
},
|
|
251
|
+
"AgentforceStudioTestCaseResult": {
|
|
252
|
+
"type": "object",
|
|
253
|
+
"properties": {
|
|
254
|
+
"subjectResponse": {
|
|
255
|
+
"type": "string"
|
|
256
|
+
},
|
|
257
|
+
"testNumber": {
|
|
258
|
+
"type": "number"
|
|
259
|
+
},
|
|
260
|
+
"testScorerResults": {
|
|
261
|
+
"type": "array",
|
|
262
|
+
"items": {
|
|
263
|
+
"$ref": "#/definitions/TestScorerResult"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"required": [
|
|
268
|
+
"subjectResponse",
|
|
269
|
+
"testNumber",
|
|
270
|
+
"testScorerResults"
|
|
271
|
+
],
|
|
272
|
+
"additionalProperties": false
|
|
273
|
+
},
|
|
274
|
+
"TestScorerResult": {
|
|
275
|
+
"type": "object",
|
|
276
|
+
"properties": {
|
|
277
|
+
"scorerName": {
|
|
278
|
+
"type": "string"
|
|
279
|
+
},
|
|
280
|
+
"scorerResponse": {
|
|
281
|
+
"type": "string"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"required": [
|
|
285
|
+
"scorerName",
|
|
286
|
+
"scorerResponse"
|
|
287
|
+
],
|
|
185
288
|
"additionalProperties": false
|
|
186
289
|
}
|
|
187
290
|
}
|
|
188
|
-
}
|
|
291
|
+
}
|
|
@@ -25,7 +25,12 @@
|
|
|
25
25
|
"items": {}
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
"required": [
|
|
28
|
+
"required": [
|
|
29
|
+
"id",
|
|
30
|
+
"status",
|
|
31
|
+
"evaluations",
|
|
32
|
+
"outputs"
|
|
33
|
+
],
|
|
29
34
|
"additionalProperties": false
|
|
30
35
|
}
|
|
31
36
|
},
|
|
@@ -45,12 +50,20 @@
|
|
|
45
50
|
"type": "number"
|
|
46
51
|
}
|
|
47
52
|
},
|
|
48
|
-
"required": [
|
|
53
|
+
"required": [
|
|
54
|
+
"passed",
|
|
55
|
+
"failed",
|
|
56
|
+
"scored",
|
|
57
|
+
"errors"
|
|
58
|
+
],
|
|
49
59
|
"additionalProperties": false
|
|
50
60
|
}
|
|
51
61
|
},
|
|
52
|
-
"required": [
|
|
62
|
+
"required": [
|
|
63
|
+
"tests",
|
|
64
|
+
"summary"
|
|
65
|
+
],
|
|
53
66
|
"additionalProperties": false
|
|
54
67
|
}
|
|
55
68
|
}
|
|
56
|
-
}
|
|
69
|
+
}
|