Class DefaultPrimaryBotOrchestrationEventHandler
-
- All Implemented Interfaces:
-
ai.tock.bot.orchestration.bot.primary.PrimaryBotOrchestrationEventHandler
public class DefaultPrimaryBotOrchestrationEventHandler implements PrimaryBotOrchestrationEventHandler
-
-
Constructor Summary
Constructors Constructor Description DefaultPrimaryBotOrchestrationEventHandler(StoryDefinition comebackStory)
-
Method Summary
Modifier and Type Method Description UnitonStarOrchestration(BotBus bus, AvailableOrchestrationResponse orchestrationResponse)Event when the primary bot delegate conversation to a secondary bot ComeBackFromSecondaryonStopOrchestration(BotBus bus, Orchestration orchestration)Event when a Intent in stopOrchestrationIntentList (primary bot configuration) is enabled ComeBackFromSecondaryonNoOrchestration(BotBus bus, Orchestration orchestration)Event when a Intent in noOrchestrationIntentList (primary bot configuration) is enabled ComeBackFromSecondaryonTakeBackOrchestration(BotBus bus, Orchestration orchestration)Event when takeBackOrchestration() (primary bot configuration) is true -
-
Method Detail
-
onStarOrchestration
Unit onStarOrchestration(BotBus bus, AvailableOrchestrationResponse orchestrationResponse)
Event when the primary bot delegate conversation to a secondary bot
- Parameters:
orchestrationResponse- chosen response (secondary bot more relevant)
-
onStopOrchestration
ComeBackFromSecondary onStopOrchestration(BotBus bus, Orchestration orchestration)
Event when a Intent in stopOrchestrationIntentList (primary bot configuration) is enabled
- Parameters:
orchestration- current orchestration
-
onNoOrchestration
ComeBackFromSecondary onNoOrchestration(BotBus bus, Orchestration orchestration)
Event when a Intent in noOrchestrationIntentList (primary bot configuration) is enabled
- Parameters:
orchestration- current orchestration
-
onTakeBackOrchestration
ComeBackFromSecondary onTakeBackOrchestration(BotBus bus, Orchestration orchestration)
Event when takeBackOrchestration() (primary bot configuration) is true
- Parameters:
orchestration- current orchestration
-
-
-
-