@salesforce/plugin-agent 1.18.0 → 1.18.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 +34 -17
- package/messages/agent.generate.template.md +9 -5
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +6 -6
- 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.1/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.1/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,18 +260,35 @@ 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.1/src/commands/agent/generate/template.ts)_
|
|
275
292
|
|
|
276
293
|
## `sf agent generate test-spec`
|
|
277
294
|
|
|
@@ -299,7 +316,7 @@ EXAMPLES
|
|
|
299
316
|
$ sf agent generate test-spec
|
|
300
317
|
```
|
|
301
318
|
|
|
302
|
-
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
319
|
+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/generate/test-spec.ts)_
|
|
303
320
|
|
|
304
321
|
## `sf agent preview`
|
|
305
322
|
|
|
@@ -334,7 +351,7 @@ FLAG DESCRIPTIONS
|
|
|
334
351
|
the API name of the agent? (TBD based on agents library)
|
|
335
352
|
```
|
|
336
353
|
|
|
337
|
-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
354
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/preview.ts)_
|
|
338
355
|
|
|
339
356
|
## `sf agent test create`
|
|
340
357
|
|
|
@@ -370,7 +387,7 @@ EXAMPLES
|
|
|
370
387
|
$ sf agent test create
|
|
371
388
|
```
|
|
372
389
|
|
|
373
|
-
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
390
|
+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/test/create.ts)_
|
|
374
391
|
|
|
375
392
|
## `sf agent test list`
|
|
376
393
|
|
|
@@ -399,7 +416,7 @@ EXAMPLES
|
|
|
399
416
|
$ sf agent test list
|
|
400
417
|
```
|
|
401
418
|
|
|
402
|
-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
419
|
+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/test/list.ts)_
|
|
403
420
|
|
|
404
421
|
## `sf agent test results`
|
|
405
422
|
|
|
@@ -455,7 +472,7 @@ FLAG DESCRIPTIONS
|
|
|
455
472
|
test results aren't written.
|
|
456
473
|
```
|
|
457
474
|
|
|
458
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
475
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/test/results.ts)_
|
|
459
476
|
|
|
460
477
|
## `sf agent test resume`
|
|
461
478
|
|
|
@@ -518,7 +535,7 @@ FLAG DESCRIPTIONS
|
|
|
518
535
|
test results aren't written.
|
|
519
536
|
```
|
|
520
537
|
|
|
521
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
538
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/test/resume.ts)_
|
|
522
539
|
|
|
523
540
|
## `sf agent test run`
|
|
524
541
|
|
|
@@ -581,6 +598,6 @@ FLAG DESCRIPTIONS
|
|
|
581
598
|
test results aren't written.
|
|
582
599
|
```
|
|
583
600
|
|
|
584
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.
|
|
601
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/test/run.ts)_
|
|
585
602
|
|
|
586
603
|
<!-- commandsstop -->
|
|
@@ -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.
|
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.1",
|
|
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.1",
|
|
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,
|
|
@@ -1100,5 +1100,5 @@
|
|
|
1100
1100
|
]
|
|
1101
1101
|
}
|
|
1102
1102
|
},
|
|
1103
|
-
"version": "1.18.
|
|
1103
|
+
"version": "1.18.1"
|
|
1104
1104
|
}
|
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.1",
|
|
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.1.crt",
|
|
233
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.18.1.sig"
|
|
234
234
|
}
|
|
235
235
|
}
|