|
1 | 1 | # summary |
2 | 2 |
|
3 | | -Generate an authoring bundle from an agent specification. |
| 3 | +Generate a local authoring bundle from an existing agent spec YAML file. |
4 | 4 |
|
5 | 5 | # description |
6 | 6 |
|
7 | | -Generates an authoring bundle containing Agent and its meta.xml file from an agent specification file. |
| 7 | +Authoring bundles are metadata types that represent the next-gen Salesforce agents. Their exact metadata name is AiAuthoringBundle and they consist of a standard "\*-meta.xml" metadata file and an agent file (with extension ".agent") that fully describes the next-gen agent. Use this command to generate an authoring bundle based on an agent spec YAML file, which you create with the "agent create agent-spec" command. |
| 8 | + |
| 9 | +By default, authoring bundles are generated in the force-app/main/default/aiAuthoringBundles/<api-name> directory. Use the --output-dir to generate them elsewhere. |
8 | 10 |
|
9 | 11 | # flags.spec.summary |
10 | 12 |
|
11 | | -Path to the agent specification file. |
| 13 | +Path to the agent spec YAML file. |
12 | 14 |
|
13 | 15 | # flags.output-dir.summary |
14 | 16 |
|
15 | | -Directory where the authoring bundle files will be generated. |
| 17 | +Directory where the authoring bundle files are generated. |
16 | 18 |
|
17 | 19 | # flags.name.summary |
18 | 20 |
|
19 | 21 | Name (label) of the authoring bundle. |
20 | 22 |
|
21 | 23 | # flags.api-name.summary |
22 | 24 |
|
23 | | -API name of the new authoring bundle; if not specified, the API name is derived from the authoring bundle name (label); the API name must not exist in the org. |
| 25 | +API name of the new authoring bundle; if not specified, the API name is derived from the authoring bundle name (label); the API name can't exist in the org. |
24 | 26 |
|
25 | 27 | # flags.api-name.prompt |
26 | 28 |
|
27 | 29 | API name of the new authoring bundle |
28 | 30 |
|
29 | 31 | # examples |
30 | 32 |
|
31 | | -- Generate an authoring bundle from a specification file: |
32 | | - <%= config.bin %> <%= command.id %> --spec-file path/to/spec.yaml --name "My Authoring Bundle" |
| 33 | +- Generate an authoring bundle from the "specs/agentSpec.yaml" agent spec YAML file and give it the label "My Authoring Bundle": |
| 34 | + |
| 35 | + <%= config.bin %> <%= command.id %> --spec-file specs/agentSpec.yaml --name "My Authoring Bundle" |
| 36 | + |
| 37 | +- Same as previous example, but generate the files in the other-package-dir/main/default/aiAuthoringBundles directory: |
33 | 38 |
|
34 | | -- Generate an authoring bundle with a custom output directory: |
35 | | - <%= config.bin %> <%= command.id %> --spec-file path/to/spec.yaml --name "My Authoring Bundle" --output-dir path/to/output |
| 39 | + <%= config.bin %> <%= command.id %> --spec-file specs/agentSpec.yaml --name "My Authoring Bundle" --output-dir other-package-dir/main/default/aiAuthoringBundles |
36 | 40 |
|
37 | 41 | # error.no-spec-file |
38 | 42 |
|
39 | | -No agent specification file found at the specified path. |
| 43 | +No agent spec YAML file found at the specified path. |
40 | 44 |
|
41 | 45 | # error.invalid-spec-file |
42 | 46 |
|
43 | | -The specified file is not a valid agent specification file. |
| 47 | +The specified file is not a valid agent spec YAML file. |
44 | 48 |
|
45 | 49 | # error.failed-to-create-agent |
46 | 50 |
|
47 | | -Failed to create Agent from the agent specification. |
| 51 | +Failed to create a next-gen agent from the agent spec YAML file. |
0 commit comments