Skip to content

Commit ee2675b

Browse files
authored
plugin-flow-builder: add shadowing config for AI Agents (#3167)
## Description - Add AI Agents to shadowing config - Add a public funcion to update sadowing config
1 parent 9eb722b commit ee2675b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

packages/botonic-plugin-flow-builder/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default class BotonicPluginFlowBuilder implements Plugin {
7979
allowKeywords: options.inShadowing?.allowKeywords || false,
8080
allowSmartIntents: options.inShadowing?.allowSmartIntents || false,
8181
allowKnowledgeBases: options.inShadowing?.allowKnowledgeBases || false,
82+
allowAiAgents: options.inShadowing?.allowAiAgents || false,
8283
}
8384
this.contentFilters = options.contentFilters || []
8485
this.customRatingMessageEnabled =
@@ -265,6 +266,10 @@ export default class BotonicPluginFlowBuilder implements Plugin {
265266
possibleValues,
266267
}
267268
}
269+
270+
setInShadowing(inShadowing: InShadowingConfig): void {
271+
this.inShadowing = inShadowing
272+
}
268273
}
269274

270275
export * from './action'

packages/botonic-plugin-flow-builder/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export interface InShadowingConfig {
1818
allowKeywords: boolean
1919
allowSmartIntents: boolean
2020
allowKnowledgeBases: boolean
21+
allowAiAgents: boolean
2122
}
2223

2324
export interface BotonicPluginFlowBuilderOptions<

0 commit comments

Comments
 (0)