public class ClientDefinitionBuildersKt
@NotNull public static ClientStoryDefinition unknownStory(@NotNull kotlin.jvm.functions.Function1<? super ai.tock.bot.api.client.ClientBus,kotlin.Unit> handler)
Create a story addressing Intent.unknown intent.
handler - The handler for the story.@NotNull public static ClientBotDefinition newBot(@NotNull java.lang.String apiKey, @NotNull java.util.List<ai.tock.bot.api.client.ClientStoryDefinition> stories, @NotNull ClientStoryDefinition unknownStory)
Creates a new bot.
stories - List of stories supported by the bot.@NotNull public static ClientBotDefinition newBot(@NotNull java.lang.String apiKey, @NotNull ai.tock.bot.api.client.ClientStoryDefinition... stories)
Creates a new bot.
stories - List of stories supported by the bot.@NotNull public static ClientStoryDefinition newStory(@NotNull java.lang.String mainIntent, @NotNull java.util.Set<? extends ai.tock.bot.definition.IntentAware> otherStarterIntents, @NotNull java.util.Set<? extends ai.tock.bot.definition.IntentAware> secondaryIntents, @NotNull java.util.List<ai.tock.bot.api.client.ClientStep> steps, @NotNull java.lang.String storyId, @NotNull kotlin.jvm.functions.Function1<? super ai.tock.bot.api.client.ClientBus,kotlin.Unit> handler)
Creates a new story.
mainIntent - The main intent.handler - The handler for the story.@NotNull public static ClientStoryDefinition newStory(@NotNull ai.tock.bot.definition.IntentAware mainIntent, @NotNull java.util.Set<? extends ai.tock.bot.definition.IntentAware> otherStarterIntents, @NotNull java.util.Set<? extends ai.tock.bot.definition.IntentAware> secondaryIntents, @NotNull java.util.List<ai.tock.bot.api.client.ClientStep> steps, @NotNull java.lang.String storyId, @NotNull kotlin.jvm.functions.Function1<? super ai.tock.bot.api.client.ClientBus,kotlin.Unit> handler)
Creates a new story.
mainIntent - The main intent.handler - The handler for the story.@NotNull public static ClientStoryHandler newStoryHandler(@NotNull kotlin.jvm.functions.Function1<? super ai.tock.bot.api.client.ClientBus,kotlin.Unit> handler)
Creates a new interface ClientStoryHandler.
interface ClientStoryHandler