@salesforce/plugin-agent 1.18.0 → 1.18.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 +124 -52
- package/lib/commands/agent/generate/test-spec.js +5 -5
- package/lib/commands/agent/generate/test-spec.js.map +1 -1
- package/lib/commands/agent/test/create.js +1 -1
- package/lib/commands/agent/test/create.js.map +1 -1
- package/lib/commands/agent/test/list.d.ts +1 -0
- package/lib/commands/agent/test/list.js +1 -0
- package/lib/commands/agent/test/list.js.map +1 -1
- package/messages/agent.generate.template.md +9 -5
- package/messages/agent.generate.test-spec.md +29 -8
- package/messages/agent.test.create.md +23 -11
- package/messages/agent.test.list.md +9 -3
- package/messages/agent.test.run.md +8 -8
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +32 -26
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -132,7 +132,7 @@ EXAMPLES
|
|
|
132
132
|
$ sf agent create --agent-name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
135
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/create.ts)_
|
|
136
136
|
|
|
137
137
|
## `sf agent generate agent-spec`
|
|
138
138
|
|
|
@@ -237,11 +237,11 @@ EXAMPLES
|
|
|
237
237
|
$ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
|
|
238
238
|
```
|
|
239
239
|
|
|
240
|
-
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
240
|
+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/generate/agent-spec.ts)_
|
|
241
241
|
|
|
242
242
|
## `sf agent generate template`
|
|
243
243
|
|
|
244
|
-
Generate an agent template
|
|
244
|
+
Generate an agent template from an existing agent in your DX project so you can then package the template in a managed package.
|
|
245
245
|
|
|
246
246
|
```
|
|
247
247
|
USAGE
|
|
@@ -249,10 +249,10 @@ USAGE
|
|
|
249
249
|
<value>]
|
|
250
250
|
|
|
251
251
|
FLAGS
|
|
252
|
-
-f, --agent-file=<value> (required)
|
|
252
|
+
-f, --agent-file=<value> (required) Path to an agent (Bot) metadata file.
|
|
253
253
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
254
254
|
configuration variable is already set.
|
|
255
|
-
--agent-version=<value> (required) Version of the
|
|
255
|
+
--agent-version=<value> (required) Version of the agent (BotVersion).
|
|
256
256
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
257
257
|
|
|
258
258
|
GLOBAL FLAGS
|
|
@@ -260,46 +260,93 @@ GLOBAL FLAGS
|
|
|
260
260
|
--json Format output as json.
|
|
261
261
|
|
|
262
262
|
DESCRIPTION
|
|
263
|
-
Generate an agent template
|
|
264
|
-
|
|
265
|
-
|
|
263
|
+
Generate an agent template from an existing agent in your DX project so you can then package the template in a managed
|
|
264
|
+
package.
|
|
265
|
+
|
|
266
|
+
At a high-level, agents are defined by the Bot, BotVersion, and GenAiPlanner metadata types. The GenAiPlanner type in
|
|
267
|
+
turn defines the agent's topics and actions. This command uses the metadata files for these three types, located in
|
|
268
|
+
your local DX project, to generate a BotTemplate file for a specific agent (Bot). You then use the BotTemplate file,
|
|
269
|
+
along with the GenAiPlanner file that references the BotTemplate, to package the template in a managed package that
|
|
270
|
+
you can share between orgs or on AppExchange.
|
|
271
|
+
|
|
272
|
+
Use the --agent-file flag to specify the relative or full pathname of the Bot metadata file, such as
|
|
273
|
+
force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml. A single Bot can have multiple
|
|
274
|
+
BotVersions, so use the --agent-version flag to specify the version. The corresponding BotVersion file must exist
|
|
275
|
+
locally. For example, if you specify "--agent-version 4", then the file
|
|
276
|
+
force-app/main/default/bots/My_Awesome_Agent/v4.botVersion-meta.xml must exist.
|
|
277
|
+
|
|
278
|
+
The new BotTemplate file is generated in the "botTemplates" directory in your local package directory, and has the
|
|
279
|
+
name <Agent_API_name>\_v<Version>\_Template.botTemplate-meta.xml, such as
|
|
280
|
+
force-app/main/default/botTemplates/My_Awesome_Agent_v4_Template.botTemplate-meta.xml. The command displays the full
|
|
281
|
+
pathname of the generated files when it completes.
|
|
266
282
|
|
|
267
283
|
EXAMPLES
|
|
268
|
-
Generate an agent template from a Bot metadata file in your project
|
|
284
|
+
Generate an agent template from a Bot metadata file in your DX project that corresponds to the My_Awesome_Agent
|
|
285
|
+
agent; use version 1 of the agent.
|
|
269
286
|
|
|
270
287
|
$ sf agent generate template --agent-file \
|
|
271
288
|
force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
|
|
272
289
|
```
|
|
273
290
|
|
|
274
|
-
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
291
|
+
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/generate/template.ts)_
|
|
275
292
|
|
|
276
293
|
## `sf agent generate test-spec`
|
|
277
294
|
|
|
278
|
-
|
|
295
|
+
Generate an agent test spec, which is a YAML file that lists the test cases for testing a specific agent.
|
|
279
296
|
|
|
280
297
|
```
|
|
281
298
|
USAGE
|
|
282
299
|
$ sf agent generate test-spec [--flags-dir <value>] [-d <value>] [--force-overwrite] [-f <value>]
|
|
283
300
|
|
|
284
301
|
FLAGS
|
|
285
|
-
-d, --from-definition=<value>
|
|
286
|
-
|
|
287
|
-
|
|
302
|
+
-d, --from-definition=<value> Filepath to the AIEvaluationDefinition metadata XML file in your DX project that you
|
|
303
|
+
want to convert to a test spec YAML file.
|
|
304
|
+
-f, --output-file=<value> Name of the generated test spec YAML file. Default value is
|
|
305
|
+
"specs/<AGENT_API_NAME>-testSpec.yaml".
|
|
306
|
+
--force-overwrite Don't prompt for confirmation when overwriting an existing test spec YAML file.
|
|
288
307
|
|
|
289
308
|
GLOBAL FLAGS
|
|
290
309
|
--flags-dir=<value> Import flag values from a directory.
|
|
291
310
|
|
|
292
311
|
DESCRIPTION
|
|
293
|
-
|
|
312
|
+
Generate an agent test spec, which is a YAML file that lists the test cases for testing a specific agent.
|
|
313
|
+
|
|
314
|
+
The first step when using Salesforce CLI to create an agent test in your org is to use this interactive command to
|
|
315
|
+
generate a local YAML-formatted test spec file. The test spec YAML file contains information about the agent being
|
|
316
|
+
tested, such as its API name, and then one or more test cases. This command uses the metadata components in your DX
|
|
317
|
+
project when prompting for information, such as the agent API name; it doesn't look in your org.
|
|
318
|
+
|
|
319
|
+
To generate a specific agent test case, this command prompts you for this information; when possible, the command
|
|
320
|
+
provides a list of options for you to choose from:
|
|
321
|
+
|
|
322
|
+
- Utterance: Natural language statement, question, or command used to test the agent.
|
|
323
|
+
- Expected topic: API name of the topic you expect the agent to use when responding to the utterance.
|
|
324
|
+
- Expected actions: One or more API names of the expection actions the agent takes.
|
|
325
|
+
- Expected outcome: Natural language description of the outcome you expect.
|
|
326
|
+
|
|
327
|
+
When your test spec is ready, you then run the "agent test create" command to actually create the test in your org and
|
|
328
|
+
synchronize the metadata with your DX project. The metadata type for an agent test is AiEvaluationDefinition.
|
|
294
329
|
|
|
295
|
-
|
|
296
|
-
|
|
330
|
+
If you have an existing AiEvaluationDefinition metadata XML file in your DX project, you can generate its equivalent
|
|
331
|
+
YAML test spec file with the --from-definition flag.
|
|
297
332
|
|
|
298
333
|
EXAMPLES
|
|
299
|
-
|
|
334
|
+
Generate an agent test spec YAML file interactively:
|
|
335
|
+
|
|
336
|
+
$ sf agent generate test-spec
|
|
337
|
+
|
|
338
|
+
Generate an agent test spec YAML file and specify a name for the new file; if the file exists, overwrite it without
|
|
339
|
+
confirmation:
|
|
340
|
+
|
|
341
|
+
$ sf agent generate test-spec --output-file specs/Resort_Manager-new-version-testSpec.yaml --force-overwrite
|
|
342
|
+
|
|
343
|
+
Generate an agent test spec YAML file from an existing AiEvaluationDefinition metadata XML file in your DX project:
|
|
344
|
+
|
|
345
|
+
$ sf agent generate test-spec --from-definition \
|
|
346
|
+
force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
|
|
300
347
|
```
|
|
301
348
|
|
|
302
|
-
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
349
|
+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/generate/test-spec.ts)_
|
|
303
350
|
|
|
304
351
|
## `sf agent preview`
|
|
305
352
|
|
|
@@ -334,11 +381,11 @@ FLAG DESCRIPTIONS
|
|
|
334
381
|
the API name of the agent? (TBD based on agents library)
|
|
335
382
|
```
|
|
336
383
|
|
|
337
|
-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
384
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/preview.ts)_
|
|
338
385
|
|
|
339
386
|
## `sf agent test create`
|
|
340
387
|
|
|
341
|
-
|
|
388
|
+
Create an agent test in your org using a local test spec YAML file.
|
|
342
389
|
|
|
343
390
|
```
|
|
344
391
|
USAGE
|
|
@@ -349,32 +396,51 @@ FLAGS
|
|
|
349
396
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
350
397
|
configuration variable is already set.
|
|
351
398
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
352
|
-
--force-overwrite Don't prompt for confirmation when overwriting an existing test
|
|
353
|
-
|
|
354
|
-
--
|
|
355
|
-
--
|
|
399
|
+
--force-overwrite Don't prompt for confirmation when overwriting an existing test (based on API name) in
|
|
400
|
+
your org.
|
|
401
|
+
--preview Preview the test metadata file (AiEvaluationDefinition) without deploying to your org.
|
|
402
|
+
--spec=<value> Path to the test spec YAML file.
|
|
403
|
+
--test-api-name=<value> API name of the new test; the API name must not exist in the org.
|
|
356
404
|
|
|
357
405
|
GLOBAL FLAGS
|
|
358
406
|
--flags-dir=<value> Import flag values from a directory.
|
|
359
407
|
--json Format output as json.
|
|
360
408
|
|
|
361
409
|
DESCRIPTION
|
|
362
|
-
|
|
410
|
+
Create an agent test in your org using a local test spec YAML file.
|
|
363
411
|
|
|
364
|
-
|
|
365
|
-
|
|
412
|
+
To run this command, you must have an agent test spec file, which is a YAML file that lists the test cases for testing
|
|
413
|
+
a specific agent. Use the "agent generate test-spec" CLI command to generate a test spec file. Then specify the file
|
|
414
|
+
to this command with the --spec flag, or run this command with no flags to be prompted.
|
|
366
415
|
|
|
367
|
-
|
|
416
|
+
When this command completes, your org contains the new agent test, which you can view and edit using the Testing
|
|
417
|
+
Center UI. This command also retrieves the metadata component (AiEvaluationDefinition) associated with the new test to
|
|
418
|
+
your local Salesforce DX project and displays its filename.
|
|
419
|
+
|
|
420
|
+
After you've created the test in the org, use the "agent test run" command to run it.
|
|
368
421
|
|
|
369
422
|
EXAMPLES
|
|
370
|
-
|
|
423
|
+
Create an agent test interactively and be prompted for the test spec and API name of the test in the org; use the
|
|
424
|
+
default org:
|
|
425
|
+
|
|
426
|
+
$ sf agent test create
|
|
427
|
+
|
|
428
|
+
Create an agent test and use flags to specify all required information; if a test with same API name already exists
|
|
429
|
+
in the org, overwrite it without confirmation. Use the org with alias "my-org":
|
|
430
|
+
|
|
431
|
+
$ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --test-api-name Resort_Manager_Test \
|
|
432
|
+
--force-overwrite --target-org my-org
|
|
433
|
+
|
|
434
|
+
Preview what the agent test metadata (AiEvaluationDefinition) looks like without deploying it to your default org:
|
|
435
|
+
|
|
436
|
+
$ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --test-api-name Resort_Manager_Test --preview
|
|
371
437
|
```
|
|
372
438
|
|
|
373
|
-
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
439
|
+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/test/create.ts)_
|
|
374
440
|
|
|
375
441
|
## `sf agent test list`
|
|
376
442
|
|
|
377
|
-
List the available tests in
|
|
443
|
+
List the available agent tests in your org.
|
|
378
444
|
|
|
379
445
|
```
|
|
380
446
|
USAGE
|
|
@@ -390,16 +456,22 @@ GLOBAL FLAGS
|
|
|
390
456
|
--json Format output as json.
|
|
391
457
|
|
|
392
458
|
DESCRIPTION
|
|
393
|
-
List the available tests in
|
|
459
|
+
List the available agent tests in your org.
|
|
394
460
|
|
|
395
|
-
|
|
396
|
-
|
|
461
|
+
The command outputs a table with the name (API name) of each test along with its unique ID and the date it was created
|
|
462
|
+
in the org.
|
|
397
463
|
|
|
398
464
|
EXAMPLES
|
|
399
|
-
|
|
465
|
+
List the agent tests in your default org:
|
|
466
|
+
|
|
467
|
+
$ sf agent test list
|
|
468
|
+
|
|
469
|
+
List the agent tests in an org with alias "my-org""
|
|
470
|
+
|
|
471
|
+
$ sf agent test list --target-org my-org
|
|
400
472
|
```
|
|
401
473
|
|
|
402
|
-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
474
|
+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/test/list.ts)_
|
|
403
475
|
|
|
404
476
|
## `sf agent test results`
|
|
405
477
|
|
|
@@ -455,7 +527,7 @@ FLAG DESCRIPTIONS
|
|
|
455
527
|
test results aren't written.
|
|
456
528
|
```
|
|
457
529
|
|
|
458
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
530
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/test/results.ts)_
|
|
459
531
|
|
|
460
532
|
## `sf agent test resume`
|
|
461
533
|
|
|
@@ -518,7 +590,7 @@ FLAG DESCRIPTIONS
|
|
|
518
590
|
test results aren't written.
|
|
519
591
|
```
|
|
520
592
|
|
|
521
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
593
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/test/resume.ts)_
|
|
522
594
|
|
|
523
595
|
## `sf agent test run`
|
|
524
596
|
|
|
@@ -547,13 +619,13 @@ GLOBAL FLAGS
|
|
|
547
619
|
DESCRIPTION
|
|
548
620
|
Start an agent test in your org.
|
|
549
621
|
|
|
550
|
-
Use the --name flag to specify the name of the agent test you want to run
|
|
551
|
-
|
|
622
|
+
Use the --name flag to specify the name of the agent test you want to run. Use the output of the "agent test list"
|
|
623
|
+
command to get the names of all the available agent tests in your org.
|
|
552
624
|
|
|
553
|
-
|
|
554
|
-
"agent test resume" command, with a job ID, that you execute to see the results of the test run, and then
|
|
555
|
-
control of the terminal window to you. Use the --wait flag to specify the number of minutes for the command to
|
|
556
|
-
for the agent test to complete; if the test completes by the end of the wait time, the command displays the test
|
|
625
|
+
By default, this command starts the agent test in your org, but it doesn't wait for the test to finish. Instead, it
|
|
626
|
+
displays the "agent test resume" command, with a job ID, that you execute to see the results of the test run, and then
|
|
627
|
+
returns control of the terminal window to you. Use the --wait flag to specify the number of minutes for the command to
|
|
628
|
+
wait for the agent test to complete; if the test completes by the end of the wait time, the command displays the test
|
|
557
629
|
results. If not, run "agent test resume".
|
|
558
630
|
|
|
559
631
|
By default, this command outputs test results in human-readable tables for each test case, if the test completes in
|
|
@@ -562,17 +634,17 @@ DESCRIPTION
|
|
|
562
634
|
to write the results to a file rather than to the terminal.
|
|
563
635
|
|
|
564
636
|
EXAMPLES
|
|
565
|
-
Start
|
|
637
|
+
Start an agent test called Resort_Manager_Test for an agent in your default org, don't wait for the test to finish:
|
|
566
638
|
|
|
567
|
-
$ sf agent test run --name
|
|
639
|
+
$ sf agent test run --name Resort_Manager_Test
|
|
568
640
|
|
|
569
|
-
Start
|
|
641
|
+
Start an agent test for an agent in an org with alias "my-org" and wait for 10 minutes for the test to finish:
|
|
570
642
|
|
|
571
|
-
$ sf agent test run --name
|
|
643
|
+
$ sf agent test run --name Resort_Manager_Test --wait 10 --target-org my-org
|
|
572
644
|
|
|
573
|
-
Start
|
|
645
|
+
Start an agent test and write the JSON-formatted results into a directory called "test-results":
|
|
574
646
|
|
|
575
|
-
$ sf agent test run --name
|
|
647
|
+
$ sf agent test run --name Resort_Manager_Test --wait 10 --output-dir ./test-results --result-format json
|
|
576
648
|
|
|
577
649
|
FLAG DESCRIPTIONS
|
|
578
650
|
-d, --output-dir=<value> Directory to write the agent test results into.
|
|
@@ -581,6 +653,6 @@ FLAG DESCRIPTIONS
|
|
|
581
653
|
test results aren't written.
|
|
582
654
|
```
|
|
583
655
|
|
|
584
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
656
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.2/src/commands/agent/test/run.ts)_
|
|
585
657
|
|
|
586
658
|
<!-- commandsstop -->
|
|
@@ -142,7 +142,7 @@ function ensureYamlExtension(filePath) {
|
|
|
142
142
|
async function promptUntilUniqueFile(subjectName, filePath) {
|
|
143
143
|
const outputFile = filePath ??
|
|
144
144
|
(await input({
|
|
145
|
-
message: 'Enter a
|
|
145
|
+
message: 'Enter a filepath for the test spec file',
|
|
146
146
|
validate(d) {
|
|
147
147
|
if (!d.length) {
|
|
148
148
|
return 'Path cannot be empty';
|
|
@@ -237,7 +237,7 @@ export default class AgentGenerateTestSpec extends SfCommand {
|
|
|
237
237
|
theme,
|
|
238
238
|
});
|
|
239
239
|
const subjectName = await select({
|
|
240
|
-
message: 'Select the
|
|
240
|
+
message: 'Select the agent to test',
|
|
241
241
|
choices: bots,
|
|
242
242
|
theme,
|
|
243
243
|
});
|
|
@@ -248,7 +248,7 @@ export default class AgentGenerateTestSpec extends SfCommand {
|
|
|
248
248
|
}
|
|
249
249
|
const { genAiPlugins, genAiFunctions } = await getPluginsAndFunctions(subjectName, cs);
|
|
250
250
|
const name = await input({
|
|
251
|
-
message:
|
|
251
|
+
message: "Enter a name for the test; this name will become the test's label when created in the org",
|
|
252
252
|
validate(d) {
|
|
253
253
|
// ensure that it's not empty
|
|
254
254
|
if (!d.length) {
|
|
@@ -259,7 +259,7 @@ export default class AgentGenerateTestSpec extends SfCommand {
|
|
|
259
259
|
theme,
|
|
260
260
|
});
|
|
261
261
|
const description = await input({
|
|
262
|
-
message: 'Enter a description for test
|
|
262
|
+
message: 'Enter a description for the test (optional)',
|
|
263
263
|
theme,
|
|
264
264
|
});
|
|
265
265
|
const testCases = [];
|
|
@@ -270,7 +270,7 @@ export default class AgentGenerateTestSpec extends SfCommand {
|
|
|
270
270
|
testCases.push(await promptForTestCase(genAiPlugins, genAiFunctions));
|
|
271
271
|
} while ( // eslint-disable-next-line no-await-in-loop
|
|
272
272
|
await confirm({
|
|
273
|
-
message: '
|
|
273
|
+
message: 'Do you want to add another test case',
|
|
274
274
|
default: true,
|
|
275
275
|
}));
|
|
276
276
|
this.log();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-spec.js","sourceRoot":"","sources":["../../../../src/commands/agent/generate/test-spec.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OA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AC,QAAQ,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAChE,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,GAAG,CACN,QAAQ,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CACjH,CAAC;QACJ,CAAC;QAED,OAAO;YACL,IAAI;YACJ,QAAQ;SACT,CAAC;IACJ,CAAC;IAES,KAAK,CAAC,KAAiC;QAC/C,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC;QAClB,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC"}
|
|
@@ -5,6 +5,7 @@ export default class AgentTestList extends SfCommand<AgentTestListResult> {
|
|
|
5
5
|
static readonly summary: string;
|
|
6
6
|
static readonly description: string;
|
|
7
7
|
static readonly examples: string[];
|
|
8
|
+
static readonly state = "beta";
|
|
8
9
|
static readonly flags: {
|
|
9
10
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
11
|
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -13,6 +13,7 @@ export default class AgentTestList extends SfCommand {
|
|
|
13
13
|
static summary = messages.getMessage('summary');
|
|
14
14
|
static description = messages.getMessage('description');
|
|
15
15
|
static examples = messages.getMessages('examples');
|
|
16
|
+
static state = 'beta';
|
|
16
17
|
static flags = {
|
|
17
18
|
'target-org': Flags.requiredOrg(),
|
|
18
19
|
'api-version': Flags.orgApiVersion(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/agent/test/list.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;A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IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG,MAAM,CAAC;IAE/B,MAAM,CAAU,KAAK,GAAG;QAC7B,YAAY,EAAE,KAAK,CAAC,WAAW,EAAE;QACjC,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE;KACrC,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAElD,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QAC7F,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,CAAC;QACzC,IAAI,CAAC,KAAK,CAAC;YACT,IAAI,EAAE,OAAO;YACb,OAAO,EAAE;gBACP,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE;gBACjC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;gBACzB,EAAE,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,cAAc,EAAE;aAC7C;YACD,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE;SAC1B,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IACjB,CAAC"}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
Generate an agent template
|
|
3
|
+
Generate an agent template from an existing agent in your DX project so you can then package the template in a managed package.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
At a high-level, agents are defined by the Bot, BotVersion, and GenAiPlanner metadata types. The GenAiPlanner type in turn defines the agent's topics and actions. This command uses the metadata files for these three types, located in your local DX project, to generate a BotTemplate file for a specific agent (Bot). You then use the BotTemplate file, along with the GenAiPlanner file that references the BotTemplate, to package the template in a managed package that you can share between orgs or on AppExchange.
|
|
8
|
+
|
|
9
|
+
Use the --agent-file flag to specify the relative or full pathname of the Bot metadata file, such as force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml. A single Bot can have multiple BotVersions, so use the --agent-version flag to specify the version. The corresponding BotVersion file must exist locally. For example, if you specify "--agent-version 4", then the file force-app/main/default/bots/My_Awesome_Agent/v4.botVersion-meta.xml must exist.
|
|
10
|
+
|
|
11
|
+
The new BotTemplate file is generated in the "botTemplates" directory in your local package directory, and has the name <Agent_API_name>\_v<Version>\_Template.botTemplate-meta.xml, such as force-app/main/default/botTemplates/My_Awesome_Agent_v4_Template.botTemplate-meta.xml. The command displays the full pathname of the generated files when it completes.
|
|
8
12
|
|
|
9
13
|
# examples
|
|
10
14
|
|
|
11
|
-
- Generate an agent template from a Bot metadata file in your project
|
|
15
|
+
- Generate an agent template from a Bot metadata file in your DX project that corresponds to the My_Awesome_Agent agent; use version 1 of the agent.
|
|
12
16
|
|
|
13
17
|
<%= config.bin %> <%= command.id %> --agent-file force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
|
|
14
18
|
|
|
15
19
|
# flags.agent-version.summary
|
|
16
20
|
|
|
17
|
-
Version of the
|
|
21
|
+
Version of the agent (BotVersion).
|
|
18
22
|
|
|
19
23
|
# flags.agent-file.summary
|
|
20
24
|
|
|
21
|
-
|
|
25
|
+
Path to an agent (Bot) metadata file.
|
|
@@ -1,26 +1,47 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Generate an agent test spec, which is a YAML file that lists the test cases for testing a specific agent.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The first step when using Salesforce CLI to create an agent test in your org is to use this interactive command to generate a local YAML-formatted test spec file. The test spec YAML file contains information about the agent being tested, such as its API name, and then one or more test cases. This command uses the metadata components in your DX project when prompting for information, such as the agent API name; it doesn't look in your org.
|
|
8
|
+
|
|
9
|
+
To generate a specific agent test case, this command prompts you for this information; when possible, the command provides a list of options for you to choose from:
|
|
10
|
+
|
|
11
|
+
- Utterance: Natural language statement, question, or command used to test the agent.
|
|
12
|
+
- Expected topic: API name of the topic you expect the agent to use when responding to the utterance.
|
|
13
|
+
- Expected actions: One or more API names of the expection actions the agent takes.
|
|
14
|
+
- Expected outcome: Natural language description of the outcome you expect.
|
|
15
|
+
|
|
16
|
+
When your test spec is ready, you then run the "agent test create" command to actually create the test in your org and synchronize the metadata with your DX project. The metadata type for an agent test is AiEvaluationDefinition.
|
|
17
|
+
|
|
18
|
+
If you have an existing AiEvaluationDefinition metadata XML file in your DX project, you can generate its equivalent YAML test spec file with the --from-definition flag.
|
|
8
19
|
|
|
9
20
|
# flags.from-definition.summary
|
|
10
21
|
|
|
11
|
-
|
|
22
|
+
Filepath to the AIEvaluationDefinition metadata XML file in your DX project that you want to convert to a test spec YAML file.
|
|
12
23
|
|
|
13
24
|
# flags.force-overwrite.summary
|
|
14
25
|
|
|
15
|
-
Don't prompt for confirmation when overwriting an existing test spec file.
|
|
26
|
+
Don't prompt for confirmation when overwriting an existing test spec YAML file.
|
|
16
27
|
|
|
17
28
|
# flags.output-file.summary
|
|
18
29
|
|
|
19
|
-
|
|
30
|
+
Name of the generated test spec YAML file. Default value is "specs/<AGENT_API_NAME>-testSpec.yaml".
|
|
20
31
|
|
|
21
32
|
# examples
|
|
22
33
|
|
|
23
|
-
-
|
|
34
|
+
- Generate an agent test spec YAML file interactively:
|
|
35
|
+
|
|
36
|
+
<%= config.bin %> <%= command.id %>
|
|
37
|
+
|
|
38
|
+
- Generate an agent test spec YAML file and specify a name for the new file; if the file exists, overwrite it without confirmation:
|
|
39
|
+
|
|
40
|
+
<%= config.bin %> <%= command.id %> --output-file specs/Resort_Manager-new-version-testSpec.yaml --force-overwrite
|
|
41
|
+
|
|
42
|
+
- Generate an agent test spec YAML file from an existing AiEvaluationDefinition metadata XML file in your DX project:
|
|
43
|
+
|
|
44
|
+
<%= config.bin %> <%= command.id %> --from-definition force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
|
|
24
45
|
|
|
25
46
|
# info.cancel
|
|
26
47
|
|
|
@@ -28,8 +49,8 @@ Operation canceled.
|
|
|
28
49
|
|
|
29
50
|
# error.InvalidAiEvaluationDefinition
|
|
30
51
|
|
|
31
|
-
File must be an AiEvaluationDefinition metadata file
|
|
52
|
+
File must be an AiEvaluationDefinition metadata XML file.
|
|
32
53
|
|
|
33
54
|
# error.NoAgentsFound
|
|
34
55
|
|
|
35
|
-
No agents found in %s
|
|
56
|
+
No agents found in %s.
|
|
@@ -1,44 +1,56 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Create an agent test in your org using a local test spec YAML file.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
To run this command, you must have an agent test spec file, which is a YAML file that lists the test cases for testing a specific agent. Use the "agent generate test-spec" CLI command to generate a test spec file. Then specify the file to this command with the --spec flag, or run this command with no flags to be prompted.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
When this command completes, your org contains the new agent test, which you can view and edit using the Testing Center UI. This command also retrieves the metadata component (AiEvaluationDefinition) associated with the new test to your local Salesforce DX project and displays its filename.
|
|
10
|
+
|
|
11
|
+
After you've created the test in the org, use the "agent test run" command to run it.
|
|
10
12
|
|
|
11
13
|
# flags.spec.summary
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
Path to the test spec YAML file.
|
|
14
16
|
|
|
15
17
|
# flags.preview.summary
|
|
16
18
|
|
|
17
|
-
Preview the test metadata without deploying to your org.
|
|
19
|
+
Preview the test metadata file (AiEvaluationDefinition) without deploying to your org.
|
|
18
20
|
|
|
19
21
|
# flags.force-overwrite.summary
|
|
20
22
|
|
|
21
|
-
Don't prompt for confirmation when overwriting an existing test.
|
|
23
|
+
Don't prompt for confirmation when overwriting an existing test (based on API name) in your org.
|
|
22
24
|
|
|
23
25
|
# flags.test-api-name.summary
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
API name of the new test; the API name must not exist in the org.
|
|
26
28
|
|
|
27
29
|
# examples
|
|
28
30
|
|
|
29
|
-
-
|
|
31
|
+
- Create an agent test interactively and be prompted for the test spec and API name of the test in the org; use the default org:
|
|
32
|
+
|
|
33
|
+
<%= config.bin %> <%= command.id %>
|
|
34
|
+
|
|
35
|
+
- Create an agent test and use flags to specify all required information; if a test with same API name already exists in the org, overwrite it without confirmation. Use the org with alias "my-org":
|
|
36
|
+
|
|
37
|
+
<%= config.bin %> <%= command.id %> --spec specs/Resort_Manager-testSpec.yaml --test-api-name Resort_Manager_Test --force-overwrite --target-org my-org
|
|
38
|
+
|
|
39
|
+
- Preview what the agent test metadata (AiEvaluationDefinition) looks like without deploying it to your default org:
|
|
40
|
+
|
|
41
|
+
<%= config.bin %> <%= command.id %> --spec specs/Resort_Manager-testSpec.yaml --test-api-name Resort_Manager_Test --preview
|
|
30
42
|
|
|
31
43
|
# prompt.confirm
|
|
32
44
|
|
|
33
|
-
|
|
45
|
+
A test with the API name %s already exists in the org. Do you want to overwrite it?
|
|
34
46
|
|
|
35
47
|
# info.success
|
|
36
48
|
|
|
37
|
-
AiEvaluationDefinition created at %s and deployed to %s
|
|
49
|
+
Local AiEvaluationDefinition metadata XML file created at %s and agent test deployed to %s.
|
|
38
50
|
|
|
39
51
|
# info.preview-success
|
|
40
52
|
|
|
41
|
-
Preview of
|
|
53
|
+
Preview of of the test created at %s.
|
|
42
54
|
|
|
43
55
|
# error.missingRequiredFlags
|
|
44
56
|
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
List the available tests in
|
|
3
|
+
List the available agent tests in your org.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The command outputs a table with the name (API name) of each test along with its unique ID and the date it was created in the org.
|
|
8
8
|
|
|
9
9
|
# examples
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- List the agent tests in your default org:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %>
|
|
14
|
+
|
|
15
|
+
- List the agent tests in an org with alias "my-org""
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --target-org my-org
|
|
@@ -4,9 +4,9 @@ Start an agent test in your org.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
Use the --name flag to specify the name of the agent test you want to run
|
|
7
|
+
Use the --name flag to specify the name of the agent test you want to run. Use the output of the "agent test list" command to get the names of all the available agent tests in your org.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
By default, this command starts the agent test in your org, but it doesn't wait for the test to finish. Instead, it displays the "agent test resume" command, with a job ID, that you execute to see the results of the test run, and then returns control of the terminal window to you. Use the --wait flag to specify the number of minutes for the command to wait for the agent test to complete; if the test completes by the end of the wait time, the command displays the test results. If not, run "agent test resume".
|
|
10
10
|
|
|
11
11
|
By default, this command outputs test results in human-readable tables for each test case, if the test completes in time. The tables show whether the test case passed, the expected and actual values, the test score, how long the test took, and more. Use the --result-format to display the test results in JSON or Junit format. Use the --output-dir flag to write the results to a file rather than to the terminal.
|
|
12
12
|
|
|
@@ -20,14 +20,14 @@ Number of minutes to wait for the command to complete and display results to the
|
|
|
20
20
|
|
|
21
21
|
# examples
|
|
22
22
|
|
|
23
|
-
- Start
|
|
23
|
+
- Start an agent test called Resort_Manager_Test for an agent in your default org, don't wait for the test to finish:
|
|
24
24
|
|
|
25
|
-
<%= config.bin %> <%= command.id %> --name
|
|
25
|
+
<%= config.bin %> <%= command.id %> --name Resort_Manager_Test
|
|
26
26
|
|
|
27
|
-
- Start
|
|
27
|
+
- Start an agent test for an agent in an org with alias "my-org" and wait for 10 minutes for the test to finish:
|
|
28
28
|
|
|
29
|
-
<%= config.bin %> <%= command.id %> --name
|
|
29
|
+
<%= config.bin %> <%= command.id %> --name Resort_Manager_Test --wait 10 --target-org my-org
|
|
30
30
|
|
|
31
|
-
- Start
|
|
31
|
+
- Start an agent test and write the JSON-formatted results into a directory called "test-results":
|
|
32
32
|
|
|
33
|
-
<%= config.bin %> <%= command.id %> --name
|
|
33
|
+
<%= config.bin %> <%= command.id %> --name Resort_Manager_Test --wait 10 --output-dir ./test-results --result-format json
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/plugin-agent",
|
|
9
|
-
"version": "1.18.
|
|
9
|
+
"version": "1.18.2",
|
|
10
10
|
"license": "BSD-3-Clause",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@inquirer/core": "^10.1.6",
|
package/oclif.manifest.json
CHANGED
|
@@ -367,9 +367,9 @@
|
|
|
367
367
|
"agent:generate:template": {
|
|
368
368
|
"aliases": [],
|
|
369
369
|
"args": {},
|
|
370
|
-
"description": "
|
|
370
|
+
"description": "At a high-level, agents are defined by the Bot, BotVersion, and GenAiPlanner metadata types. The GenAiPlanner type in turn defines the agent's topics and actions. This command uses the metadata files for these three types, located in your local DX project, to generate a BotTemplate file for a specific agent (Bot). You then use the BotTemplate file, along with the GenAiPlanner file that references the BotTemplate, to package the template in a managed package that you can share between orgs or on AppExchange.\n\nUse the --agent-file flag to specify the relative or full pathname of the Bot metadata file, such as force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml. A single Bot can have multiple BotVersions, so use the --agent-version flag to specify the version. The corresponding BotVersion file must exist locally. For example, if you specify \"--agent-version 4\", then the file force-app/main/default/bots/My_Awesome_Agent/v4.botVersion-meta.xml must exist.\n\nThe new BotTemplate file is generated in the \"botTemplates\" directory in your local package directory, and has the name <Agent_API_name>\\_v<Version>\\_Template.botTemplate-meta.xml, such as force-app/main/default/botTemplates/My_Awesome_Agent_v4_Template.botTemplate-meta.xml. The command displays the full pathname of the generated files when it completes.",
|
|
371
371
|
"examples": [
|
|
372
|
-
"Generate an agent template from a Bot metadata file in your project
|
|
372
|
+
"Generate an agent template from a Bot metadata file in your DX project that corresponds to the My_Awesome_Agent agent; use version 1 of the agent.\n<%= config.bin %> <%= command.id %> --agent-file force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1"
|
|
373
373
|
],
|
|
374
374
|
"flags": {
|
|
375
375
|
"json": {
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
"agent-version": {
|
|
408
408
|
"name": "agent-version",
|
|
409
409
|
"required": true,
|
|
410
|
-
"summary": "Version of the
|
|
410
|
+
"summary": "Version of the agent (BotVersion).",
|
|
411
411
|
"hasDynamicHelp": false,
|
|
412
412
|
"multiple": false,
|
|
413
413
|
"type": "option"
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
"char": "f",
|
|
417
417
|
"name": "agent-file",
|
|
418
418
|
"required": true,
|
|
419
|
-
"summary": "
|
|
419
|
+
"summary": "Path to an agent (Bot) metadata file.",
|
|
420
420
|
"hasDynamicHelp": false,
|
|
421
421
|
"multiple": false,
|
|
422
422
|
"type": "option"
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
"pluginType": "core",
|
|
431
431
|
"state": "beta",
|
|
432
432
|
"strict": true,
|
|
433
|
-
"summary": "Generate an agent template
|
|
433
|
+
"summary": "Generate an agent template from an existing agent in your DX project so you can then package the template in a managed package.",
|
|
434
434
|
"enableJsonFlag": true,
|
|
435
435
|
"requiresProject": true,
|
|
436
436
|
"isESM": true,
|
|
@@ -454,9 +454,11 @@
|
|
|
454
454
|
"agent:generate:test-spec": {
|
|
455
455
|
"aliases": [],
|
|
456
456
|
"args": {},
|
|
457
|
-
"description": "
|
|
457
|
+
"description": "The first step when using Salesforce CLI to create an agent test in your org is to use this interactive command to generate a local YAML-formatted test spec file. The test spec YAML file contains information about the agent being tested, such as its API name, and then one or more test cases. This command uses the metadata components in your DX project when prompting for information, such as the agent API name; it doesn't look in your org.\n\nTo generate a specific agent test case, this command prompts you for this information; when possible, the command provides a list of options for you to choose from:\n\n- Utterance: Natural language statement, question, or command used to test the agent.\n- Expected topic: API name of the topic you expect the agent to use when responding to the utterance.\n- Expected actions: One or more API names of the expection actions the agent takes.\n- Expected outcome: Natural language description of the outcome you expect.\n\nWhen your test spec is ready, you then run the \"agent test create\" command to actually create the test in your org and synchronize the metadata with your DX project. The metadata type for an agent test is AiEvaluationDefinition.\n\nIf you have an existing AiEvaluationDefinition metadata XML file in your DX project, you can generate its equivalent YAML test spec file with the --from-definition flag.",
|
|
458
458
|
"examples": [
|
|
459
|
-
"<%= config.bin %> <%= command.id %>"
|
|
459
|
+
"Generate an agent test spec YAML file interactively:\n<%= config.bin %> <%= command.id %>",
|
|
460
|
+
"Generate an agent test spec YAML file and specify a name for the new file; if the file exists, overwrite it without confirmation:\n<%= config.bin %> <%= command.id %> --output-file specs/Resort_Manager-new-version-testSpec.yaml --force-overwrite",
|
|
461
|
+
"Generate an agent test spec YAML file from an existing AiEvaluationDefinition metadata XML file in your DX project:\n<%= config.bin %> <%= command.id %> --from-definition force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml"
|
|
460
462
|
],
|
|
461
463
|
"flags": {
|
|
462
464
|
"flags-dir": {
|
|
@@ -470,21 +472,21 @@
|
|
|
470
472
|
"from-definition": {
|
|
471
473
|
"char": "d",
|
|
472
474
|
"name": "from-definition",
|
|
473
|
-
"summary": "
|
|
475
|
+
"summary": "Filepath to the AIEvaluationDefinition metadata XML file in your DX project that you want to convert to a test spec YAML file.",
|
|
474
476
|
"hasDynamicHelp": false,
|
|
475
477
|
"multiple": false,
|
|
476
478
|
"type": "option"
|
|
477
479
|
},
|
|
478
480
|
"force-overwrite": {
|
|
479
481
|
"name": "force-overwrite",
|
|
480
|
-
"summary": "Don't prompt for confirmation when overwriting an existing test spec file.",
|
|
482
|
+
"summary": "Don't prompt for confirmation when overwriting an existing test spec YAML file.",
|
|
481
483
|
"allowNo": false,
|
|
482
484
|
"type": "boolean"
|
|
483
485
|
},
|
|
484
486
|
"output-file": {
|
|
485
487
|
"char": "f",
|
|
486
488
|
"name": "output-file",
|
|
487
|
-
"summary": "
|
|
489
|
+
"summary": "Name of the generated test spec YAML file. Default value is \"specs/<AGENT_API_NAME>-testSpec.yaml\".",
|
|
488
490
|
"hasDynamicHelp": false,
|
|
489
491
|
"multiple": false,
|
|
490
492
|
"type": "option"
|
|
@@ -498,7 +500,7 @@
|
|
|
498
500
|
"pluginType": "core",
|
|
499
501
|
"state": "beta",
|
|
500
502
|
"strict": true,
|
|
501
|
-
"summary": "
|
|
503
|
+
"summary": "Generate an agent test spec, which is a YAML file that lists the test cases for testing a specific agent.",
|
|
502
504
|
"enableJsonFlag": false,
|
|
503
505
|
"isESM": true,
|
|
504
506
|
"relativePath": [
|
|
@@ -607,9 +609,11 @@
|
|
|
607
609
|
"agent:test:create": {
|
|
608
610
|
"aliases": [],
|
|
609
611
|
"args": {},
|
|
610
|
-
"description": "
|
|
612
|
+
"description": "To run this command, you must have an agent test spec file, which is a YAML file that lists the test cases for testing a specific agent. Use the \"agent generate test-spec\" CLI command to generate a test spec file. Then specify the file to this command with the --spec flag, or run this command with no flags to be prompted.\n\nWhen this command completes, your org contains the new agent test, which you can view and edit using the Testing Center UI. This command also retrieves the metadata component (AiEvaluationDefinition) associated with the new test to your local Salesforce DX project and displays its filename.\n\nAfter you've created the test in the org, use the \"agent test run\" command to run it.",
|
|
611
613
|
"examples": [
|
|
612
|
-
"<%= config.bin %> <%= command.id %>"
|
|
614
|
+
"Create an agent test interactively and be prompted for the test spec and API name of the test in the org; use the default org:\n<%= config.bin %> <%= command.id %>",
|
|
615
|
+
"Create an agent test and use flags to specify all required information; if a test with same API name already exists in the org, overwrite it without confirmation. Use the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --spec specs/Resort_Manager-testSpec.yaml --test-api-name Resort_Manager_Test --force-overwrite --target-org my-org",
|
|
616
|
+
"Preview what the agent test metadata (AiEvaluationDefinition) looks like without deploying it to your default org:\n<%= config.bin %> <%= command.id %> --spec specs/Resort_Manager-testSpec.yaml --test-api-name Resort_Manager_Test --preview"
|
|
613
617
|
],
|
|
614
618
|
"flags": {
|
|
615
619
|
"json": {
|
|
@@ -629,14 +633,14 @@
|
|
|
629
633
|
},
|
|
630
634
|
"test-api-name": {
|
|
631
635
|
"name": "test-api-name",
|
|
632
|
-
"summary": "
|
|
636
|
+
"summary": "API name of the new test; the API name must not exist in the org.",
|
|
633
637
|
"hasDynamicHelp": false,
|
|
634
638
|
"multiple": false,
|
|
635
639
|
"type": "option"
|
|
636
640
|
},
|
|
637
641
|
"spec": {
|
|
638
642
|
"name": "spec",
|
|
639
|
-
"summary": "
|
|
643
|
+
"summary": "Path to the test spec YAML file.",
|
|
640
644
|
"hasDynamicHelp": false,
|
|
641
645
|
"multiple": false,
|
|
642
646
|
"type": "option"
|
|
@@ -660,13 +664,13 @@
|
|
|
660
664
|
},
|
|
661
665
|
"preview": {
|
|
662
666
|
"name": "preview",
|
|
663
|
-
"summary": "Preview the test metadata without deploying to your org.",
|
|
667
|
+
"summary": "Preview the test metadata file (AiEvaluationDefinition) without deploying to your org.",
|
|
664
668
|
"allowNo": false,
|
|
665
669
|
"type": "boolean"
|
|
666
670
|
},
|
|
667
671
|
"force-overwrite": {
|
|
668
672
|
"name": "force-overwrite",
|
|
669
|
-
"summary": "Don't prompt for confirmation when overwriting an existing test.",
|
|
673
|
+
"summary": "Don't prompt for confirmation when overwriting an existing test (based on API name) in your org.",
|
|
670
674
|
"allowNo": false,
|
|
671
675
|
"type": "boolean"
|
|
672
676
|
}
|
|
@@ -679,7 +683,7 @@
|
|
|
679
683
|
"pluginType": "core",
|
|
680
684
|
"state": "beta",
|
|
681
685
|
"strict": true,
|
|
682
|
-
"summary": "
|
|
686
|
+
"summary": "Create an agent test in your org using a local test spec YAML file.",
|
|
683
687
|
"enableJsonFlag": true,
|
|
684
688
|
"isESM": true,
|
|
685
689
|
"relativePath": [
|
|
@@ -702,9 +706,10 @@
|
|
|
702
706
|
"agent:test:list": {
|
|
703
707
|
"aliases": [],
|
|
704
708
|
"args": {},
|
|
705
|
-
"description": "
|
|
709
|
+
"description": "The command outputs a table with the name (API name) of each test along with its unique ID and the date it was created in the org.",
|
|
706
710
|
"examples": [
|
|
707
|
-
"<%= config.bin %> <%= command.id %>"
|
|
711
|
+
"List the agent tests in your default org:\n<%= config.bin %> <%= command.id %>",
|
|
712
|
+
"List the agent tests in an org with alias \"my-org\"\"\n<%= config.bin %> <%= command.id %> --target-org my-org"
|
|
708
713
|
],
|
|
709
714
|
"flags": {
|
|
710
715
|
"json": {
|
|
@@ -746,8 +751,9 @@
|
|
|
746
751
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
747
752
|
"pluginName": "@salesforce/plugin-agent",
|
|
748
753
|
"pluginType": "core",
|
|
754
|
+
"state": "beta",
|
|
749
755
|
"strict": true,
|
|
750
|
-
"summary": "List the available tests in
|
|
756
|
+
"summary": "List the available agent tests in your org.",
|
|
751
757
|
"enableJsonFlag": true,
|
|
752
758
|
"isESM": true,
|
|
753
759
|
"relativePath": [
|
|
@@ -991,11 +997,11 @@
|
|
|
991
997
|
"agent:test:run": {
|
|
992
998
|
"aliases": [],
|
|
993
999
|
"args": {},
|
|
994
|
-
"description": "Use the --name flag to specify the name of the agent test you want to run
|
|
1000
|
+
"description": "Use the --name flag to specify the name of the agent test you want to run. Use the output of the \"agent test list\" command to get the names of all the available agent tests in your org.\n\nBy default, this command starts the agent test in your org, but it doesn't wait for the test to finish. Instead, it displays the \"agent test resume\" command, with a job ID, that you execute to see the results of the test run, and then returns control of the terminal window to you. Use the --wait flag to specify the number of minutes for the command to wait for the agent test to complete; if the test completes by the end of the wait time, the command displays the test results. If not, run \"agent test resume\".\n\nBy default, this command outputs test results in human-readable tables for each test case, if the test completes in time. The tables show whether the test case passed, the expected and actual values, the test score, how long the test took, and more. Use the --result-format to display the test results in JSON or Junit format. Use the --output-dir flag to write the results to a file rather than to the terminal.",
|
|
995
1001
|
"examples": [
|
|
996
|
-
"Start
|
|
997
|
-
"Start
|
|
998
|
-
"Start
|
|
1002
|
+
"Start an agent test called Resort_Manager_Test for an agent in your default org, don't wait for the test to finish:\n<%= config.bin %> <%= command.id %> --name Resort_Manager_Test",
|
|
1003
|
+
"Start an agent test for an agent in an org with alias \"my-org\" and wait for 10 minutes for the test to finish:\n<%= config.bin %> <%= command.id %> --name Resort_Manager_Test --wait 10 --target-org my-org",
|
|
1004
|
+
"Start an agent test and write the JSON-formatted results into a directory called \"test-results\":\n<%= config.bin %> <%= command.id %> --name Resort_Manager_Test --wait 10 --output-dir ./test-results --result-format json"
|
|
999
1005
|
],
|
|
1000
1006
|
"flags": {
|
|
1001
1007
|
"json": {
|
|
@@ -1100,5 +1106,5 @@
|
|
|
1100
1106
|
]
|
|
1101
1107
|
}
|
|
1102
1108
|
},
|
|
1103
|
-
"version": "1.18.
|
|
1109
|
+
"version": "1.18.2"
|
|
1104
1110
|
}
|
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.18.
|
|
4
|
+
"version": "1.18.2",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
"exports": "./lib/index.js",
|
|
230
230
|
"type": "module",
|
|
231
231
|
"sfdx": {
|
|
232
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.18.
|
|
233
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.18.
|
|
232
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.18.2.crt",
|
|
233
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.18.2.sig"
|
|
234
234
|
}
|
|
235
235
|
}
|