tock / ai.tock.bot.engine.dialog / EventState

EventState

data class EventState (source)

State in event scope.

Constructors

<init>

State in event scope.

EventState(entityValues: MutableList<EntityValue> = mutableListOf(), testEvent: Boolean = false, targetConnectorType: ConnectorType? = null, userInterface: UserInterfaceType? = null, userVerified: Boolean = true, intent: String? = null, step: String? = null, notification: Boolean = false, sourceApplicationId: String? = null)

Properties

entityValues

The entity values.

val entityValues: MutableList<EntityValue>

intent

The current intent of the action.

var intent: String?

notification

If true, this event is not addressed to the bot, but the bot is notified that it has been sent in a multi users/bots conversation.

var notification: Boolean

sourceApplicationId

For notification event, what is the source of the notification if known?

var sourceApplicationId: String?

step

The current step.

var step: String?

targetConnectorType

The target connector type - usually the source connector but not always.

var targetConnectorType: ConnectorType?

testEvent

Is it a "test" event - flag used by automatic tests.

var testEvent: Boolean

userInterface

The user interface - if different of default interface of ConnectorType.

var userInterface: UserInterfaceType?

userVerified

The user verification status.

var userVerified: Boolean

Functions

getEntity

fun getEntity(role: String): List<EntityValue>