tock / ai.tock.bot.definition / BotDefinition / hasToPersistAction

hasToPersistAction

open fun hasToPersistAction(timeline: UserTimeline, action: Action): Boolean (source)

If this method returns true, the action will be added in the stored history.

By default, actions where the bot is not only ai.tock.bot.engine.dialog.EventState.notification are added in the bot history.