Package ai.tock.bot.admin.story
Class StoryDefinitionConfigurationStep
-
- All Implemented Interfaces:
-
ai.tock.bot.admin.story.StoryDefinitionAnswersContainer
public final class StoryDefinitionConfigurationStep implements StoryDefinitionAnswersContainerA StoryStep configuration in a StoryDefinitionConfiguration.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanhasNoChildrenprivate final Stringnameprivate final IntentWithoutNamespaceintentprivate final IntentWithoutNamespacetargetIntentprivate final List<AnswerConfiguration>answersprivate final AnswerConfigurationTypecurrentTypeprivate final StringuserSentenceprivate final I18nLabelValueuserSentenceLabelprivate final List<StoryDefinitionConfigurationStep>childrenprivate final Integerlevelprivate final EntityStepSelectionentityprivate final List<StoryDefinitionStepMetric>metrics
-
Constructor Summary
Constructors Constructor Description StoryDefinitionConfigurationStep(StoryStep<?> step)StoryDefinitionConfigurationStep(String name, IntentWithoutNamespace intent, IntentWithoutNamespace targetIntent, List<AnswerConfiguration> answers, AnswerConfigurationType currentType, String userSentence, I18nLabelValue userSentenceLabel, List<StoryDefinitionConfigurationStep> children, Integer level, EntityStepSelection entity, List<StoryDefinitionStepMetric> metrics)
-
Method Summary
Modifier and Type Method Description final BooleangetHasNoChildren()final StringgetName()The name of the step. final IntentWithoutNamespacegetIntent()The intent used to reach the step - mandatory if an answer is set, or if there is a targetIntent and if there is no entity set.
final IntentWithoutNamespacegetTargetIntent()The optional intent to switch to when the step is reached. List<AnswerConfiguration>getAnswers()The answers available. AnswerConfigurationTypegetCurrentType()The type of answer configuration. final StringgetUserSentence()The user sentence sample. final I18nLabelValuegetUserSentenceLabel()final List<StoryDefinitionConfigurationStep>getChildren()The children of the steps final IntegergetLevel()The level of the step. final EntityStepSelectiongetEntity()Entity selection. final List<StoryDefinitionStepMetric>getMetrics()The step metrics. final StoryStep<StoryHandlerDefinition>toStoryStep(StoryDefinitionConfiguration story)List<CharSequence>findNextSteps(BotBus bus, StoryDefinitionConfiguration story)-
-
Constructor Detail
-
StoryDefinitionConfigurationStep
StoryDefinitionConfigurationStep(StoryStep<?> step)
-
StoryDefinitionConfigurationStep
StoryDefinitionConfigurationStep(String name, IntentWithoutNamespace intent, IntentWithoutNamespace targetIntent, List<AnswerConfiguration> answers, AnswerConfigurationType currentType, String userSentence, I18nLabelValue userSentenceLabel, List<StoryDefinitionConfigurationStep> children, Integer level, EntityStepSelection entity, List<StoryDefinitionStepMetric> metrics)
-
-
Method Detail
-
getHasNoChildren
final Boolean getHasNoChildren()
-
getIntent
final IntentWithoutNamespace getIntent()
The intent used to reach the step - mandatory if an answer is set, or if there is a targetIntent
and if there is no entity set.
-
getTargetIntent
final IntentWithoutNamespace getTargetIntent()
The optional intent to switch to when the step is reached.
-
getAnswers
List<AnswerConfiguration> getAnswers()
The answers available.
-
getCurrentType
AnswerConfigurationType getCurrentType()
The type of answer configuration.
-
getUserSentence
final String getUserSentence()
The user sentence sample.
-
getUserSentenceLabel
final I18nLabelValue getUserSentenceLabel()
-
getChildren
final List<StoryDefinitionConfigurationStep> getChildren()
The children of the steps
-
getEntity
final EntityStepSelection getEntity()
Entity selection.
-
getMetrics
final List<StoryDefinitionStepMetric> getMetrics()
The step metrics.
-
toStoryStep
final StoryStep<StoryHandlerDefinition> toStoryStep(StoryDefinitionConfiguration story)
-
findNextSteps
List<CharSequence> findNextSteps(BotBus bus, StoryDefinitionConfiguration story)
-
-
-