tock / ai.tock.bot.definition / SimpleStoryDefinition

SimpleStoryDefinition

open class SimpleStoryDefinition : StoryDefinition (source)

Simple implementation of StoryDefinition.

Constructors

<init>

SimpleStoryDefinition(id: String, storyHandler: StoryHandler, steps: Array<out StoryStep<StoryHandlerDefinition>> = emptyArray(), starterIntents: Set<IntentAware>, intents: Set<IntentAware> = starterIntents, unsupportedUserInterfaces: Set<UserInterfaceType> = emptySet())

Simple implementation of StoryDefinition.

SimpleStoryDefinition(id: String, storyHandler: StoryHandler, starterIntents: Set<Intent>, intents: Set<Intent> = starterIntents, steps: Set<StoryStep<StoryHandlerDefinition>> = emptySet(), unsupportedUserInterfaces: Set<UserInterfaceType> = emptySet(), tags: Set<StoryTag> = emptySet())

Properties

id

An unique identifier for a given bot.

open val id: String

intents

starter intents + other intents supported by the story.

open val intents: Set<Intent>

starterIntents

One or more intents that start the story. Usually, you don't have the same starter intent in two different story definition.

open val starterIntents: Set<Intent>

steps

The root steps of the story.

open val steps: Set<StoryStep<StoryHandlerDefinition>>

storyHandler

The story handler of the story.

open val storyHandler: StoryHandler

tags

The story definition tags that specify different story types or roles.

open val tags: Set<StoryTag>

unsupportedUserInterfaces

When this story does not support all UserInterfaceTypes.

open val unsupportedUserInterfaces: Set<UserInterfaceType>