tock / ai.tock.bot.definition / IntentAware

# IntentAware

`interface IntentAware` (source)

Convenient interface used to compare Intent with StoryDefinition.

### Functions

#### intentWithoutNamespace | `open fun intentWithoutNamespace(): IntentWithoutNamespace`
#### wrap | Is it the right intent? `open infix fun wrap(intent: Intent?): Boolean`
#### wrappedIntent | `abstract fun wrappedIntent(): Intent`

### Inheritors

#### ClientStoryDefinition | `class ClientStoryDefinition : IntentAware`
#### Intent | An intent definition. `data class Intent : IntentAware`
#### IntentAwareBase | For Enum based IntentAware implementations. `interface IntentAwareBase : IntentAware`
#### StoryDefinition | 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. `interface StoryDefinition : IntentAware`
#### StoryHandlerBase | Base implementation of StoryHandler. Provides also a convenient implementation of I18nKeyProvider to support i18n. `abstract class StoryHandlerBase<out T : StoryHandlerDefinition> : StoryHandler, I18nKeyProvider, IntentAware`