@salesforce/plugin-agent 1.10.0 → 1.11.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 +136 -93
- package/lib/commands/agent/create-v2.d.ts +3 -7
- package/lib/commands/agent/create-v2.js +31 -75
- package/lib/commands/agent/create-v2.js.map +1 -1
- package/lib/commands/agent/generate/spec-v2.d.ts +64 -1
- package/lib/commands/agent/generate/spec-v2.js +170 -19
- package/lib/commands/agent/generate/spec-v2.js.map +1 -1
- package/lib/commands/agent/generate/{test-definition.d.ts → test-spec.d.ts} +1 -1
- package/lib/commands/agent/generate/{test-cases.js → test-spec.js} +50 -51
- package/lib/commands/agent/generate/test-spec.js.map +1 -0
- package/lib/commands/agent/test/create.d.ts +23 -0
- package/lib/commands/agent/test/create.js +95 -0
- package/lib/commands/agent/test/create.js.map +1 -0
- package/lib/flags.d.ts +1 -28
- package/lib/flags.js +3 -41
- package/lib/flags.js.map +1 -1
- package/messages/agent.create-v2.md +19 -25
- package/messages/agent.generate.spec-v2.md +89 -13
- package/messages/agent.generate.test-spec.md +11 -0
- package/messages/agent.test.create.md +27 -0
- package/messages/shared.md +0 -20
- package/npm-shrinkwrap.json +280 -266
- package/oclif.lock +64 -17
- package/oclif.manifest.json +164 -115
- package/package.json +8 -4
- package/schemas/agent-create__v2.json +129 -5
- package/schemas/agent-test-create.json +19 -0
- package/schemas/agent-test-results.json +14 -17
- package/lib/commands/agent/generate/test-cases.d.ts +0 -16
- package/lib/commands/agent/generate/test-cases.js.map +0 -1
- package/lib/commands/agent/generate/test-definition.js +0 -76
- package/lib/commands/agent/generate/test-definition.js.map +0 -1
- package/messages/agent.generate.test-cases.md +0 -11
- package/messages/agent.generate.test-definition.md +0 -13
package/oclif.lock
CHANGED
|
@@ -1462,18 +1462,19 @@
|
|
|
1462
1462
|
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
|
|
1463
1463
|
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
|
|
1464
1464
|
|
|
1465
|
-
"@salesforce/agents@^0.
|
|
1466
|
-
version "0.
|
|
1467
|
-
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.
|
|
1468
|
-
integrity sha512-
|
|
1465
|
+
"@salesforce/agents@^0.9.2":
|
|
1466
|
+
version "0.9.2"
|
|
1467
|
+
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.9.2.tgz#eacad6fab97cd156484b78a974f47389efaefb27"
|
|
1468
|
+
integrity sha512-z/+mMa1GgiEwFpg+FD40ahzJhtf7Am5G8H+qHXjrUBijk7CdFm5lGZGvX0+LzhxD/Atn44qOo05V3Z3RuN7qYw==
|
|
1469
1469
|
dependencies:
|
|
1470
1470
|
"@salesforce/core" "^8.8.2"
|
|
1471
1471
|
"@salesforce/kit" "^3.2.3"
|
|
1472
1472
|
"@salesforce/sf-plugins-core" "^12.1.2"
|
|
1473
|
-
"@salesforce/source-deploy-retrieve" "^12.
|
|
1473
|
+
"@salesforce/source-deploy-retrieve" "^12.14.1"
|
|
1474
1474
|
ansis "^3.9.0"
|
|
1475
|
-
fast-xml-parser "^4"
|
|
1475
|
+
fast-xml-parser "^4.5.1"
|
|
1476
1476
|
nock "^13.5.6"
|
|
1477
|
+
yaml "^2.7.0"
|
|
1477
1478
|
|
|
1478
1479
|
"@salesforce/cli-plugins-testkit@^5.3.35":
|
|
1479
1480
|
version "5.3.35"
|
|
@@ -1617,13 +1618,13 @@
|
|
|
1617
1618
|
cli-progress "^3.12.0"
|
|
1618
1619
|
terminal-link "^3.0.0"
|
|
1619
1620
|
|
|
1620
|
-
"@salesforce/source-deploy-retrieve@^12.
|
|
1621
|
-
version "12.
|
|
1622
|
-
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.
|
|
1623
|
-
integrity sha512-
|
|
1621
|
+
"@salesforce/source-deploy-retrieve@^12.14.0":
|
|
1622
|
+
version "12.14.0"
|
|
1623
|
+
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.14.0.tgz#04036f76301071b2188c92f70d77a138bc0d72cf"
|
|
1624
|
+
integrity sha512-3WOQCUY0a8cNYx5/NVtaubLEgxo/vHS/7k4Kw/FEZY3ysALpPCqWk2psJQP56xsp/SDAI3lV0VpMZadrL+ryMw==
|
|
1624
1625
|
dependencies:
|
|
1625
|
-
"@salesforce/core" "^8.8.
|
|
1626
|
-
"@salesforce/kit" "^3.2.
|
|
1626
|
+
"@salesforce/core" "^8.8.2"
|
|
1627
|
+
"@salesforce/kit" "^3.2.3"
|
|
1627
1628
|
"@salesforce/ts-types" "^2.0.12"
|
|
1628
1629
|
fast-levenshtein "^3.0.0"
|
|
1629
1630
|
fast-xml-parser "^4.5.1"
|
|
@@ -1635,6 +1636,27 @@
|
|
|
1635
1636
|
mime "2.6.0"
|
|
1636
1637
|
minimatch "^9.0.5"
|
|
1637
1638
|
proxy-agent "^6.4.0"
|
|
1639
|
+
yaml "^2.6.1"
|
|
1640
|
+
|
|
1641
|
+
"@salesforce/source-deploy-retrieve@^12.14.1":
|
|
1642
|
+
version "12.14.1"
|
|
1643
|
+
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.14.1.tgz#9067388b1eb9fadda7e6ccd894e9d1bb0e8407d5"
|
|
1644
|
+
integrity sha512-8POp6tqoeciDFAv7a40LG21aHZ2XGHvX0/ySqcjcAVhTVhVhcP0EpC+qO+SSKjB6Ocf0/6iXMo5ciU2Eq32ydw==
|
|
1645
|
+
dependencies:
|
|
1646
|
+
"@salesforce/core" "^8.8.2"
|
|
1647
|
+
"@salesforce/kit" "^3.2.3"
|
|
1648
|
+
"@salesforce/ts-types" "^2.0.12"
|
|
1649
|
+
fast-levenshtein "^3.0.0"
|
|
1650
|
+
fast-xml-parser "^4.5.1"
|
|
1651
|
+
got "^11.8.6"
|
|
1652
|
+
graceful-fs "^4.2.11"
|
|
1653
|
+
ignore "^5.3.2"
|
|
1654
|
+
isbinaryfile "^5.0.2"
|
|
1655
|
+
jszip "^3.10.1"
|
|
1656
|
+
mime "2.6.0"
|
|
1657
|
+
minimatch "^9.0.5"
|
|
1658
|
+
proxy-agent "^6.4.0"
|
|
1659
|
+
yaml "^2.6.1"
|
|
1638
1660
|
|
|
1639
1661
|
"@salesforce/ts-types@^2.0.10", "@salesforce/ts-types@^2.0.11", "@salesforce/ts-types@^2.0.12":
|
|
1640
1662
|
version "2.0.12"
|
|
@@ -4247,7 +4269,7 @@ fast-xml-parser@4.4.1:
|
|
|
4247
4269
|
dependencies:
|
|
4248
4270
|
strnum "^1.0.5"
|
|
4249
4271
|
|
|
4250
|
-
fast-xml-parser@^4
|
|
4272
|
+
fast-xml-parser@^4.5.1:
|
|
4251
4273
|
version "4.5.1"
|
|
4252
4274
|
resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.5.1.tgz#a7e665ff79b7919100a5202f23984b6150f9b31e"
|
|
4253
4275
|
integrity sha512-y655CeyUQ+jj7KBbYMc4FG01V8ZQqjN+gDYGJ50RtfsUB8iG9AmwmwoAgeKLJdmueKKMrH1RJ7yXHTSoczdv5w==
|
|
@@ -7477,7 +7499,16 @@ stack-utils@^2.0.6:
|
|
|
7477
7499
|
dependencies:
|
|
7478
7500
|
escape-string-regexp "^2.0.0"
|
|
7479
7501
|
|
|
7480
|
-
"string-width-cjs@npm:string-width@^4.2.0"
|
|
7502
|
+
"string-width-cjs@npm:string-width@^4.2.0":
|
|
7503
|
+
version "4.2.3"
|
|
7504
|
+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
|
|
7505
|
+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
|
7506
|
+
dependencies:
|
|
7507
|
+
emoji-regex "^8.0.0"
|
|
7508
|
+
is-fullwidth-code-point "^3.0.0"
|
|
7509
|
+
strip-ansi "^6.0.1"
|
|
7510
|
+
|
|
7511
|
+
string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
|
|
7481
7512
|
version "4.2.3"
|
|
7482
7513
|
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
|
|
7483
7514
|
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
|
@@ -7572,7 +7603,14 @@ string_decoder@~1.1.1:
|
|
|
7572
7603
|
dependencies:
|
|
7573
7604
|
safe-buffer "~5.1.0"
|
|
7574
7605
|
|
|
7575
|
-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1"
|
|
7606
|
+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
|
|
7607
|
+
version "6.0.1"
|
|
7608
|
+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
|
|
7609
|
+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
|
7610
|
+
dependencies:
|
|
7611
|
+
ansi-regex "^5.0.1"
|
|
7612
|
+
|
|
7613
|
+
strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
|
|
7576
7614
|
version "6.0.1"
|
|
7577
7615
|
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
|
|
7578
7616
|
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
|
@@ -8181,7 +8219,7 @@ workerpool@^6.5.1:
|
|
|
8181
8219
|
resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544"
|
|
8182
8220
|
integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==
|
|
8183
8221
|
|
|
8184
|
-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0"
|
|
8222
|
+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
|
|
8185
8223
|
version "7.0.0"
|
|
8186
8224
|
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
|
|
8187
8225
|
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
|
@@ -8199,6 +8237,15 @@ wrap-ansi@^6.2.0:
|
|
|
8199
8237
|
string-width "^4.1.0"
|
|
8200
8238
|
strip-ansi "^6.0.0"
|
|
8201
8239
|
|
|
8240
|
+
wrap-ansi@^7.0.0:
|
|
8241
|
+
version "7.0.0"
|
|
8242
|
+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
|
|
8243
|
+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
|
8244
|
+
dependencies:
|
|
8245
|
+
ansi-styles "^4.0.0"
|
|
8246
|
+
string-width "^4.1.0"
|
|
8247
|
+
strip-ansi "^6.0.0"
|
|
8248
|
+
|
|
8202
8249
|
wrap-ansi@^8.1.0:
|
|
8203
8250
|
version "8.1.0"
|
|
8204
8251
|
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
|
|
@@ -8275,7 +8322,7 @@ yallist@^4.0.0:
|
|
|
8275
8322
|
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
|
|
8276
8323
|
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
|
|
8277
8324
|
|
|
8278
|
-
yaml@^2.4.5, yaml@^2.7.0:
|
|
8325
|
+
yaml@^2.4.5, yaml@^2.6.1, yaml@^2.7.0:
|
|
8279
8326
|
version "2.7.0"
|
|
8280
8327
|
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.7.0.tgz#aef9bb617a64c937a9a748803786ad8d3ffe1e98"
|
|
8281
8328
|
integrity sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==
|
package/oclif.manifest.json
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
"agent:create-v2": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "Before you run this command, you must first generate an agent spec file by running the \"agent generate spec\" CLI command, which outputs a YAML file with the agent properties and list of AI-generated topics. Topics define the range of jobs the agent can handle. Then specify the generated agent spec file to this command using the --spec flag, along with the name (label) of the new agent using the --agent-name flag.\n\nWhen this command finishes, your org contains the new agent, which you can then edit 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. 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. Rather, the command creates a JSON file with all the agent details in the current directory.\n\nTo open the new agent in your org's Agent Builder UI, run this command: \"sf org open agent --name <api-name-of-your-agent>\".",
|
|
7
7
|
"examples": [
|
|
8
|
-
"Create an agent called \"
|
|
8
|
+
"Create an agent called \"ResortManager\" in an org with alias \"my-org\" using the specified agent spec file:\n<%= config.bin %> <%= command.id %> --agent-name ResortManager --spec specs/resortManagerAgent.yaml --target-org my-org",
|
|
9
|
+
"Preview the creation of an agent called \"ResortManager\" and use your default org:\n<%= config.bin %> <%= command.id %> --agent-name ResortManager --spec specs/resortManagerAgent.yaml --preview"
|
|
9
10
|
],
|
|
10
11
|
"flags": {
|
|
11
12
|
"json": {
|
|
@@ -42,39 +43,9 @@
|
|
|
42
43
|
},
|
|
43
44
|
"agent-name": {
|
|
44
45
|
"name": "agent-name",
|
|
45
|
-
"summary": "Name
|
|
46
|
-
"hasDynamicHelp": false,
|
|
47
|
-
"multiple": false,
|
|
48
|
-
"type": "option"
|
|
49
|
-
},
|
|
50
|
-
"user-id": {
|
|
51
|
-
"name": "user-id",
|
|
52
|
-
"summary": "Custom user ID for the agent.",
|
|
53
|
-
"hasDynamicHelp": false,
|
|
54
|
-
"multiple": false,
|
|
55
|
-
"type": "option"
|
|
56
|
-
},
|
|
57
|
-
"enrich-logs": {
|
|
58
|
-
"name": "enrich-logs",
|
|
59
|
-
"summary": "Adds agent conversation data to event logs.",
|
|
46
|
+
"summary": "Name (label) of the new agent.",
|
|
60
47
|
"hasDynamicHelp": false,
|
|
61
48
|
"multiple": false,
|
|
62
|
-
"options": [
|
|
63
|
-
"true",
|
|
64
|
-
"false"
|
|
65
|
-
],
|
|
66
|
-
"type": "option"
|
|
67
|
-
},
|
|
68
|
-
"tone": {
|
|
69
|
-
"name": "tone",
|
|
70
|
-
"summary": "Conversational style of agent responses.",
|
|
71
|
-
"hasDynamicHelp": false,
|
|
72
|
-
"multiple": false,
|
|
73
|
-
"options": [
|
|
74
|
-
"formal",
|
|
75
|
-
"casual",
|
|
76
|
-
"neutral"
|
|
77
|
-
],
|
|
78
49
|
"type": "option"
|
|
79
50
|
},
|
|
80
51
|
"spec": {
|
|
@@ -87,33 +58,21 @@
|
|
|
87
58
|
},
|
|
88
59
|
"preview": {
|
|
89
60
|
"name": "preview",
|
|
90
|
-
"summary": "Preview the agent without saving in your org.",
|
|
61
|
+
"summary": "Preview the agent without saving it in your org.",
|
|
91
62
|
"allowNo": false,
|
|
92
63
|
"type": "boolean"
|
|
93
64
|
},
|
|
94
65
|
"agent-api-name": {
|
|
95
|
-
"hidden": true,
|
|
96
66
|
"name": "agent-api-name",
|
|
97
|
-
"summary": "API name
|
|
67
|
+
"summary": "API name of the new agent; if not specified, the API name is derived from the agent name (label); the API name must not exist in the org.",
|
|
98
68
|
"hasDynamicHelp": false,
|
|
99
69
|
"multiple": false,
|
|
100
70
|
"type": "option"
|
|
101
71
|
},
|
|
102
|
-
"primary-language": {
|
|
103
|
-
"hidden": true,
|
|
104
|
-
"name": "primary-language",
|
|
105
|
-
"summary": "Language the agent uses in conversations.",
|
|
106
|
-
"default": "en_US",
|
|
107
|
-
"hasDynamicHelp": false,
|
|
108
|
-
"multiple": false,
|
|
109
|
-
"options": [
|
|
110
|
-
"en_US"
|
|
111
|
-
],
|
|
112
|
-
"type": "option"
|
|
113
|
-
},
|
|
114
72
|
"planner-id": {
|
|
73
|
+
"hidden": true,
|
|
115
74
|
"name": "planner-id",
|
|
116
|
-
"summary": "
|
|
75
|
+
"summary": "An existing GenAiPlanner ID to associate with the agent.",
|
|
117
76
|
"hasDynamicHelp": false,
|
|
118
77
|
"multiple": false,
|
|
119
78
|
"type": "option"
|
|
@@ -127,7 +86,7 @@
|
|
|
127
86
|
"pluginType": "core",
|
|
128
87
|
"state": "beta",
|
|
129
88
|
"strict": true,
|
|
130
|
-
"summary": "Create an agent in your org
|
|
89
|
+
"summary": "Create an agent in your org using a local agent spec file.",
|
|
131
90
|
"enableJsonFlag": true,
|
|
132
91
|
"requiresProject": true,
|
|
133
92
|
"isESM": true,
|
|
@@ -297,10 +256,11 @@
|
|
|
297
256
|
"agent:generate:spec-v2": {
|
|
298
257
|
"aliases": [],
|
|
299
258
|
"args": {},
|
|
300
|
-
"description": "
|
|
259
|
+
"description": "Before you use Salesforce CLI to create an agent in your org, you must first generate an agent spec with 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 information. Upon command execution, the large language model (LLM) associated with your org uses the information you provided 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 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 to your agent or change the description of a particular topic.\n\nYou 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.\n\nYou can also specify a custom prompt template that the agent uses, and ground the prompt template to add context and personalization to the agent's prompts.\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.",
|
|
301
260
|
"examples": [
|
|
302
|
-
"
|
|
303
|
-
"
|
|
261
|
+
"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.\"",
|
|
262
|
+
"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",
|
|
263
|
+
"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\" --target-org my-org"
|
|
304
264
|
],
|
|
305
265
|
"flags": {
|
|
306
266
|
"json": {
|
|
@@ -375,31 +335,67 @@
|
|
|
375
335
|
"multiple": false,
|
|
376
336
|
"type": "option"
|
|
377
337
|
},
|
|
338
|
+
"max-topics": {
|
|
339
|
+
"name": "max-topics",
|
|
340
|
+
"summary": "Maximum number of topics to generate in the agent spec; default is 10.",
|
|
341
|
+
"hasDynamicHelp": false,
|
|
342
|
+
"multiple": false,
|
|
343
|
+
"type": "option"
|
|
344
|
+
},
|
|
345
|
+
"agent-user": {
|
|
346
|
+
"name": "agent-user",
|
|
347
|
+
"summary": "Username of a user in your org to assign to your agent; determines what your agent can access and do.",
|
|
348
|
+
"hasDynamicHelp": false,
|
|
349
|
+
"multiple": false,
|
|
350
|
+
"type": "option"
|
|
351
|
+
},
|
|
352
|
+
"enrich-logs": {
|
|
353
|
+
"name": "enrich-logs",
|
|
354
|
+
"summary": "Adds agent conversation data to event logs so you can view all agent session activity in one place.",
|
|
355
|
+
"hasDynamicHelp": false,
|
|
356
|
+
"multiple": false,
|
|
357
|
+
"options": [
|
|
358
|
+
"true",
|
|
359
|
+
"false"
|
|
360
|
+
],
|
|
361
|
+
"type": "option"
|
|
362
|
+
},
|
|
363
|
+
"tone": {
|
|
364
|
+
"name": "tone",
|
|
365
|
+
"summary": "Conversational style of the agent, such as how it expresses your brand personality in its messages through word choice, punctuation, and sentence structure.",
|
|
366
|
+
"hasDynamicHelp": false,
|
|
367
|
+
"multiple": false,
|
|
368
|
+
"options": [
|
|
369
|
+
"formal",
|
|
370
|
+
"casual",
|
|
371
|
+
"neutral"
|
|
372
|
+
],
|
|
373
|
+
"type": "option"
|
|
374
|
+
},
|
|
378
375
|
"spec": {
|
|
379
376
|
"name": "spec",
|
|
380
|
-
"summary": "
|
|
377
|
+
"summary": "Agent spec file, in YAML format, to use as input to the command.",
|
|
381
378
|
"hasDynamicHelp": false,
|
|
382
379
|
"multiple": false,
|
|
383
380
|
"type": "option"
|
|
384
381
|
},
|
|
385
382
|
"output-file": {
|
|
386
383
|
"name": "output-file",
|
|
387
|
-
"summary": "Path for the generated agent spec file
|
|
384
|
+
"summary": "Path for the generated YAML agent spec file; can be an absolute or relative path.",
|
|
388
385
|
"default": "config/agentSpec.yaml",
|
|
389
386
|
"hasDynamicHelp": false,
|
|
390
387
|
"multiple": false,
|
|
391
388
|
"type": "option"
|
|
392
389
|
},
|
|
393
|
-
"
|
|
394
|
-
"name": "
|
|
395
|
-
"summary": "
|
|
396
|
-
"
|
|
397
|
-
"
|
|
398
|
-
"type": "option"
|
|
390
|
+
"full-interview": {
|
|
391
|
+
"name": "full-interview",
|
|
392
|
+
"summary": "Prompt for both required and optional flags.",
|
|
393
|
+
"allowNo": false,
|
|
394
|
+
"type": "boolean"
|
|
399
395
|
},
|
|
400
396
|
"prompt-template": {
|
|
401
397
|
"name": "prompt-template",
|
|
402
|
-
"summary": "
|
|
398
|
+
"summary": "API name of a customized prompt template to use instead of the default prompt template.",
|
|
403
399
|
"hasDynamicHelp": false,
|
|
404
400
|
"multiple": false,
|
|
405
401
|
"type": "option"
|
|
@@ -409,10 +405,16 @@
|
|
|
409
405
|
"prompt-template"
|
|
410
406
|
],
|
|
411
407
|
"name": "grounding-context",
|
|
412
|
-
"summary": "Context information to
|
|
408
|
+
"summary": "Context information and personalization that's added to your prompts when using a custom prompt template.",
|
|
413
409
|
"hasDynamicHelp": false,
|
|
414
410
|
"multiple": false,
|
|
415
411
|
"type": "option"
|
|
412
|
+
},
|
|
413
|
+
"no-prompt": {
|
|
414
|
+
"name": "no-prompt",
|
|
415
|
+
"summary": "Don't prompt the user to confirm spec file overwrite.",
|
|
416
|
+
"allowNo": false,
|
|
417
|
+
"type": "boolean"
|
|
416
418
|
}
|
|
417
419
|
},
|
|
418
420
|
"hasDynamicHelp": true,
|
|
@@ -423,7 +425,7 @@
|
|
|
423
425
|
"pluginType": "core",
|
|
424
426
|
"state": "beta",
|
|
425
427
|
"strict": true,
|
|
426
|
-
"summary": "Generate an agent spec, which is
|
|
428
|
+
"summary": "Generate an agent spec, which is a YAML file that captures what an agent can do.",
|
|
427
429
|
"enableJsonFlag": true,
|
|
428
430
|
"requiresProject": true,
|
|
429
431
|
"isESM": true,
|
|
@@ -573,10 +575,10 @@
|
|
|
573
575
|
"spec:generate:agent"
|
|
574
576
|
]
|
|
575
577
|
},
|
|
576
|
-
"agent:generate:test-
|
|
578
|
+
"agent:generate:test-spec": {
|
|
577
579
|
"aliases": [],
|
|
578
580
|
"args": {},
|
|
579
|
-
"description": "
|
|
581
|
+
"description": "This command will prompt you for the necessary information to create a new spec file (in yaml format). You can then create a new AI evaluation using \"sf agent test create --spec <spec-file>\".",
|
|
580
582
|
"examples": [
|
|
581
583
|
"<%= config.bin %> <%= command.id %>"
|
|
582
584
|
],
|
|
@@ -592,13 +594,13 @@
|
|
|
592
594
|
},
|
|
593
595
|
"hasDynamicHelp": false,
|
|
594
596
|
"hiddenAliases": [],
|
|
595
|
-
"id": "agent:generate:test-
|
|
597
|
+
"id": "agent:generate:test-spec",
|
|
596
598
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
597
599
|
"pluginName": "@salesforce/plugin-agent",
|
|
598
600
|
"pluginType": "core",
|
|
599
601
|
"state": "beta",
|
|
600
602
|
"strict": true,
|
|
601
|
-
"summary": "Interactively generate a
|
|
603
|
+
"summary": "Interactively generate a specification file for a AI evaluation test.",
|
|
602
604
|
"enableJsonFlag": false,
|
|
603
605
|
"isESM": true,
|
|
604
606
|
"relativePath": [
|
|
@@ -606,26 +608,34 @@
|
|
|
606
608
|
"commands",
|
|
607
609
|
"agent",
|
|
608
610
|
"generate",
|
|
609
|
-
"test-
|
|
611
|
+
"test-spec.js"
|
|
610
612
|
],
|
|
611
613
|
"aliasPermutations": [],
|
|
612
614
|
"permutations": [
|
|
613
|
-
"agent:generate:test-
|
|
614
|
-
"generate:agent:test-
|
|
615
|
-
"generate:test-
|
|
616
|
-
"agent:test-
|
|
617
|
-
"test-
|
|
618
|
-
"test-
|
|
615
|
+
"agent:generate:test-spec",
|
|
616
|
+
"generate:agent:test-spec",
|
|
617
|
+
"generate:test-spec:agent",
|
|
618
|
+
"agent:test-spec:generate",
|
|
619
|
+
"test-spec:agent:generate",
|
|
620
|
+
"test-spec:generate:agent"
|
|
619
621
|
]
|
|
620
622
|
},
|
|
621
|
-
"agent:
|
|
623
|
+
"agent:test:cancel": {
|
|
622
624
|
"aliases": [],
|
|
623
625
|
"args": {},
|
|
624
|
-
"description": "This command
|
|
626
|
+
"description": "This command requires a job ID, which the original \"agent test run\" command displays when it completes. You can also use the --use-most-recent flag to see results for the most recently run agent test.",
|
|
625
627
|
"examples": [
|
|
626
|
-
"<%= config.bin %> <%= command.id %>"
|
|
628
|
+
"Cancel an agent test currently running in your default org using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ",
|
|
629
|
+
"Cancel the most recently run agent test in the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ --target-org my-org"
|
|
627
630
|
],
|
|
628
631
|
"flags": {
|
|
632
|
+
"json": {
|
|
633
|
+
"description": "Format output as json.",
|
|
634
|
+
"helpGroup": "GLOBAL",
|
|
635
|
+
"name": "json",
|
|
636
|
+
"allowNo": false,
|
|
637
|
+
"type": "boolean"
|
|
638
|
+
},
|
|
629
639
|
"flags-dir": {
|
|
630
640
|
"helpGroup": "GLOBAL",
|
|
631
641
|
"name": "flags-dir",
|
|
@@ -633,43 +643,74 @@
|
|
|
633
643
|
"hasDynamicHelp": false,
|
|
634
644
|
"multiple": false,
|
|
635
645
|
"type": "option"
|
|
646
|
+
},
|
|
647
|
+
"target-org": {
|
|
648
|
+
"char": "o",
|
|
649
|
+
"name": "target-org",
|
|
650
|
+
"noCacheDefault": true,
|
|
651
|
+
"required": true,
|
|
652
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
653
|
+
"hasDynamicHelp": true,
|
|
654
|
+
"multiple": false,
|
|
655
|
+
"type": "option"
|
|
656
|
+
},
|
|
657
|
+
"api-version": {
|
|
658
|
+
"description": "Override the api version used for api requests made by this command",
|
|
659
|
+
"name": "api-version",
|
|
660
|
+
"hasDynamicHelp": false,
|
|
661
|
+
"multiple": false,
|
|
662
|
+
"type": "option"
|
|
663
|
+
},
|
|
664
|
+
"job-id": {
|
|
665
|
+
"char": "i",
|
|
666
|
+
"name": "job-id",
|
|
667
|
+
"summary": "Job ID of the running agent test that you want to cancel.",
|
|
668
|
+
"hasDynamicHelp": false,
|
|
669
|
+
"multiple": false,
|
|
670
|
+
"type": "option"
|
|
671
|
+
},
|
|
672
|
+
"use-most-recent": {
|
|
673
|
+
"char": "r",
|
|
674
|
+
"name": "use-most-recent",
|
|
675
|
+
"summary": "Use the job ID of the most recently-run agent test.",
|
|
676
|
+
"allowNo": false,
|
|
677
|
+
"type": "boolean"
|
|
636
678
|
}
|
|
637
679
|
},
|
|
638
|
-
"hasDynamicHelp":
|
|
680
|
+
"hasDynamicHelp": true,
|
|
639
681
|
"hiddenAliases": [],
|
|
640
|
-
"id": "agent:
|
|
682
|
+
"id": "agent:test:cancel",
|
|
641
683
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
642
684
|
"pluginName": "@salesforce/plugin-agent",
|
|
643
685
|
"pluginType": "core",
|
|
644
686
|
"state": "beta",
|
|
645
687
|
"strict": true,
|
|
646
|
-
"summary": "
|
|
647
|
-
"enableJsonFlag":
|
|
688
|
+
"summary": "Cancel an agent test that's currently running in your org.",
|
|
689
|
+
"enableJsonFlag": true,
|
|
648
690
|
"isESM": true,
|
|
649
691
|
"relativePath": [
|
|
650
692
|
"lib",
|
|
651
693
|
"commands",
|
|
652
694
|
"agent",
|
|
653
|
-
"
|
|
654
|
-
"
|
|
695
|
+
"test",
|
|
696
|
+
"cancel.js"
|
|
655
697
|
],
|
|
656
698
|
"aliasPermutations": [],
|
|
657
699
|
"permutations": [
|
|
658
|
-
"agent:
|
|
659
|
-
"
|
|
660
|
-
"
|
|
661
|
-
"agent:test
|
|
662
|
-
"
|
|
663
|
-
"test
|
|
700
|
+
"agent:test:cancel",
|
|
701
|
+
"test:agent:cancel",
|
|
702
|
+
"test:cancel:agent",
|
|
703
|
+
"agent:cancel:test",
|
|
704
|
+
"cancel:agent:test",
|
|
705
|
+
"cancel:test:agent"
|
|
664
706
|
]
|
|
665
707
|
},
|
|
666
|
-
"agent:test:
|
|
708
|
+
"agent:test:create": {
|
|
667
709
|
"aliases": [],
|
|
668
710
|
"args": {},
|
|
669
|
-
"description": "
|
|
711
|
+
"description": "More information about a command. Don't repeat the summary.",
|
|
670
712
|
"examples": [
|
|
671
|
-
"
|
|
672
|
-
"Cancel the most recently run agent test in the org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --job-id 4KBfake0000003F4AQ --target-org my-org"
|
|
713
|
+
"<%= config.bin %> <%= command.id %>"
|
|
673
714
|
],
|
|
674
715
|
"flags": {
|
|
675
716
|
"json": {
|
|
@@ -687,6 +728,16 @@
|
|
|
687
728
|
"multiple": false,
|
|
688
729
|
"type": "option"
|
|
689
730
|
},
|
|
731
|
+
"spec": {
|
|
732
|
+
"char": "s",
|
|
733
|
+
"description": "More information about a flag. Don't repeat the summary.",
|
|
734
|
+
"name": "spec",
|
|
735
|
+
"required": true,
|
|
736
|
+
"summary": "Description of a flag.",
|
|
737
|
+
"hasDynamicHelp": false,
|
|
738
|
+
"multiple": false,
|
|
739
|
+
"type": "option"
|
|
740
|
+
},
|
|
690
741
|
"target-org": {
|
|
691
742
|
"char": "o",
|
|
692
743
|
"name": "target-org",
|
|
@@ -704,31 +755,29 @@
|
|
|
704
755
|
"multiple": false,
|
|
705
756
|
"type": "option"
|
|
706
757
|
},
|
|
707
|
-
"
|
|
708
|
-
"
|
|
709
|
-
"
|
|
710
|
-
"
|
|
711
|
-
"
|
|
712
|
-
"multiple": false,
|
|
713
|
-
"type": "option"
|
|
758
|
+
"preview": {
|
|
759
|
+
"name": "preview",
|
|
760
|
+
"summary": "Preview the test metadata without deploying to your org.",
|
|
761
|
+
"allowNo": false,
|
|
762
|
+
"type": "boolean"
|
|
714
763
|
},
|
|
715
|
-
"
|
|
716
|
-
"char": "
|
|
717
|
-
"name": "
|
|
718
|
-
"summary": "
|
|
764
|
+
"no-prompt": {
|
|
765
|
+
"char": "p",
|
|
766
|
+
"name": "no-prompt",
|
|
767
|
+
"summary": "Don't prompt for confirmation when overwriting an existing test.",
|
|
719
768
|
"allowNo": false,
|
|
720
769
|
"type": "boolean"
|
|
721
770
|
}
|
|
722
771
|
},
|
|
723
772
|
"hasDynamicHelp": true,
|
|
724
773
|
"hiddenAliases": [],
|
|
725
|
-
"id": "agent:test:
|
|
774
|
+
"id": "agent:test:create",
|
|
726
775
|
"pluginAlias": "@salesforce/plugin-agent",
|
|
727
776
|
"pluginName": "@salesforce/plugin-agent",
|
|
728
777
|
"pluginType": "core",
|
|
729
778
|
"state": "beta",
|
|
730
779
|
"strict": true,
|
|
731
|
-
"summary": "
|
|
780
|
+
"summary": "Summary of a command.",
|
|
732
781
|
"enableJsonFlag": true,
|
|
733
782
|
"isESM": true,
|
|
734
783
|
"relativePath": [
|
|
@@ -736,16 +785,16 @@
|
|
|
736
785
|
"commands",
|
|
737
786
|
"agent",
|
|
738
787
|
"test",
|
|
739
|
-
"
|
|
788
|
+
"create.js"
|
|
740
789
|
],
|
|
741
790
|
"aliasPermutations": [],
|
|
742
791
|
"permutations": [
|
|
743
|
-
"agent:test:
|
|
744
|
-
"test:agent:
|
|
745
|
-
"test:
|
|
746
|
-
"agent:
|
|
747
|
-
"
|
|
748
|
-
"
|
|
792
|
+
"agent:test:create",
|
|
793
|
+
"test:agent:create",
|
|
794
|
+
"test:create:agent",
|
|
795
|
+
"agent:create:test",
|
|
796
|
+
"create:agent:test",
|
|
797
|
+
"create:test:agent"
|
|
749
798
|
]
|
|
750
799
|
},
|
|
751
800
|
"agent:test:list": {
|
|
@@ -1149,5 +1198,5 @@
|
|
|
1149
1198
|
]
|
|
1150
1199
|
}
|
|
1151
1200
|
},
|
|
1152
|
-
"version": "1.
|
|
1201
|
+
"version": "1.11.1"
|
|
1153
1202
|
}
|