ProgressTracker

class ProgressTracker(val context: Context) : ContextExtension

Constructors

Link copied to clipboard
fun ProgressTracker(context: Context)

Types

Link copied to clipboard
class TurnCounter : PipelineComponent

Functions

Link copied to clipboard
fun addModule(module: ElysaiModule)

fun addModule(actionName: String?, time: DateTime = DateTime.now(context.turn.input.zoneId))

Adds a module to triggeredModules list (attribute by user in "TTP_analytics" namespace) The module is defined by the action name. The action must be in format "module_persona".

Link copied to clipboard
fun clear()
Link copied to clipboard
fun <T : ElysaiModule> containsModule(moduleClass: KClass<T>, stage: (T) -> Boolean): Boolean
Link copied to clipboard
fun getModules(stage: (ElysaiModule) -> Boolean = { true }): List<ElysaiModule>
fun <T : ElysaiModule> getModules(moduleClass: KClass<T>, stage: (T) -> Boolean = { true }): List<T>
Link copied to clipboard
fun <T : ElysaiModule> modifyLast(moduleClass: KClass<T>, func: (T) -> Unit)
Link copied to clipboard

Properties

Link copied to clipboard
val context: Context