Skip to content

Commit 6a145f2

Browse files
committed
chore(release): 1.11.0 [skip ci]
1 parent e2e1454 commit 6a145f2

File tree

3 files changed

+133
-83
lines changed

3 files changed

+133
-83
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# [1.11.0](https://github.com/salesforcecli/plugin-agent/compare/1.10.0...1.11.0) (2025-01-29)
2+
3+
### Bug Fixes
4+
5+
- update api responses ([3f6c144](https://github.com/salesforcecli/plugin-agent/commit/3f6c144b787887ca43d281b981016b59b08c5bfd))
6+
7+
### Features
8+
9+
- use spec for tests ([fa2ac45](https://github.com/salesforcecli/plugin-agent/commit/fa2ac45283df196bf93a335194eba9627a33e23a))
10+
111
# [1.10.0](https://github.com/salesforcecli/plugin-agent/compare/1.9.2...1.10.0) (2025-01-27)
212

313
### Features

README.md

Lines changed: 122 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ sf plugins
6565
- [`sf agent create-v2`](#sf-agent-create-v2)
6666
- [`sf agent generate spec`](#sf-agent-generate-spec)
6767
- [`sf agent generate spec-v2`](#sf-agent-generate-spec-v2)
68-
- [`sf agent generate test-cases`](#sf-agent-generate-test-cases)
69-
- [`sf agent generate test-definition`](#sf-agent-generate-test-definition)
68+
- [`sf agent generate test-spec`](#sf-agent-generate-test-spec)
7069
- [`sf agent preview`](#sf-agent-preview)
7170
- [`sf agent test cancel`](#sf-agent-test-cancel)
71+
- [`sf agent test create`](#sf-agent-test-create)
7272
- [`sf agent test list`](#sf-agent-test-list)
7373
- [`sf agent test results`](#sf-agent-test-results)
7474
- [`sf agent test resume`](#sf-agent-test-resume)
@@ -114,11 +114,11 @@ EXAMPLES
114114
$ sf agent create --name CustomerSupportAgent --spec ./config/agentSpec.json --target-org my-org
115115
```
116116

117-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.10.0/src/commands/agent/create.ts)_
117+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.11.0/src/commands/agent/create.ts)_
118118

119119
## `sf agent create-v2`
120120

121-
Create an agent in your org from a local agent spec file.
121+
Create an agent in your org using a local agent spec file.
122122

123123
```
124124
USAGE
@@ -129,43 +129,54 @@ USAGE
129129
FLAGS
130130
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
131131
configuration variable is already set.
132-
--agent-name=<value> Name for the new agent.
132+
--agent-name=<value> Name (label) of the new agent.
133133
--api-version=<value> Override the api version used for api requests made by this command
134-
--enrich-logs=<option> Adds agent conversation data to event logs.
134+
--enrich-logs=<option> Adds agent conversation data to event logs so you can view all agent session activity in
135+
one place.
135136
<options: true|false>
136137
--planner-id=<value> The GenAiPlanner ID to associate with the agent.
137-
--preview Preview the agent without saving in your org.
138+
--preview Preview the agent without saving it in your org.
138139
--spec=<value> (required) Path to an agent spec file.
139-
--tone=<option> Conversational style of agent responses.
140+
--tone=<option> Conversational style of the agent, such as how it expresses your brand personality in its
141+
messages through word choice, punctuation, and sentence structure.
140142
<options: formal|casual|neutral>
141-
--user-id=<value> Custom user ID for the agent.
143+
--user-id=<value> ID of a user in your org that is assigned to your agent; determines what your agent can
144+
access and do.
142145
143146
GLOBAL FLAGS
144147
--flags-dir=<value> Import flag values from a directory.
145148
--json Format output as json.
146149
147150
DESCRIPTION
148-
Create an agent in your org from a local agent spec file.
151+
Create an agent in your org using a local agent spec file.
149152
150-
To generate an agent spec file, run the "agent generate spec" CLI command, which outputs a YAML file with the list of
151-
jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --spec flag of this
152-
command, along with the name of the new agent.
153+
Before you run this command, you must first generate an agent spec file by running the "agent generate spec" CLI
154+
command, which outputs a YAML file with the agent properties and list of AI-generated topics. Topics define the range
155+
of jobs the agent can handle. Then specify the generated agent spec file to this command using the --spec flag, along
156+
with the name (label) of the new agent using the --agent-name flag.
153157
154158
When this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new
155-
agent already has a list of topics and actions that were automatically created from the list of jobs in the provided
156-
agent spec file. This command also retrieves all the metadata files associated with the new agent to your local DX
159+
agent's topics are the same as the ones listed in the agent spec file. The agent might also have some AI-generated
160+
actions. This command also retrieves all the metadata files associated with the new agent to your local Salesforce DX
157161
project.
158162
163+
Use the --preview flag to review what the agent looks like without actually saving it in your org. Rather, the command
164+
creates a JSON file with all the agent details in the current directory.
165+
159166
To open the new agent in your org's Agent Builder UI, run this command: "sf org open agent --name
160167
<api-name-of-your-agent>".
161168
162169
EXAMPLES
163-
Create an agent called "CustomerSupportAgent" in an org with alias "my-org" using the specified agent spec file:
170+
Create an agent called "ResortManager" in an org with alias "my-org" using the specified agent spec file:
171+
172+
$ sf agent create-v2 --agent-name ResortManager --spec specs/resortManagerAgent.yaml --target-org my-org
164173
165-
$ sf agent create-v2 --name CustomerSupportAgent --spec ./config/agentSpec.json --target-org my-org
174+
Preview the creation of an agent called "ResortManager" and use your default org:
175+
176+
$ sf agent create-v2 --agent-name ResortManager --spec specs/resortManagerAgent.yaml --preview
166177
```
167178

168-
_See code: [src/commands/agent/create-v2.ts](https://github.com/salesforcecli/plugin-agent/blob/1.10.0/src/commands/agent/create-v2.ts)_
179+
_See code: [src/commands/agent/create-v2.ts](https://github.com/salesforcecli/plugin-agent/blob/1.11.0/src/commands/agent/create-v2.ts)_
169180

170181
## `sf agent generate spec`
171182

@@ -226,11 +237,11 @@ EXAMPLES
226237
$ sf agent generate spec --output-dir specs --target-org my-org
227238
```
228239

229-
_See code: [src/commands/agent/generate/spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.10.0/src/commands/agent/generate/spec.ts)_
240+
_See code: [src/commands/agent/generate/spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.11.0/src/commands/agent/generate/spec.ts)_
230241

231242
## `sf agent generate spec-v2`
232243

233-
Generate an agent spec, which is the list of jobs that the agent performs.
244+
Generate an agent spec, which is a YAML file that captures what an agent can do.
234245

235246
```
236247
USAGE
@@ -247,98 +258,91 @@ FLAGS
247258
--company-description=<value> Description of your company.
248259
--company-name=<value> Name of your company.
249260
--company-website=<value> Website URL of your company.
250-
--grounding-context=<value> Context information to be used with the customized prompt template.
251-
--max-topics=<value> Maximum number of agent job topics to generate in the spec; default is 10.
252-
--output-file=<value> [default: config/agentSpec.yaml] Path for the generated agent spec file (yaml); can
261+
--grounding-context=<value> Context information and personalization that's added to your prompts when using a
262+
custom prompt template.
263+
--max-topics=<value> Maximum number of topics to generate in the agent spec; default is 10.
264+
--output-file=<value> [default: config/agentSpec.yaml] Path for the generated YAML agent spec file; can
253265
be an absolute or relative path.
254-
--prompt-template=<value> Developer name of a customized prompt template to use instead of the default.
266+
--prompt-template=<value> API name of a customized prompt template to use instead of the default prompt
267+
template.
255268
--role=<value> Role of the agent.
256-
--spec=<value> Spec file (yaml) to use as input to the command.
269+
--spec=<value> Agent spec file, in YAML format, to use as input to the command.
257270
258271
GLOBAL FLAGS
259272
--flags-dir=<value> Import flag values from a directory.
260273
--json Format output as json.
261274
262275
DESCRIPTION
263-
Generate an agent spec, which is the list of jobs that the agent performs.
276+
Generate an agent spec, which is a YAML file that captures what an agent can do.
264277
265-
When using Salesforce CLI to create an agent in your org, you can choose to generate a YAML-formatted agent spec file
266-
with this command as a first step.
278+
Before you use Salesforce CLI to create an agent in your org, you must first generate an agent spec with this command.
279+
An agent spec is a YAML-formatted file that contains information about the agent, such as its role and company
280+
description, and then an AI-generated list of topics based on this information. Topics define the range of jobs your
281+
agent can handle.
267282
268-
An agent spec is a list of jobs and descriptions that capture what the agent can do. Use flags such as --role and
269-
--company-description to provide details about your company and the role that the agent plays in your company; you can
270-
also enter the information interactively if you prefer. When you then execute this command, the large language model
271-
(LLM) associated with your org uses the information to generate the list of jobs that the agent most likely performs.
272-
We recommend that you provide good details for --role, --company-description, etc, so that the LLM can generate the
273-
best and most relevant list of jobs and descriptions. Once generated, you can edit the spec file; for example, you can
274-
remove jobs that don't apply to your agent.
275-
276-
When your agent spec is ready, you then create the agent in your org by specifying the agent spec file to the
277-
--job-spec flag of the "agent create" CLI command.
278-
279-
EXAMPLES
280-
Create an agent spec for your default org in the default location and use flags to specify the agent's role and your
281-
company details:
282-
283-
$ sf agent generate spec-v2 --type customer --role "Assist users in navigating and managing bookings" \
284-
--company-name "Coral Cloud" --company-description "Resort that manages guests and their reservations and \
285-
experiences"
283+
Use flags, such as --role and --company-description, to provide details about your company and the role that the agent
284+
plays in your company. If you prefer, you can also be prompted for the information. Upon command execution, the large
285+
language model (LLM) associated with your org uses the information you provided to generate a list of topics for the
286+
agent. Because the LLM uses the company and role information to generate the topics, we recommend that you provide
287+
accurate and specific details so the LLM generates the best and most relevant topics. Once generated, you can edit the
288+
spec file; for example, you can remove topics that don't apply to your agent or change the description of a particular
289+
topic.
286290
287-
Create an agent spec by being prompted for role and company details interactively; write the generated file to the
288-
"specs" directory and use the org with alias "my-org":
289-
290-
$ sf agent generate spec-v2 --output-dir specs --target-org my-org
291-
```
291+
You can iterate the spec generation process by using the --spec flag to pass an existing agent spec file to this
292+
command, and then using the --role, --company-description, etc, flags to refine your agent properties. Iteratively
293+
improving the description of your agent allows the LLM to generate progressively better topics.
292294
293-
_See code: [src/commands/agent/generate/spec-v2.ts](https://github.com/salesforcecli/plugin-agent/blob/1.10.0/src/commands/agent/generate/spec-v2.ts)_
295+
You can also specify a custom prompt template that the agent uses, and ground the prompt template to add context and
296+
personalization to the agent's prompts.
294297
295-
## `sf agent generate test-cases`
298+
When your agent spec is ready, you then create the agent in your org by running the "agent create" CLI command and
299+
specifying the spec with the --spec flag.
296300
297-
Interactively generate a new Set of AI Evaluation test cases.
301+
EXAMPLES
302+
Generate an agent spec in the default location and use flags to specify the agent properties, such as its role and
303+
your company details; use your default org:
298304
299-
```
300-
USAGE
301-
$ sf agent generate test-cases [--flags-dir <value>]
305+
$ sf agent generate spec-v2 --type customer --role "Field customer complaints and manage employee schedules." \
306+
--company-name "Coral Cloud Resorts" --company-description "Provide customers with exceptional destination \
307+
activities, unforgettable experiences, and reservation services."
302308
303-
GLOBAL FLAGS
304-
--flags-dir=<value> Import flag values from a directory.
309+
Generate an agent spec by being prompted for the required agent properties and generate a maxiumum of 5 topics;
310+
write the generated file to the "specs/resortManagerSpec.yaml" file and use the org with alias "my-org":
305311
306-
DESCRIPTION
307-
Interactively generate a new Set of AI Evaluation test cases.
312+
$ sf agent generate spec-v2 --max-topics 5 --output-file specs/resortManagerAgent.yaml --target-org my-org
308313
309-
Answer the prompts to generate an AiEvaluationTestSet that will be written to a file. You can then run "sf agent
310-
generate definition" to generate the AiEvaluationDefinition that can be used to evaluate the test set.
314+
Specify an existing agent spec file called "specs/resortManagerAgent.yaml", and then overwrite it with a new version
315+
that contains newly AI-generated topics based on the updated role information passed in with the --role flag:
311316
312-
EXAMPLES
313-
$ sf agent generate test-cases
317+
$ sf agent generate spec-v2 --spec specs/resortManagerAgent.yaml --output-file specs/resortManagerAgent.yaml \
318+
--role "Field customer complaints, manage employee schedules, and ensure all resort operations are running \
319+
smoothly" --target-org my-org
314320
```
315321

316-
_See code: [src/commands/agent/generate/test-cases.ts](https://github.com/salesforcecli/plugin-agent/blob/1.10.0/src/commands/agent/generate/test-cases.ts)_
322+
_See code: [src/commands/agent/generate/spec-v2.ts](https://github.com/salesforcecli/plugin-agent/blob/1.11.0/src/commands/agent/generate/spec-v2.ts)_
317323

318-
## `sf agent generate test-definition`
324+
## `sf agent generate test-spec`
319325

320-
Interactively generate a new AI Evaluation Test Definition.
326+
Interactively generate a specification file for a AI evaluation test.
321327

322328
```
323329
USAGE
324-
$ sf agent generate test-definition [--flags-dir <value>]
330+
$ sf agent generate test-spec [--flags-dir <value>]
325331
326332
GLOBAL FLAGS
327333
--flags-dir=<value> Import flag values from a directory.
328334
329335
DESCRIPTION
330-
Interactively generate a new AI Evaluation Test Definition.
331-
332-
This command will prompt you for the necessary information to create a new AiEvaluationDefinition. The definition will
333-
be saved to the `aiEvaluationDefinitions` directory in the project.
336+
Interactively generate a specification file for a AI evaluation test.
334337
335-
You must have the `Bots` and `AiEvaluationTestSets` metadata types present in your project to use this command.
338+
This command will prompt you for the necessary information to create a new spec file (in yaml format). You can then
339+
create a new AI evaluation using "sf agent test create --spec <spec-file>".
336340
337341
EXAMPLES
338-
$ sf agent generate test-definition
342+
$ sf agent generate test-spec
339343
```
340344

341-
_See code: [src/commands/agent/generate/test-definition.ts](https://github.com/salesforcecli/plugin-agent/blob/1.10.0/src/commands/agent/generate/test-definition.ts)_
345+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.11.0/src/commands/agent/generate/test-spec.ts)_
342346

343347
## `sf agent preview`
344348

@@ -373,7 +377,7 @@ FLAG DESCRIPTIONS
373377
the API name of the agent? (TBD based on agents library)
374378
```
375379

376-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.10.0/src/commands/agent/preview.ts)_
380+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.11.0/src/commands/agent/preview.ts)_
377381

378382
## `sf agent test cancel`
379383

@@ -410,7 +414,43 @@ EXAMPLES
410414
$ sf agent test cancel --job-id 4KBfake0000003F4AQ --target-org my-org
411415
```
412416

413-
_See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.10.0/src/commands/agent/test/cancel.ts)_
417+
_See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.11.0/src/commands/agent/test/cancel.ts)_
418+
419+
## `sf agent test create`
420+
421+
Summary of a command.
422+
423+
```
424+
USAGE
425+
$ sf agent test create -s <value> -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [--preview] [-p]
426+
427+
FLAGS
428+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
429+
configuration variable is already set.
430+
-p, --no-prompt Don't prompt for confirmation when overwriting an existing test.
431+
-s, --spec=<value> (required) Description of a flag.
432+
--api-version=<value> Override the api version used for api requests made by this command
433+
--preview Preview the test metadata without deploying to your org.
434+
435+
GLOBAL FLAGS
436+
--flags-dir=<value> Import flag values from a directory.
437+
--json Format output as json.
438+
439+
DESCRIPTION
440+
Summary of a command.
441+
442+
More information about a command. Don't repeat the summary.
443+
444+
EXAMPLES
445+
$ sf agent test create
446+
447+
FLAG DESCRIPTIONS
448+
-s, --spec=<value> Description of a flag.
449+
450+
More information about a flag. Don't repeat the summary.
451+
```
452+
453+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.11.0/src/commands/agent/test/create.ts)_
414454

415455
## `sf agent test list`
416456

@@ -439,7 +479,7 @@ EXAMPLES
439479
$ sf agent test list
440480
```
441481

442-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.10.0/src/commands/agent/test/list.ts)_
482+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.11.0/src/commands/agent/test/list.ts)_
443483

444484
## `sf agent test results`
445485

@@ -495,7 +535,7 @@ FLAG DESCRIPTIONS
495535
test results aren't written.
496536
```
497537

498-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.10.0/src/commands/agent/test/results.ts)_
538+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.11.0/src/commands/agent/test/results.ts)_
499539

500540
## `sf agent test resume`
501541

@@ -558,7 +598,7 @@ FLAG DESCRIPTIONS
558598
test results aren't written.
559599
```
560600

561-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.10.0/src/commands/agent/test/resume.ts)_
601+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.11.0/src/commands/agent/test/resume.ts)_
562602

563603
## `sf agent test run`
564604

@@ -621,6 +661,6 @@ FLAG DESCRIPTIONS
621661
test results aren't written.
622662
```
623663

624-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.10.0/src/commands/agent/test/run.ts)_
664+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.11.0/src/commands/agent/test/run.ts)_
625665

626666
<!-- commandsstop -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/plugin-agent",
33
"description": "Commands to interact with Salesforce agents",
4-
"version": "1.10.0",
4+
"version": "1.11.0",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {

0 commit comments

Comments
 (0)