@salesforce/plugin-agent 1.13.1 → 1.13.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 +58 -40
- package/lib/commands/agent/generate/agent-spec.d.ts +1 -0
- package/lib/commands/agent/generate/agent-spec.js +1 -0
- package/lib/commands/agent/generate/agent-spec.js.map +1 -1
- package/messages/agent.create.md +13 -9
- package/messages/agent.generate.agent-spec.md +18 -6
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +11 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -98,33 +98,40 @@ GLOBAL FLAGS
|
|
|
98
98
|
DESCRIPTION
|
|
99
99
|
Create an agent in your org using a local agent spec file.
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
with the name (label) of the new agent
|
|
101
|
+
To run this comand, you must have an agent spec file, which is a YAML file that define the agent properties and
|
|
102
|
+
contains a list of AI-generated topics. Topics define the range of jobs the agent can handle. Use the "agent generate
|
|
103
|
+
agent-spec" CLI command to generate an agent spec file. Then specify the file to this command using the --spec flag,
|
|
104
|
+
along with the name (label) of the new agent with the --agent-name flag. If you don't specify any of the required
|
|
105
|
+
flags, the command prompts you.
|
|
105
106
|
|
|
106
|
-
When this command
|
|
107
|
-
agent's topics are the same as the ones listed in the agent spec file. The agent might also have
|
|
108
|
-
actions. This command also retrieves all the metadata files associated with the
|
|
109
|
-
project.
|
|
107
|
+
When this command completes, your org contains the new agent, which you can then edit and customize in the Agent
|
|
108
|
+
Builder UI. The new agent's topics are the same as the ones listed in the agent spec file. The agent might also have
|
|
109
|
+
some AI-generated actions, or you can add them. This command also retrieves all the metadata files associated with the
|
|
110
|
+
new agent to your local Salesforce DX project.
|
|
110
111
|
|
|
111
|
-
Use the --preview flag to review what the agent looks like without actually saving it in your org.
|
|
112
|
-
creates a JSON file with all the agent details
|
|
112
|
+
Use the --preview flag to review what the agent looks like without actually saving it in your org. When previewing,
|
|
113
|
+
the command creates a JSON file in the current directory with all the agent details.
|
|
113
114
|
|
|
114
|
-
To open the new agent in your org's Agent Builder UI, run this command: "sf org open agent --name
|
|
115
|
-
<api-name-of-your-agent>".
|
|
115
|
+
To open the new agent in your org's Agent Builder UI, run this command: "sf org open agent --name <agent-api-name>".
|
|
116
116
|
|
|
117
117
|
EXAMPLES
|
|
118
|
-
Create an agent
|
|
118
|
+
Create an agent by being prompted for the required information, such as the agent spec file, agent name, and agent
|
|
119
|
+
API name and then create it in your default org:
|
|
119
120
|
|
|
120
|
-
$ sf agent create
|
|
121
|
+
$ sf agent create
|
|
121
122
|
|
|
122
|
-
|
|
123
|
+
Create an agent by specifying the agent name, API name, and spec file with flags; use the org with alias "my-org";
|
|
124
|
+
the command fails if the API name is already being used in your org:
|
|
123
125
|
|
|
124
|
-
$ sf agent create --agent-name
|
|
126
|
+
$ sf agent create --agent-name "Resort Manager" --agent-api-name Resort_Manager --spec \
|
|
127
|
+
specs/resortManagerAgent.yaml --target-org my-org
|
|
128
|
+
|
|
129
|
+
Preview the creation of an agent named "Resort Manager" and use your default org:
|
|
130
|
+
|
|
131
|
+
$ sf agent create --agent-name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
|
|
125
132
|
```
|
|
126
133
|
|
|
127
|
-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.
|
|
134
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.2/src/commands/agent/create.ts)_
|
|
128
135
|
|
|
129
136
|
## `sf agent generate agent-spec`
|
|
130
137
|
|
|
@@ -140,7 +147,7 @@ USAGE
|
|
|
140
147
|
FLAGS
|
|
141
148
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
142
149
|
configuration variable is already set.
|
|
143
|
-
-p, --no-prompt Don't prompt the user to confirm spec file
|
|
150
|
+
-p, --no-prompt Don't prompt the user to confirm that an existing spec file will be overwritten.
|
|
144
151
|
--agent-user=<value> Username of a user in your org to assign to your agent; determines what your agent
|
|
145
152
|
can access and do.
|
|
146
153
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
@@ -163,7 +170,8 @@ FLAGS
|
|
|
163
170
|
--tone=<option> Conversational style of the agent, such as how it expresses your brand personality
|
|
164
171
|
in its messages through word choice, punctuation, and sentence structure.
|
|
165
172
|
<options: formal|casual|neutral>
|
|
166
|
-
--type=<option> Type of agent to create.
|
|
173
|
+
--type=<option> Type of agent to create. Internal types are copilots used internally by your
|
|
174
|
+
company and customer types are the agents you create for your customers.
|
|
167
175
|
<options: customer|internal>
|
|
168
176
|
|
|
169
177
|
GLOBAL FLAGS
|
|
@@ -173,25 +181,26 @@ GLOBAL FLAGS
|
|
|
173
181
|
DESCRIPTION
|
|
174
182
|
Generate an agent spec, which is a YAML file that captures what an agent can do.
|
|
175
183
|
|
|
176
|
-
|
|
184
|
+
The first step in creating an agent in your org with Salesforce CLI is to generate an agent spec using this command.
|
|
177
185
|
An agent spec is a YAML-formatted file that contains information about the agent, such as its role and company
|
|
178
186
|
description, and then an AI-generated list of topics based on this information. Topics define the range of jobs your
|
|
179
187
|
agent can handle.
|
|
180
188
|
|
|
181
189
|
Use flags, such as --role and --company-description, to provide details about your company and the role that the agent
|
|
182
|
-
plays in your company. If you prefer, you can also be prompted for the information
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
topic.
|
|
188
|
-
|
|
189
|
-
You can iterate the spec generation process by using the --spec flag to pass an existing agent spec file to this
|
|
190
|
+
plays in your company. If you prefer, you can also be prompted for the basic information; use --full-interview to be
|
|
191
|
+
prompted for all required and optional properties. Upon command execution, the large language model (LLM) associated
|
|
192
|
+
with your org uses the provided information to generate a list of topics for the agent. Because the LLM uses the
|
|
193
|
+
company and role information to generate the topics, we recommend that you provide accurate, complete, and specific
|
|
194
|
+
details so the LLM generates the best and most relevant topics. Once generated, you can edit the spec file; for
|
|
195
|
+
example, you can remove topics that don't apply or change a topic's description.
|
|
196
|
+
|
|
197
|
+
You can also iterate the spec generation process by using the --spec flag to pass an existing agent spec file to this
|
|
190
198
|
command, and then using the --role, --company-description, etc, flags to refine your agent properties. Iteratively
|
|
191
199
|
improving the description of your agent allows the LLM to generate progressively better topics.
|
|
192
200
|
|
|
193
|
-
You can also specify a custom prompt template
|
|
194
|
-
|
|
201
|
+
You can also specify other agent properties, such as a custom prompt template, how to ground the prompt template to
|
|
202
|
+
add context to the agent's prompts, the tone of the prompts, and the username of a user in the org to assign to the
|
|
203
|
+
agent.
|
|
195
204
|
|
|
196
205
|
When your agent spec is ready, you then create the agent in your org by running the "agent create" CLI command and
|
|
197
206
|
specifying the spec with the --spec flag.
|
|
@@ -209,15 +218,24 @@ EXAMPLES
|
|
|
209
218
|
|
|
210
219
|
$ sf agent generate agent-spec --max-topics 5 --output-file specs/resortManagerAgent.yaml --target-org my-org
|
|
211
220
|
|
|
221
|
+
Be prompted for all required and optional agent properties; use your default org:
|
|
222
|
+
|
|
223
|
+
$ sf agent generate agent-spec --full-interview
|
|
224
|
+
|
|
212
225
|
Specify an existing agent spec file called "specs/resortManagerAgent.yaml", and then overwrite it with a new version
|
|
213
226
|
that contains newly AI-generated topics based on the updated role information passed in with the --role flag:
|
|
214
227
|
|
|
215
228
|
$ sf agent generate agent-spec --spec specs/resortManagerAgent.yaml --output-file specs/resortManagerAgent.yaml \
|
|
216
229
|
--role "Field customer complaints, manage employee schedules, and ensure all resort operations are running \
|
|
217
|
-
smoothly"
|
|
230
|
+
smoothly"
|
|
231
|
+
|
|
232
|
+
Specify that the conversational tone of the agent is formal and to attach the "resortmanager@myorg.com" username to
|
|
233
|
+
it; be prompted for the required properties and use your default org:
|
|
234
|
+
|
|
235
|
+
$ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
|
|
218
236
|
```
|
|
219
237
|
|
|
220
|
-
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.
|
|
238
|
+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.2/src/commands/agent/generate/agent-spec.ts)_
|
|
221
239
|
|
|
222
240
|
## `sf agent generate test-spec`
|
|
223
241
|
|
|
@@ -240,7 +258,7 @@ EXAMPLES
|
|
|
240
258
|
$ sf agent generate test-spec
|
|
241
259
|
```
|
|
242
260
|
|
|
243
|
-
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.
|
|
261
|
+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.2/src/commands/agent/generate/test-spec.ts)_
|
|
244
262
|
|
|
245
263
|
## `sf agent preview`
|
|
246
264
|
|
|
@@ -275,7 +293,7 @@ FLAG DESCRIPTIONS
|
|
|
275
293
|
the API name of the agent? (TBD based on agents library)
|
|
276
294
|
```
|
|
277
295
|
|
|
278
|
-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.
|
|
296
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.2/src/commands/agent/preview.ts)_
|
|
279
297
|
|
|
280
298
|
## `sf agent test cancel`
|
|
281
299
|
|
|
@@ -312,7 +330,7 @@ EXAMPLES
|
|
|
312
330
|
$ sf agent test cancel --job-id 4KBfake0000003F4AQ --target-org my-org
|
|
313
331
|
```
|
|
314
332
|
|
|
315
|
-
_See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.
|
|
333
|
+
_See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.2/src/commands/agent/test/cancel.ts)_
|
|
316
334
|
|
|
317
335
|
## `sf agent test create`
|
|
318
336
|
|
|
@@ -348,7 +366,7 @@ FLAG DESCRIPTIONS
|
|
|
348
366
|
More information about a flag. Don't repeat the summary.
|
|
349
367
|
```
|
|
350
368
|
|
|
351
|
-
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.
|
|
369
|
+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.2/src/commands/agent/test/create.ts)_
|
|
352
370
|
|
|
353
371
|
## `sf agent test list`
|
|
354
372
|
|
|
@@ -377,7 +395,7 @@ EXAMPLES
|
|
|
377
395
|
$ sf agent test list
|
|
378
396
|
```
|
|
379
397
|
|
|
380
|
-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.
|
|
398
|
+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.2/src/commands/agent/test/list.ts)_
|
|
381
399
|
|
|
382
400
|
## `sf agent test results`
|
|
383
401
|
|
|
@@ -433,7 +451,7 @@ FLAG DESCRIPTIONS
|
|
|
433
451
|
test results aren't written.
|
|
434
452
|
```
|
|
435
453
|
|
|
436
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.
|
|
454
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.2/src/commands/agent/test/results.ts)_
|
|
437
455
|
|
|
438
456
|
## `sf agent test resume`
|
|
439
457
|
|
|
@@ -496,7 +514,7 @@ FLAG DESCRIPTIONS
|
|
|
496
514
|
test results aren't written.
|
|
497
515
|
```
|
|
498
516
|
|
|
499
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.
|
|
517
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.2/src/commands/agent/test/resume.ts)_
|
|
500
518
|
|
|
501
519
|
## `sf agent test run`
|
|
502
520
|
|
|
@@ -559,6 +577,6 @@ FLAG DESCRIPTIONS
|
|
|
559
577
|
test results aren't written.
|
|
560
578
|
```
|
|
561
579
|
|
|
562
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.
|
|
580
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.13.2/src/commands/agent/test/run.ts)_
|
|
563
581
|
|
|
564
582
|
<!-- commandsstop -->
|
|
@@ -16,6 +16,7 @@ const messages = Messages.loadMessages('@salesforce/plugin-agent', 'agent.genera
|
|
|
16
16
|
export const FLAGGABLE_PROMPTS = {
|
|
17
17
|
type: {
|
|
18
18
|
message: messages.getMessage('flags.type.summary'),
|
|
19
|
+
promptMessage: messages.getMessage('flags.type.prompt'),
|
|
19
20
|
validate: (d) => d.length > 0 || 'Type cannot be empty',
|
|
20
21
|
options: ['customer', 'internal'],
|
|
21
22
|
required: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-spec.js","sourceRoot":"","sources":["../../../../src/commands/agent/generate/agent-spec.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,KAAK,EAA8C,MAAM,oBAAoB,CAAC;AACvF,OAAO,EAEL,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAE3B,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,2BAA2B,CAAC,CAAC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O,cAAc,CAAC;AACxB,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,KAAK,EAAE,UAAkB,EAAE,QAAQ,GAAG,KAAK,EAAmB,EAAE;IACxF,IAAI,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC7C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,IAAI,UAAU,CAAC,kBAAkB,CAAC,EAAE,CAAC;YACnC,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;YAClF,IAAI,CAAC,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC;gBAC1C,OAAO,iBAAiB,CACtB,MAAM,aAAa,CAAC;oBAClB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC;oBACzD,QAAQ,EAAE,CAAC,CAAS,EAAoB,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,6BAA6B;iBACzF,CAAC,CACH,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IACD,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1C,kBAAkB,GAAG,GAAG,kBAAkB,OAAO,CAAC;IACpD,CAAC;IACD,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC"}
|
package/messages/agent.create.md
CHANGED
|
@@ -4,13 +4,13 @@ Create an agent in your org using a local agent spec file.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
To run this comand, you must have an agent spec file, which is a YAML file that define the agent properties and contains a list of AI-generated topics. Topics define the range of jobs the agent can handle. Use the "agent generate agent-spec" CLI command to generate an agent spec file. Then specify the file to this command using the --spec flag, along with the name (label) of the new agent with the --agent-name flag. If you don't specify any of the required flags, the command prompts you.
|
|
8
8
|
|
|
9
|
-
When this command
|
|
9
|
+
When this command completes, your org contains the new agent, which you can then edit and customize in the Agent Builder UI. The new agent's topics are the same as the ones listed in the agent spec file. The agent might also have some AI-generated actions, or you can add them. This command also retrieves all the metadata files associated with the new agent to your local Salesforce DX project.
|
|
10
10
|
|
|
11
|
-
Use the --preview flag to review what the agent looks like without actually saving it in your org.
|
|
11
|
+
Use the --preview flag to review what the agent looks like without actually saving it in your org. When previewing, the command creates a JSON file in the current directory with all the agent details.
|
|
12
12
|
|
|
13
|
-
To open the new agent in your org's Agent Builder UI, run this command: "sf org open agent --name <api-name
|
|
13
|
+
To open the new agent in your org's Agent Builder UI, run this command: "sf org open agent --name <agent-api-name>".
|
|
14
14
|
|
|
15
15
|
# flags.spec.summary
|
|
16
16
|
|
|
@@ -42,14 +42,18 @@ Missing required flags: %s
|
|
|
42
42
|
|
|
43
43
|
# error.missingRequiredSpecProperties
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
Your agent spec file is missing these required properties: %s.
|
|
46
46
|
|
|
47
47
|
# examples
|
|
48
48
|
|
|
49
|
-
- Create an agent
|
|
49
|
+
- Create an agent by being prompted for the required information, such as the agent spec file, agent name, and agent API name and then create it in your default org:
|
|
50
50
|
|
|
51
|
-
<%= config.bin %> <%= command.id %>
|
|
51
|
+
<%= config.bin %> <%= command.id %>
|
|
52
52
|
|
|
53
|
-
-
|
|
53
|
+
- Create an agent by specifying the agent name, API name, and spec file with flags; use the org with alias "my-org"; the command fails if the API name is already being used in your org:
|
|
54
54
|
|
|
55
|
-
<%= config.bin %> <%= command.id %> --agent-name
|
|
55
|
+
<%= config.bin %> <%= command.id %> --agent-name "Resort Manager" --agent-api-name Resort_Manager --spec specs/resortManagerAgent.yaml --target-org my-org
|
|
56
|
+
|
|
57
|
+
- Preview the creation of an agent named "Resort Manager" and use your default org:
|
|
58
|
+
|
|
59
|
+
<%= config.bin %> <%= command.id %> --agent-name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
|
|
@@ -4,18 +4,22 @@ Generate an agent spec, which is a YAML file that captures what an agent can do.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The first step in creating an agent in your org with Salesforce CLI is to generate an agent spec using this command. An agent spec is a YAML-formatted file that contains information about the agent, such as its role and company description, and then an AI-generated list of topics based on this information. Topics define the range of jobs your agent can handle.
|
|
8
8
|
|
|
9
|
-
Use flags, such as --role and --company-description, to provide details about your company and the role that the agent plays in your company. If you prefer, you can also be prompted for the information. Upon command execution, the large language model (LLM) associated with your org uses the information
|
|
9
|
+
Use flags, such as --role and --company-description, to provide details about your company and the role that the agent plays in your company. If you prefer, you can also be prompted for the basic information; use --full-interview to be prompted for all required and optional properties. Upon command execution, the large language model (LLM) associated with your org uses the provided information to generate a list of topics for the agent. Because the LLM uses the company and role information to generate the topics, we recommend that you provide accurate, complete, and specific details so the LLM generates the best and most relevant topics. Once generated, you can edit the spec file; for example, you can remove topics that don't apply or change a topic's description.
|
|
10
10
|
|
|
11
|
-
You can iterate the spec generation process by using the --spec flag to pass an existing agent spec file to this command, and then using the --role, --company-description, etc, flags to refine your agent properties. Iteratively improving the description of your agent allows the LLM to generate progressively better topics.
|
|
11
|
+
You can also iterate the spec generation process by using the --spec flag to pass an existing agent spec file to this command, and then using the --role, --company-description, etc, flags to refine your agent properties. Iteratively improving the description of your agent allows the LLM to generate progressively better topics.
|
|
12
12
|
|
|
13
|
-
You can also specify a custom prompt template
|
|
13
|
+
You can also specify other agent properties, such as a custom prompt template, how to ground the prompt template to add context to the agent's prompts, the tone of the prompts, and the username of a user in the org to assign to the agent.
|
|
14
14
|
|
|
15
15
|
When your agent spec is ready, you then create the agent in your org by running the "agent create" CLI command and specifying the spec with the --spec flag.
|
|
16
16
|
|
|
17
17
|
# flags.type.summary
|
|
18
18
|
|
|
19
|
+
Type of agent to create. Internal types are copilots used internally by your company and customer types are the agents you create for your customers.
|
|
20
|
+
|
|
21
|
+
# flags.type.prompt
|
|
22
|
+
|
|
19
23
|
Type of agent to create.
|
|
20
24
|
|
|
21
25
|
# flags.role.summary
|
|
@@ -92,7 +96,7 @@ Language the agent uses in conversations.
|
|
|
92
96
|
|
|
93
97
|
# flags.no-prompt.summary
|
|
94
98
|
|
|
95
|
-
Don't prompt the user to confirm spec file
|
|
99
|
+
Don't prompt the user to confirm that an existing spec file will be overwritten.
|
|
96
100
|
|
|
97
101
|
# examples
|
|
98
102
|
|
|
@@ -104,9 +108,17 @@ Don't prompt the user to confirm spec file overwrite.
|
|
|
104
108
|
|
|
105
109
|
<%= config.bin %> <%= command.id %> --max-topics 5 --output-file specs/resortManagerAgent.yaml --target-org my-org
|
|
106
110
|
|
|
111
|
+
- Be prompted for all required and optional agent properties; use your default org:
|
|
112
|
+
|
|
113
|
+
<%= config.bin %> <%= command.id %> --full-interview
|
|
114
|
+
|
|
107
115
|
- Specify an existing agent spec file called "specs/resortManagerAgent.yaml", and then overwrite it with a new version that contains newly AI-generated topics based on the updated role information passed in with the --role flag:
|
|
108
116
|
|
|
109
|
-
<%= config.bin %> <%= command.id %> --spec specs/resortManagerAgent.yaml --output-file specs/resortManagerAgent.yaml --role "Field customer complaints, manage employee schedules, and ensure all resort operations are running smoothly"
|
|
117
|
+
<%= config.bin %> <%= command.id %> --spec specs/resortManagerAgent.yaml --output-file specs/resortManagerAgent.yaml --role "Field customer complaints, manage employee schedules, and ensure all resort operations are running smoothly"
|
|
118
|
+
|
|
119
|
+
- Specify that the conversational tone of the agent is formal and to attach the "resortmanager@myorg.com" username to it; be prompted for the required properties and use your default org:
|
|
120
|
+
|
|
121
|
+
<%= config.bin %> <%= command.id %> --tone formal --agent-user resortmanager@myorg.com
|
|
110
122
|
|
|
111
123
|
# error.missingRequiredFlags
|
|
112
124
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/plugin-agent",
|
|
9
|
-
"version": "1.13.
|
|
9
|
+
"version": "1.13.2",
|
|
10
10
|
"license": "BSD-3-Clause",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@inquirer/figures": "^1.0.7",
|
package/oclif.manifest.json
CHANGED
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
"agent:create": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "To run this comand, you must have an agent spec file, which is a YAML file that define the agent properties and contains a list of AI-generated topics. Topics define the range of jobs the agent can handle. Use the \"agent generate agent-spec\" CLI command to generate an agent spec file. Then specify the file to this command using the --spec flag, along with the name (label) of the new agent with the --agent-name flag. If you don't specify any of the required flags, the command prompts you.\n\nWhen this command completes, your org contains the new agent, which you can then edit and customize in the Agent Builder UI. The new agent's topics are the same as the ones listed in the agent spec file. The agent might also have some AI-generated actions, or you can add them. This command also retrieves all the metadata files associated with the new agent to your local Salesforce DX project.\n\nUse the --preview flag to review what the agent looks like without actually saving it in your org. When previewing, the command creates a JSON file in the current directory with all the agent details.\n\nTo open the new agent in your org's Agent Builder UI, run this command: \"sf org open agent --name <agent-api-name>\".",
|
|
7
7
|
"examples": [
|
|
8
|
-
"Create an agent
|
|
9
|
-
"
|
|
8
|
+
"Create an agent by being prompted for the required information, such as the agent spec file, agent name, and agent API name and then create it in your default org:\n<%= config.bin %> <%= command.id %>",
|
|
9
|
+
"Create an agent by specifying the agent name, API name, and spec file with flags; use the org with alias \"my-org\"; the command fails if the API name is already being used in your org:\n<%= config.bin %> <%= command.id %> --agent-name \"Resort Manager\" --agent-api-name Resort_Manager --spec specs/resortManagerAgent.yaml --target-org my-org",
|
|
10
|
+
"Preview the creation of an agent named \"Resort Manager\" and use your default org:\n<%= config.bin %> <%= command.id %> --agent-name \"Resort Manager\" --spec specs/resortManagerAgent.yaml --preview"
|
|
10
11
|
],
|
|
11
12
|
"flags": {
|
|
12
13
|
"json": {
|
|
@@ -172,11 +173,13 @@
|
|
|
172
173
|
"agent:generate:agent-spec": {
|
|
173
174
|
"aliases": [],
|
|
174
175
|
"args": {},
|
|
175
|
-
"description": "
|
|
176
|
+
"description": "The first step in creating an agent in your org with Salesforce CLI is to generate an agent spec using this command. An agent spec is a YAML-formatted file that contains information about the agent, such as its role and company description, and then an AI-generated list of topics based on this information. Topics define the range of jobs your agent can handle.\n\nUse flags, such as --role and --company-description, to provide details about your company and the role that the agent plays in your company. If you prefer, you can also be prompted for the basic information; use --full-interview to be prompted for all required and optional properties. Upon command execution, the large language model (LLM) associated with your org uses the provided information to generate a list of topics for the agent. Because the LLM uses the company and role information to generate the topics, we recommend that you provide accurate, complete, and specific details so the LLM generates the best and most relevant topics. Once generated, you can edit the spec file; for example, you can remove topics that don't apply or change a topic's description.\n\nYou can also iterate the spec generation process by using the --spec flag to pass an existing agent spec file to this command, and then using the --role, --company-description, etc, flags to refine your agent properties. Iteratively improving the description of your agent allows the LLM to generate progressively better topics.\n\nYou can also specify other agent properties, such as a custom prompt template, how to ground the prompt template to add context to the agent's prompts, the tone of the prompts, and the username of a user in the org to assign to the agent.\n\nWhen your agent spec is ready, you then create the agent in your org by running the \"agent create\" CLI command and specifying the spec with the --spec flag.",
|
|
176
177
|
"examples": [
|
|
177
178
|
"Generate an agent spec in the default location and use flags to specify the agent properties, such as its role and your company details; use your default org:\n<%= config.bin %> <%= command.id %> --type customer --role \"Field customer complaints and manage employee schedules.\" --company-name \"Coral Cloud Resorts\" --company-description \"Provide customers with exceptional destination activities, unforgettable experiences, and reservation services.\"",
|
|
178
179
|
"Generate an agent spec by being prompted for the required agent properties and generate a maxiumum of 5 topics; write the generated file to the \"specs/resortManagerSpec.yaml\" file and use the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --max-topics 5 --output-file specs/resortManagerAgent.yaml --target-org my-org",
|
|
179
|
-
"
|
|
180
|
+
"Be prompted for all required and optional agent properties; use your default org:\n<%= config.bin %> <%= command.id %> --full-interview",
|
|
181
|
+
"Specify an existing agent spec file called \"specs/resortManagerAgent.yaml\", and then overwrite it with a new version that contains newly AI-generated topics based on the updated role information passed in with the --role flag:\n<%= config.bin %> <%= command.id %> --spec specs/resortManagerAgent.yaml --output-file specs/resortManagerAgent.yaml --role \"Field customer complaints, manage employee schedules, and ensure all resort operations are running smoothly\"",
|
|
182
|
+
"Specify that the conversational tone of the agent is formal and to attach the \"resortmanager@myorg.com\" username to it; be prompted for the required properties and use your default org:\n<%= config.bin %> <%= command.id %> --tone formal --agent-user resortmanager@myorg.com"
|
|
180
183
|
],
|
|
181
184
|
"flags": {
|
|
182
185
|
"json": {
|
|
@@ -213,7 +216,7 @@
|
|
|
213
216
|
},
|
|
214
217
|
"type": {
|
|
215
218
|
"name": "type",
|
|
216
|
-
"summary": "Type of agent to create.",
|
|
219
|
+
"summary": "Type of agent to create. Internal types are copilots used internally by your company and customer types are the agents you create for your customers.",
|
|
217
220
|
"hasDynamicHelp": false,
|
|
218
221
|
"multiple": false,
|
|
219
222
|
"options": [
|
|
@@ -328,7 +331,7 @@
|
|
|
328
331
|
"no-prompt": {
|
|
329
332
|
"char": "p",
|
|
330
333
|
"name": "no-prompt",
|
|
331
|
-
"summary": "Don't prompt the user to confirm spec file
|
|
334
|
+
"summary": "Don't prompt the user to confirm that an existing spec file will be overwritten.",
|
|
332
335
|
"allowNo": false,
|
|
333
336
|
"type": "boolean"
|
|
334
337
|
}
|
|
@@ -985,5 +988,5 @@
|
|
|
985
988
|
]
|
|
986
989
|
}
|
|
987
990
|
},
|
|
988
|
-
"version": "1.13.
|
|
991
|
+
"version": "1.13.2"
|
|
989
992
|
}
|
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.13.
|
|
4
|
+
"version": "1.13.2",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
"exports": "./lib/index.js",
|
|
227
227
|
"type": "module",
|
|
228
228
|
"sfdx": {
|
|
229
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.13.
|
|
230
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.13.
|
|
229
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.13.2.crt",
|
|
230
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.13.2.sig"
|
|
231
231
|
}
|
|
232
232
|
}
|