public static class StoryDefinition.DefaultImpls
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 class SimpleStoryHandlerBase or class StoryDefinitionBase.
@NotNull public static java.util.List<ai.tock.bot.definition.StoryTag> getTags(StoryDefinition $this)
The story definition tags that specify different story types or roles.
public static boolean isStarterIntent(StoryDefinition $this, @NotNull Intent intent)
Is the specified intent is a starter intent?
public static boolean supportIntent(StoryDefinition $this, @NotNull Intent intent)
Is the specified intent is supported by this story?
@NotNull public static Intent mainIntent(StoryDefinition $this)
The "referent" intent for this story.
@NotNull public static Intent wrappedIntent(StoryDefinition $this)
Implementation for interface IntentAware.
interface IntentAware@NotNull public static java.util.Set<ai.tock.bot.definition.StoryStep> allSteps(StoryDefinition $this)
@NotNull public static IntentWithoutNamespace intentWithoutNamespace(StoryDefinition $this)
public static boolean wrap(StoryDefinition $this, @Nullable Intent intent)
Is it the right intent?