Package ai.tock.bot.definition
Interface StoryDefinition
-
- All Implemented Interfaces:
-
ai.tock.bot.definition.IntentAware
public interface StoryDefinition implements IntentAware
The definition of a "Story". A story holds a list of actions of the same domain. The story provides a set of starter intents. When theses intents are detected, The story is started.
Story definitions should usually not directly extend this class, but instead extend SimpleStoryHandlerBase or StoryDefinitionBase.
-
-
Method Summary
Modifier and Type Method Description BooleanhasTag(StoryTag tag)Does this story is tagged with specified tag? BooleanisStarterIntent(Intent intent)Is the specified intent is a starter intent? BooleansupportIntent(Intent intent)Is the specified intent is supported by this story? IntentmainIntent()The "referent" intent for this story. IntentwrappedIntent()Implementation for IntentAware. Set<StoryStep<?>>allSteps()Returns all steps of the story. abstract StringgetId()An unique identifier for a given bot. abstract Set<Intent>getStarterIntents()One or more intents that start the story. abstract Set<Intent>getIntents()The complete list of intents supported by the story. Set<StoryTag>getTags()abstract StoryHandlergetStoryHandler()The story handler of the story. abstract Set<StoryStep<?>>getSteps()The root steps of the story. BooleangetMetricStory()abstract Set<UserInterfaceType>getUnsupportedUserInterfaces()When this story does not support all UserInterfaceTypes. -
-
Method Detail
-
isStarterIntent
Boolean isStarterIntent(Intent intent)
Is the specified intent is a starter intent?
-
supportIntent
Boolean supportIntent(Intent intent)
Is the specified intent is supported by this story?
-
mainIntent
Intent mainIntent()
The "referent" intent for this story.
-
wrappedIntent
Intent wrappedIntent()
Implementation for IntentAware.
-
getStarterIntents
abstract Set<Intent> getStarterIntents()
One or more intents that start the story. Usually, you don't have the same starter intent in two different story definition.
-
getIntents
abstract Set<Intent> getIntents()
The complete list of intents supported by the story.
-
getStoryHandler
abstract StoryHandler getStoryHandler()
The story handler of the story.
-
getMetricStory
Boolean getMetricStory()
-
getUnsupportedUserInterfaces
abstract Set<UserInterfaceType> getUnsupportedUserInterfaces()
When this story does not support all UserInterfaceTypes.
-
-
-
-