Skip to content

Commit 525fc7f

Browse files
authored
Merge pull request #108 from salesforcecli/ew/add-conversation-variables
W-17964682 Add conversationVariables to botTemplate
2 parents fc3eba6 + bb08ca0 commit 525fc7f

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ EXAMPLES
132132
$ sf agent create --agent-name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
133133
```
134134

135-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.3/src/commands/agent/create.ts)_
135+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.4-preview.0/src/commands/agent/create.ts)_
136136

137137
## `sf agent generate agent-spec`
138138

@@ -237,7 +237,7 @@ EXAMPLES
237237
$ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
238238
```
239239

240-
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.3/src/commands/agent/generate/agent-spec.ts)_
240+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.4-preview.0/src/commands/agent/generate/agent-spec.ts)_
241241

242242
## `sf agent generate template`
243243

@@ -285,7 +285,7 @@ EXAMPLES
285285
force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
286286
```
287287

288-
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.3/src/commands/agent/generate/template.ts)_
288+
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.4-preview.0/src/commands/agent/generate/template.ts)_
289289

290290
## `sf agent generate test-spec`
291291

@@ -343,7 +343,7 @@ EXAMPLES
343343
force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
344344
```
345345

346-
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.3/src/commands/agent/generate/test-spec.ts)_
346+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.4-preview.0/src/commands/agent/generate/test-spec.ts)_
347347

348348
## `sf agent preview`
349349

@@ -419,7 +419,7 @@ EXAMPLES
419419
"transcripts/my-preview"
420420
```
421421

422-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.3/src/commands/agent/preview.ts)_
422+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.4-preview.0/src/commands/agent/preview.ts)_
423423

424424
## `sf agent test create`
425425

@@ -474,7 +474,7 @@ EXAMPLES
474474
$ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --test-api-name Resort_Manager_Test --preview
475475
```
476476

477-
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.3/src/commands/agent/test/create.ts)_
477+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.4-preview.0/src/commands/agent/test/create.ts)_
478478

479479
## `sf agent test list`
480480

@@ -509,7 +509,7 @@ EXAMPLES
509509
$ sf agent test list --target-org my-org
510510
```
511511

512-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.3/src/commands/agent/test/list.ts)_
512+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.4-preview.0/src/commands/agent/test/list.ts)_
513513

514514
## `sf agent test results`
515515

@@ -565,7 +565,7 @@ FLAG DESCRIPTIONS
565565
test results aren't written.
566566
```
567567

568-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.3/src/commands/agent/test/results.ts)_
568+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.4-preview.0/src/commands/agent/test/results.ts)_
569569

570570
## `sf agent test resume`
571571

@@ -628,7 +628,7 @@ FLAG DESCRIPTIONS
628628
test results aren't written.
629629
```
630630

631-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.3/src/commands/agent/test/resume.ts)_
631+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.4-preview.0/src/commands/agent/test/resume.ts)_
632632

633633
## `sf agent test run`
634634

@@ -692,6 +692,6 @@ FLAG DESCRIPTIONS
692692
test results aren't written.
693693
```
694694

695-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.3/src/commands/agent/test/run.ts)_
695+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.20.4-preview.0/src/commands/agent/test/run.ts)_
696696

697697
<!-- 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.20.3",
4+
"version": "1.20.4-preview.0",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {

src/commands/agent/generate/template.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const convertBotToBotTemplate = (
131131
botFilePath: string
132132
): BotTemplateExt => {
133133
const entryDialog = botVersionJson.BotVersion.entryDialog;
134-
const { conversationSystemDialogs } = botVersionJson.BotVersion;
134+
const { conversationSystemDialogs, conversationVariables } = botVersionJson.BotVersion;
135135

136136
// We need to pull the botDialog from the BotVersion file that matches the entryDialog
137137
// This will be added to the BotTemplate
@@ -169,6 +169,7 @@ const convertBotToBotTemplate = (
169169
entryDialogJson,
170170
],
171171
conversationSystemDialogs,
172+
conversationVariables,
172173
entryDialog,
173174
mlDomain,
174175
...bot.Bot,

0 commit comments

Comments
 (0)