Skip to content

Commit 6966cda

Browse files
authored
Merge pull request #102 from salesforcecli/revert-99-ew/add-role
Revert "W-17906887 add role to BotTemplate"
2 parents 3bfaf1b + f7b4b7b commit 6966cda

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/commands/agent/generate/template.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ type BotTemplateExt = {
3131
botDialogGroups?: BotDialogGroup[];
3232
conversationGoals?: ConversationDefinitionGoal[];
3333
conversationVariables?: ConversationVariable[];
34-
role?: string;
3534
};
3635
};
3736

@@ -40,7 +39,7 @@ type BotExt = {
4039
};
4140

4241
type BotVersionExt = {
43-
BotVersion: BotVersion & { role?: string };
42+
BotVersion: BotVersion;
4443
};
4544

4645
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
@@ -132,7 +131,7 @@ const convertBotToBotTemplate = (
132131
botFilePath: string
133132
): BotTemplateExt => {
134133
const entryDialog = botVersionJson.BotVersion.entryDialog;
135-
const { conversationSystemDialogs, role } = botVersionJson.BotVersion;
134+
const { conversationSystemDialogs } = botVersionJson.BotVersion;
136135

137136
// We need to pull the botDialog from the BotVersion file that matches the entryDialog
138137
// This will be added to the BotTemplate
@@ -170,7 +169,6 @@ const convertBotToBotTemplate = (
170169
entryDialogJson,
171170
],
172171
conversationSystemDialogs,
173-
role,
174172
entryDialog,
175173
mlDomain,
176174
...bot.Bot,

0 commit comments

Comments
 (0)